fix: Allow task runner to invoke skills via slash command prefix (#29302)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
krisn0x 2026-04-27 17:42:25 +02:00 committed by GitHub
parent 632ae67de3
commit 65e55a88c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,5 @@
--- ---
description: Fetch and analyze Linear issue with all related context. Use when starting work on a Linear ticket, analyzing issues, or gathering context about a Linear issue. description: Fetch and analyze Linear issue with all related context. Use when starting work on a Linear ticket, analyzing issues, or gathering context about a Linear issue.
disable-model-invocation: true
argument-hint: "[issue-id]" argument-hint: "[issue-id]"
compatibility: compatibility:
requires: requires:

View File

@ -32,6 +32,13 @@ let prompt;
if (useRaw) { if (useRaw) {
prompt = task; prompt = task;
} else if (task.startsWith('/')) {
// Task is a skill invocation (e.g. "/n8n:linear-issue CAT-2820").
// Wrap it so the model invokes the Skill tool instead of implementing code.
prompt = `# Skill Invocation
Invoke the following skill using the Skill tool and follow its instructions.
${task}`;
} else { } else {
// List available templates so Claude knows what exists (reads them if needed) // List available templates so Claude knows what exists (reads them if needed)
const templateDir = '.github/claude-templates'; const templateDir = '.github/claude-templates';

View File

@ -131,6 +131,8 @@ jobs:
prompt: ${{ env.CLAUDE_PROMPT }} prompt: ${{ env.CLAUDE_PROMPT }}
show_full_output: ${{ inputs.suppress_output != true }} show_full_output: ${{ inputs.suppress_output != true }}
display_report: false display_report: false
plugin_marketplaces: "./.claude/plugins/n8n"
plugins: "n8n@n8n"
settings: | settings: |
{ {
"permissions": { "permissions": {