mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-29 20:11:04 +08:00
refactor(commands): replace SlashCommand with Skill tool invocation
Update all workflow command files to use Skill tool instead of SlashCommand: - Change allowed-tools: SlashCommand(*) → Skill(*) - Convert SlashCommand(command="/path", args="...") → Skill(skill="path", args="...") - Update descriptive text references from SlashCommand to Skill - Remove javascript language tags from code blocks (25 files) Affected 25 command files across: - workflow: plan, execute, init, lite-plan, lite-fix, etc. - workflow/test: test-fix-gen, test-cycle-execute, tdd-plan, tdd-verify - workflow/review: review-cycle-fix, review-module-cycle, review-session-cycle - workflow/ui-design: codify-style, explore-auto, imitate-auto - workflow/brainstorm: brainstorm-with-file, auto-parallel - issue: discover, discover-by-prompt, plan - ccw, ccw-debug This aligns with the actual Skill tool interface which uses 'skill' and 'args' parameters.
This commit is contained in:
@@ -753,15 +753,15 @@ AskUserQuestion({
|
||||
// Handle selections
|
||||
if (selection.includes("创建实施计划")) {
|
||||
const topIdea = synthesis.top_ideas[0]
|
||||
SlashCommand("/workflow:plan", `实施: ${topIdea.title} - ${topIdea.description}`)
|
||||
Skill(skill="workflow:plan", args=`实施: ${topIdea.title} - ${topIdea.description}`)
|
||||
}
|
||||
if (selection.includes("创建Issue")) {
|
||||
for (const idea of synthesis.top_ideas.slice(0, 3)) {
|
||||
SlashCommand("/issue:new", `${idea.title}: ${idea.next_steps[0]}`)
|
||||
Skill(skill="issue:new", args=`${idea.title}: ${idea.next_steps[0]}`)
|
||||
}
|
||||
}
|
||||
if (selection.includes("深入分析")) {
|
||||
SlashCommand("/workflow:analyze-with-file", synthesis.top_ideas[0].title)
|
||||
Skill(skill="workflow:analyze-with-file", args=synthesis.top_ideas[0].title)
|
||||
}
|
||||
if (selection.includes("导出分享")) {
|
||||
exportBrainstormReport(sessionFolder)
|
||||
|
||||
Reference in New Issue
Block a user