From 2f10305945c7e659610ddfe79fecd9e8b4e0a56b Mon Sep 17 00:00:00 2001 From: catlog22 Date: Sat, 31 Jan 2026 23:09:59 +0800 Subject: [PATCH] refactor(commands): replace SlashCommand with Skill tool invocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .claude/commands/ccw-debug.md | 33 ++++++--------- .claude/commands/ccw.md | 14 +++---- .claude/commands/issue/discover-by-prompt.md | 2 +- .claude/commands/issue/discover.md | 2 +- .claude/commands/issue/plan.md | 2 +- .../commands/workflow/analyze-with-file.md | 4 +- .../commands/workflow/brainstorm-with-file.md | 6 +-- .../workflow/brainstorm/auto-parallel.md | 28 ++++++------- .claude/commands/workflow/execute.md | 2 +- .claude/commands/workflow/init.md | 4 +- .claude/commands/workflow/lite-fix.md | 6 +-- .claude/commands/workflow/lite-plan.md | 6 +-- .claude/commands/workflow/multi-cli-plan.md | 2 +- .claude/commands/workflow/plan-verify.md | 6 +-- .claude/commands/workflow/plan.md | 42 +++++++++---------- .claude/commands/workflow/review-cycle-fix.md | 2 +- .../commands/workflow/review-module-cycle.md | 4 +- .../commands/workflow/review-session-cycle.md | 2 +- .claude/commands/workflow/session/start.md | 2 +- .claude/commands/workflow/tdd-plan.md | 34 +++++++-------- .claude/commands/workflow/tdd-verify.md | 4 +- .../commands/workflow/test-cycle-execute.md | 2 +- .claude/commands/workflow/test-fix-gen.md | 34 +++++++-------- .../workflow/ui-design/codify-style.md | 40 +++++++++--------- .../workflow/ui-design/explore-auto.md | 32 +++++++------- .../workflow/ui-design/imitate-auto.md | 36 ++++++++-------- 26 files changed, 171 insertions(+), 180 deletions(-) diff --git a/.claude/commands/ccw-debug.md b/.claude/commands/ccw-debug.md index 3e53861b..0dc418a2 100644 --- a/.claude/commands/ccw-debug.md +++ b/.claude/commands/ccw-debug.md @@ -2,7 +2,7 @@ name: ccw-debug description: Aggregated debug command - combines debugging diagnostics and test verification in a synergistic workflow supporting cli-quick / debug-first / test-first / bidirectional-verification modes argument-hint: "[--mode cli|debug|test|bidirectional] [--yes|-y] [--hotfix] \"bug description or error message\"" -allowed-tools: SlashCommand(*), TodoWrite(*), AskUserQuestion(*), Read(*), Bash(*) +allowed-tools: Skill(*), TodoWrite(*), AskUserQuestion(*), Read(*), Bash(*) --- # CCW-Debug Aggregated Command @@ -237,10 +237,10 @@ User Input → Quick Context Gather → ccw cli (Gemini/Qwen/Codex) applyFixFromCLIRecommendation(cliOutput) } else if (decision === "Escalate to Debug") { // Re-invoke ccw-debug with --mode debug - SlashCommand(command=`/ccw-debug --mode debug "${bug_description}"`) + Skill(skill="ccw-debug", args=`--mode debug "${bug_description}"`) } else if (decision === "Escalate to Test") { // Re-invoke ccw-debug with --mode test - SlashCommand(command=`/ccw-debug --mode test "${bug_description}"`) + Skill(skill="ccw-debug", args=`--mode test "${bug_description}"`) } } ``` @@ -303,7 +303,7 @@ User Input → Session Init → /workflow:debug-with-file 2. **Start Debug** (Phase 3) ```javascript - SlashCommand(command=`/workflow:debug-with-file "${bug_description}"`) + Skill(skill="workflow:debug-with-file", args=`"${bug_description}"`) // Update TodoWrite TodoWrite({ @@ -321,8 +321,8 @@ User Input → Session Init → /workflow:debug-with-file 4. **Test Generation & Execution** ```javascript // Auto-continue after debug command completes - SlashCommand(command=`/workflow:test-fix-gen "Test validation for: ${bug_description}"`) - SlashCommand(command="/workflow:test-cycle-execute") + Skill(skill="workflow:test-fix-gen", args=`"Test validation for: ${bug_description}"`) + Skill(skill="workflow:test-cycle-execute") ``` 5. **Generate Report** (Phase 5) @@ -383,7 +383,7 @@ User Input → Session Init → /workflow:test-fix-gen 2. **Generate Tests** (Phase 3) ```javascript - SlashCommand(command=`/workflow:test-fix-gen "${bug_description}"`) + Skill(skill="workflow:test-fix-gen", args=`"${bug_description}"`) // Update TodoWrite TodoWrite({ @@ -398,7 +398,7 @@ User Input → Session Init → /workflow:test-fix-gen 3. **Execute & Iterate** (Phase 3 cont.) ```javascript - SlashCommand(command="/workflow:test-cycle-execute") + Skill(skill="workflow:test-cycle-execute") // test-cycle-execute handles: // - Execute tests @@ -442,22 +442,13 @@ User Input → Session Init → Parallel execution: 1. **Parallel Execution** (Phase 3) ```javascript // Start debug - const debugTask = SlashCommand( - command=`/workflow:debug-with-file "${bug_description}"`, - run_in_background=false - ) + const debugTask = Skill(skill="workflow:debug-with-file", args=`"${bug_description}"`) - // Start test generation (synchronous execution, SlashCommand blocks) - const testTask = SlashCommand( - command=`/workflow:test-fix-gen "${bug_description}"`, - run_in_background=false - ) + // Start test generation + const testTask = Skill(skill="workflow:test-fix-gen", args=`"${bug_description}"`) // Execute test cycle - const testCycleTask = SlashCommand( - command="/workflow:test-cycle-execute", - run_in_background=false - ) + const testCycleTask = Skill(skill="workflow:test-cycle-execute") ``` 2. **Merge Findings** (Phase 4) diff --git a/.claude/commands/ccw.md b/.claude/commands/ccw.md index 1f5eccfc..6d7564f8 100644 --- a/.claude/commands/ccw.md +++ b/.claude/commands/ccw.md @@ -2,7 +2,7 @@ name: ccw description: Main workflow orchestrator - analyze intent, select workflow, execute command chain in main process argument-hint: "\"task description\"" -allowed-tools: SlashCommand(*), TodoWrite(*), AskUserQuestion(*), Read(*), Grep(*), Glob(*) +allowed-tools: Skill(*), TodoWrite(*), AskUserQuestion(*), Read(*), Grep(*), Glob(*) --- # CCW Command - Main Workflow Orchestrator @@ -33,12 +33,12 @@ Main process orchestrator: intent analysis → workflow selection → command ch ## Execution Model -**Synchronous (Main Process)**: Commands execute via SlashCommand in main process, blocking until complete. +**Synchronous (Main Process)**: Commands execute via Skill in main process, blocking until complete. ``` User Input → Analyze Intent → Select Workflow → [Confirm] → Execute Chain ↓ - SlashCommand (blocking) + Skill (blocking) ↓ Update TodoWrite ↓ @@ -353,7 +353,7 @@ async function executeCommandChain(chain, workflow) { for (let i = 0; i < chain.length; i++) { try { const fullCommand = assembleCommand(chain[i], previousResult); - const result = await SlashCommand({ command: fullCommand }); + const result = await Skill({ skill: fullCommand }); previousResult = { ...result, success: true }; updateTodoStatus(i, chain.length, workflow, 'completed'); @@ -440,7 +440,7 @@ Phase 4: Setup TODO Tracking Phase 5: Execute Command Chain |-- For each command: | |-- Assemble full command - | |-- Execute via SlashCommand + | |-- Execute via Skill | |-- Update TODO status | +-- Handle errors (retry/skip/abort) +-- Return workflow result @@ -469,7 +469,7 @@ Phase 5: Execute Command Chain ## Key Design Principles -1. **Main Process Execution** - Use SlashCommand in main process, no external CLI +1. **Main Process Execution** - Use Skill in main process, no external CLI 2. **Intent-Driven** - Auto-select workflow based on task intent 3. **Port-Based Chaining** - Build command chain using port matching 4. **Minimum Execution Units** - Commands grouped into atomic units, never split (e.g., lite-plan → lite-execute) @@ -531,7 +531,7 @@ todos = [ | Aspect | ccw | ccw-coordinator | |--------|-----|-----------------| -| **Type** | Main process (SlashCommand) | External CLI (ccw cli + hook callbacks) | +| **Type** | Main process (Skill) | External CLI (ccw cli + hook callbacks) | | **Execution** | Synchronous blocking | Async background with hook completion | | **Workflow** | Auto intent-based selection | Manual chain building | | **Intent Analysis** | 5-phase clarity check | 3-phase requirement analysis | diff --git a/.claude/commands/issue/discover-by-prompt.md b/.claude/commands/issue/discover-by-prompt.md index cb3b54fe..b1af0bd5 100644 --- a/.claude/commands/issue/discover-by-prompt.md +++ b/.claude/commands/issue/discover-by-prompt.md @@ -2,7 +2,7 @@ name: issue:discover-by-prompt description: Discover issues from user prompt with Gemini-planned iterative multi-agent exploration. Uses ACE semantic search for context gathering and supports cross-module comparison (e.g., frontend vs backend API contracts). argument-hint: "[-y|--yes] [--scope=src/**] [--depth=standard|deep] [--max-iterations=5]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*), AskUserQuestion(*), Glob(*), Grep(*), mcp__ace-tool__search_context(*), mcp__exa__search(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Task(*), AskUserQuestion(*), Glob(*), Grep(*), mcp__ace-tool__search_context(*), mcp__exa__search(*) --- ## Auto Mode diff --git a/.claude/commands/issue/discover.md b/.claude/commands/issue/discover.md index 0b3fb1cd..68d83f9b 100644 --- a/.claude/commands/issue/discover.md +++ b/.claude/commands/issue/discover.md @@ -2,7 +2,7 @@ name: issue:discover description: Discover potential issues from multiple perspectives (bug, UX, test, quality, security, performance, maintainability, best-practices) using CLI explore. Supports Exa external research for security and best-practices perspectives. argument-hint: "[-y|--yes] [--perspectives=bug,ux,...] [--external]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*), AskUserQuestion(*), Glob(*), Grep(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Task(*), AskUserQuestion(*), Glob(*), Grep(*) --- ## Auto Mode diff --git a/.claude/commands/issue/plan.md b/.claude/commands/issue/plan.md index a56ac2af..6d2eee9b 100644 --- a/.claude/commands/issue/plan.md +++ b/.claude/commands/issue/plan.md @@ -2,7 +2,7 @@ name: plan description: Batch plan issue resolution using issue-plan-agent (explore + plan closed-loop) argument-hint: "[-y|--yes] --all-pending [,,...] [--batch-size 3]" -allowed-tools: TodoWrite(*), Task(*), SlashCommand(*), AskUserQuestion(*), Bash(*), Read(*), Write(*) +allowed-tools: TodoWrite(*), Task(*), Skill(*), AskUserQuestion(*), Bash(*), Read(*), Write(*) --- ## Auto Mode diff --git a/.claude/commands/workflow/analyze-with-file.md b/.claude/commands/workflow/analyze-with-file.md index bfaca51e..f51be9dc 100644 --- a/.claude/commands/workflow/analyze-with-file.md +++ b/.claude/commands/workflow/analyze-with-file.md @@ -593,10 +593,10 @@ AskUserQuestion({ // Handle selections if (selection.includes("创建Issue")) { - SlashCommand("/issue:new", `${topic_or_question} - 分析结论实施`) + Skill(skill="issue:new", args=`${topic_or_question} - 分析结论实施`) } if (selection.includes("生成任务")) { - SlashCommand("/workflow:lite-plan", `实施分析结论: ${summary}`) + Skill(skill="workflow:lite-plan", args=`实施分析结论: ${summary}`) } if (selection.includes("导出报告")) { exportAnalysisReport(sessionFolder) diff --git a/.claude/commands/workflow/brainstorm-with-file.md b/.claude/commands/workflow/brainstorm-with-file.md index 15d605e9..ac2fc992 100644 --- a/.claude/commands/workflow/brainstorm-with-file.md +++ b/.claude/commands/workflow/brainstorm-with-file.md @@ -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) diff --git a/.claude/commands/workflow/brainstorm/auto-parallel.md b/.claude/commands/workflow/brainstorm/auto-parallel.md index a52a792b..98d57723 100644 --- a/.claude/commands/workflow/brainstorm/auto-parallel.md +++ b/.claude/commands/workflow/brainstorm/auto-parallel.md @@ -2,7 +2,7 @@ name: auto-parallel description: Parallel brainstorming automation with dynamic role selection and concurrent execution across multiple perspectives argument-hint: "[-y|--yes] topic or challenge description [--count N]" -allowed-tools: SlashCommand(*), Task(*), TodoWrite(*), Read(*), Write(*), Bash(*), Glob(*) +allowed-tools: Skill(*), Task(*), TodoWrite(*), Read(*), Write(*), Bash(*), Glob(*) --- ## Auto Mode @@ -16,7 +16,7 @@ When `--yes` or `-y`: Auto-select recommended roles, skip all clarification ques **This command is a pure orchestrator**: Executes 3 phases in sequence (interactive framework → parallel role analysis → synthesis), coordinating specialized commands/agents through task attachment model. **Task Attachment Model**: -- SlashCommand execute **expands workflow** by attaching sub-tasks to current TodoWrite +- Skill execute **expands workflow** by attaching sub-tasks to current TodoWrite - Task agent execute **attaches analysis tasks** to orchestrator's TodoWrite - Phase 1: artifacts command attaches its internal tasks (Phase 1-5) - Phase 2: N conceptual-planning-agent tasks attached in parallel @@ -47,7 +47,7 @@ This workflow runs **fully autonomously** once triggered. Phase 1 (artifacts) ha 3. **Parse Every Output**: Extract selected_roles from workflow-session.json after Phase 1 4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically 5. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern -6. **Task Attachment Model**: SlashCommand and Task executes **attach** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion +6. **Task Attachment Model**: Skill and Task executes **attach** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion 7. **⚠️ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow. After executing all attached tasks, immediately collapse them and execute next phase 8. **Parallel Execution**: Phase 2 attaches multiple agent tasks simultaneously for concurrent execution @@ -74,7 +74,7 @@ This workflow runs **fully autonomously** once triggered. Phase 1 (artifacts) ha **Step 1: Execute** - Interactive framework generation via artifacts command ```javascript -SlashCommand(command="/workflow:brainstorm:artifacts \"{topic}\" --count {N}") +Skill(skill="workflow:brainstorm:artifacts", args="\"{topic}\" --count {N}") ``` **What It Does**: @@ -95,7 +95,7 @@ SlashCommand(command="/workflow:brainstorm:artifacts \"{topic}\" --count {N}") - workflow-session.json contains selected_roles[] (metadata only, no content duplication) - Session directory `.workflow/active/WFS-{topic}/.brainstorming/` exists -**TodoWrite Update (Phase 1 SlashCommand executed - tasks attached)**: +**TodoWrite Update (Phase 1 Skill executed - tasks attached)**: ```json [ {"content": "Phase 0: Parameter Parsing", "status": "completed", "activeForm": "Parsing count parameter"}, @@ -110,7 +110,7 @@ SlashCommand(command="/workflow:brainstorm:artifacts \"{topic}\" --count {N}") ] ``` -**Note**: SlashCommand execute **attaches** artifacts' 5 internal tasks. Orchestrator **executes** these tasks sequentially. +**Note**: Skill execute **attaches** artifacts' 5 internal tasks. Orchestrator **executes** these tasks sequentially. **Next Action**: Tasks attached → **Execute Phase 1.1-1.5** sequentially @@ -134,7 +134,7 @@ SlashCommand(command="/workflow:brainstorm:artifacts \"{topic}\" --count {N}") **For Each Selected Role** (unified role-analysis command): ```bash -SlashCommand(command="/workflow:brainstorm:role-analysis {role-name} --session {session-id} --skip-questions") +Skill(skill="workflow:brainstorm:role-analysis", args="{role-name} --session {session-id} --skip-questions") ``` **What It Does**: @@ -145,7 +145,7 @@ SlashCommand(command="/workflow:brainstorm:role-analysis {role-name} --session { - Supports optional interactive context gathering (via --include-questions flag) **Parallel Execution**: -- Launch N SlashCommand calls simultaneously (one message with multiple SlashCommand invokes) +- Launch N Skill calls simultaneously (one message with multiple Skill invokes) - Each role command **attached** to orchestrator's TodoWrite - All roles execute concurrently, each reading same guidance-specification.md - Each role operates independently @@ -203,7 +203,7 @@ SlashCommand(command="/workflow:brainstorm:role-analysis {role-name} --session { **Step 3: Execute** - Synthesis integration via synthesis command ```javascript -SlashCommand(command="/workflow:brainstorm:synthesis --session {sessionId}") +Skill(skill="workflow:brainstorm:synthesis", args="--session {sessionId}") ``` **What It Does**: @@ -218,7 +218,7 @@ SlashCommand(command="/workflow:brainstorm:synthesis --session {sessionId}") - `.workflow/active/WFS-{topic}/.brainstorming/synthesis-specification.md` exists - Synthesis references all role analyses -**TodoWrite Update (Phase 3 SlashCommand executed - tasks attached)**: +**TodoWrite Update (Phase 3 Skill executed - tasks attached)**: ```json [ {"content": "Phase 0: Parameter Parsing", "status": "completed", "activeForm": "Parsing count parameter"}, @@ -231,7 +231,7 @@ SlashCommand(command="/workflow:brainstorm:synthesis --session {sessionId}") ] ``` -**Note**: SlashCommand execute **attaches** synthesis' internal tasks. Orchestrator **executes** these tasks sequentially. +**Note**: Skill execute **attaches** synthesis' internal tasks. Orchestrator **executes** these tasks sequentially. **Next Action**: Tasks attached → **Execute Phase 3.1-3.3** sequentially @@ -264,7 +264,7 @@ Synthesis: .workflow/active/WFS-{topic}/.brainstorming/synthesis-specification.m ### Key Principles -1. **Task Attachment** (when SlashCommand/Task executed): +1. **Task Attachment** (when Skill/Task executed): - Sub-command's or agent's internal tasks are **attached** to orchestrator's TodoWrite - Phase 1: `/workflow:brainstorm:artifacts` attaches 5 internal tasks (Phase 1.1-1.5) - Phase 2: Multiple `Task(conceptual-planning-agent)` calls attach N role analysis tasks simultaneously @@ -289,9 +289,9 @@ Synthesis: .workflow/active/WFS-{topic}/.brainstorming/synthesis-specification.m ### Brainstorming Workflow Specific Features -- **Phase 1**: Interactive framework generation with user Q&A (SlashCommand attachment) +- **Phase 1**: Interactive framework generation with user Q&A (Skill attachment) - **Phase 2**: Parallel role analysis execution with N concurrent agents (Task agent attachments) -- **Phase 3**: Cross-role synthesis integration (SlashCommand attachment) +- **Phase 3**: Cross-role synthesis integration (Skill attachment) - **Dynamic Role Count**: `--count N` parameter determines number of Phase 2 parallel tasks (default: 3, max: 9) - **Mixed Execution**: Sequential (Phase 1, 3) and Parallel (Phase 2) task execution diff --git a/.claude/commands/workflow/execute.md b/.claude/commands/workflow/execute.md index f1c21f73..962d7fa7 100644 --- a/.claude/commands/workflow/execute.md +++ b/.claude/commands/workflow/execute.md @@ -318,7 +318,7 @@ const autoYes = $ARGUMENTS.includes('--yes') || $ARGUMENTS.includes('-y') if (autoYes) { // Auto mode: Complete session automatically console.log(`[--yes] Auto-selecting: Complete Session`) - SlashCommand("/workflow:session:complete --yes") + Skill(skill="workflow:session:complete", args="--yes") } else { // Interactive mode: Ask user AskUserQuestion({ diff --git a/.claude/commands/workflow/init.md b/.claude/commands/workflow/init.md index 49d6bca5..78133ee2 100644 --- a/.claude/commands/workflow/init.md +++ b/.claude/commands/workflow/init.md @@ -47,7 +47,7 @@ Analysis Flow: ├─ Display summary └─ Ask about guidelines configuration ├─ If guidelines empty → Ask user: "Configure now?" or "Skip" - │ ├─ Configure now → SlashCommand(/workflow:init-guidelines) + │ ├─ Configure now → Skill(skill="workflow:init-guidelines") │ └─ Skip → Show next steps └─ If guidelines populated → Show next steps only @@ -253,7 +253,7 @@ if (!isGuidelinesPopulated) { if (userChoice.answers["Guidelines"] === "Configure now (Recommended)") { console.log("\n🔧 Starting guidelines configuration wizard...\n"); - SlashCommand(command="/workflow:init-guidelines"); + Skill(skill="workflow:init-guidelines"); } else { console.log(` Next steps: diff --git a/.claude/commands/workflow/lite-fix.md b/.claude/commands/workflow/lite-fix.md index edbf68e0..95a86d05 100644 --- a/.claude/commands/workflow/lite-fix.md +++ b/.claude/commands/workflow/lite-fix.md @@ -2,7 +2,7 @@ name: lite-fix description: Lightweight bug diagnosis and fix workflow with intelligent severity assessment and optional hotfix mode for production incidents argument-hint: "[-y|--yes] [--hotfix] \"bug description or issue reference\"" -allowed-tools: TodoWrite(*), Task(*), SlashCommand(*), AskUserQuestion(*) +allowed-tools: TodoWrite(*), Task(*), Skill(*), AskUserQuestion(*) --- # Workflow Lite-Fix Command (/workflow:lite-fix) @@ -103,7 +103,7 @@ Phase 4: Confirmation & Selection Phase 5: Execute |- Build executionContext (fix-plan + diagnoses + clarifications + selections) - +- SlashCommand("/workflow:lite-execute --in-memory --mode bugfix") + +- Skill(skill="workflow:lite-execute", args="--in-memory --mode bugfix") ``` ## Implementation @@ -767,7 +767,7 @@ executionContext = { **Step 5.2: Execute** ```javascript -SlashCommand(command="/workflow:lite-execute --in-memory --mode bugfix") +Skill(skill="workflow:lite-execute", args="--in-memory --mode bugfix") ``` ## Session Folder Structure diff --git a/.claude/commands/workflow/lite-plan.md b/.claude/commands/workflow/lite-plan.md index 183da066..d85c4240 100644 --- a/.claude/commands/workflow/lite-plan.md +++ b/.claude/commands/workflow/lite-plan.md @@ -2,7 +2,7 @@ name: lite-plan description: Lightweight interactive planning workflow with in-memory planning, code exploration, and execution execute to lite-execute after user confirmation argument-hint: "[-y|--yes] [-e|--explore] \"task description\"|file.md" -allowed-tools: TodoWrite(*), Task(*), SlashCommand(*), AskUserQuestion(*) +allowed-tools: TodoWrite(*), Task(*), Skill(*), AskUserQuestion(*) --- # Workflow Lite-Plan Command (/workflow:lite-plan) @@ -101,7 +101,7 @@ Phase 4: Confirmation & Selection Phase 5: Execute ├─ Build executionContext (plan + explorations + clarifications + selections) - └─ SlashCommand("/workflow:lite-execute --in-memory") + └─ Skill(skill="workflow:lite-execute", args="--in-memory") ``` ## Implementation @@ -662,7 +662,7 @@ executionContext = { **Step 5.2: Execute** ```javascript -SlashCommand(command="/workflow:lite-execute --in-memory") +Skill(skill="workflow:lite-execute", args="--in-memory") ``` ## Session Folder Structure diff --git a/.claude/commands/workflow/multi-cli-plan.md b/.claude/commands/workflow/multi-cli-plan.md index 0323b317..42484b88 100644 --- a/.claude/commands/workflow/multi-cli-plan.md +++ b/.claude/commands/workflow/multi-cli-plan.md @@ -432,7 +432,7 @@ executionContext = { **Step 4: Hand off to Execution**: ```javascript // Execute to lite-execute with in-memory context -SlashCommand("/workflow:lite-execute --in-memory") +Skill(skill="workflow:lite-execute", args="--in-memory") ``` ## Output File Structure diff --git a/.claude/commands/workflow/plan-verify.md b/.claude/commands/workflow/plan-verify.md index ee7e9efb..7f53b3eb 100644 --- a/.claude/commands/workflow/plan-verify.md +++ b/.claude/commands/workflow/plan-verify.md @@ -339,7 +339,7 @@ const canExecute = recommendation !== 'BLOCK_EXECUTION' // Auto mode if (autoYes) { if (canExecute) { - SlashCommand("/workflow:execute --yes --resume-session=\"${session_id}\"") + Skill(skill="workflow:execute", args="--yes --resume-session=\"${session_id}\"") } else { console.log(`[--yes] BLOCK_EXECUTION - Fix ${critical_count} critical issues first.`) } @@ -370,8 +370,8 @@ const selection = AskUserQuestion({ // Handle selection if (selection.includes("Execute")) { - SlashCommand("/workflow:execute --resume-session=\"${session_id}\"") + Skill(skill="workflow:execute", args="--resume-session=\"${session_id}\"") } else if (selection === "Re-verify") { - SlashCommand("/workflow:plan-verify --session ${session_id}") + Skill(skill="workflow:plan-verify", args="--session ${session_id}") } ``` diff --git a/.claude/commands/workflow/plan.md b/.claude/commands/workflow/plan.md index f3070a20..9a174421 100644 --- a/.claude/commands/workflow/plan.md +++ b/.claude/commands/workflow/plan.md @@ -2,7 +2,7 @@ name: plan description: 5-phase planning workflow with action-planning-agent task generation, outputs IMPL_PLAN.md and task JSONs argument-hint: "[-y|--yes] \"text description\"|file.md" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*) group: workflow --- @@ -28,7 +28,7 @@ This workflow runs **fully autonomously** once triggered. Phase 3 (conflict reso 5. **Phase 4 executes** → Task generation (task-generate-agent) → Reports final summary **Task Attachment Model**: -- SlashCommand execute **expands workflow** by attaching sub-tasks to current TodoWrite +- Skill execute **expands workflow** by attaching sub-tasks to current TodoWrite - When a sub-command is executed (e.g., `/workflow:tools:context-gather`), its internal tasks are attached to the orchestrator's TodoWrite - Orchestrator **executes these attached tasks** sequentially - After completion, attached tasks are **collapsed** back to high-level phase summary @@ -48,7 +48,7 @@ This workflow runs **fully autonomously** once triggered. Phase 3 (conflict reso 3. **Parse Every Output**: Extract required data from each command/agent output for next phase 4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically 5. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern -6. **Task Attachment Model**: SlashCommand execute **attaches** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion +6. **Task Attachment Model**: Skill execute **attaches** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion 7. **⚠️ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow. After executing all attached tasks, immediately collapse them and execute next phase ## Execution Process @@ -88,7 +88,7 @@ Return: **Step 1.1: Execute** - Create or discover workflow session ```javascript -SlashCommand(command="/workflow:session:start --auto \"[structured-task-description]\"") +Skill(skill="workflow:session:start", args="--auto \"[structured-task-description]\"") ``` **Task Description Structure**: @@ -169,7 +169,7 @@ Return to user showing Phase 1 results, then auto-continue to Phase 2 **Step 2.1: Execute** - Gather project context and analyze codebase ```javascript -SlashCommand(command="/workflow:tools:context-gather --session [sessionId] \"[structured-task-description]\"") +Skill(skill="workflow:tools:context-gather", args="--session [sessionId] \"[structured-task-description]\"") ``` **Use Same Structured Description**: Pass the same structured format from Phase 1 @@ -187,7 +187,7 @@ SlashCommand(command="/workflow:tools:context-gather --session [sessionId] \"[st -**TodoWrite Update (Phase 2 SlashCommand executed - tasks attached)**: +**TodoWrite Update (Phase 2 Skill executed - tasks attached)**: ```json [ {"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"}, @@ -199,7 +199,7 @@ SlashCommand(command="/workflow:tools:context-gather --session [sessionId] \"[st ] ``` -**Note**: SlashCommand execute **attaches** context-gather's 3 tasks. Orchestrator **executes** these tasks sequentially. +**Note**: Skill execute **attaches** context-gather's 3 tasks. Orchestrator **executes** these tasks sequentially. @@ -255,7 +255,7 @@ Return to user showing Phase 2 results, then auto-continue to Phase 3/4 (dependi **Step 3.1: Execute** - Detect and resolve conflicts with CLI analysis ```javascript -SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] --context [contextPath]") +Skill(skill="workflow:tools:conflict-resolution", args="--session [sessionId] --context [contextPath]") ``` **Input**: @@ -276,7 +276,7 @@ SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] -**TodoWrite Update (Phase 3 SlashCommand executed - tasks attached, if conflict_risk ≥ medium)**: +**TodoWrite Update (Phase 3 Skill executed - tasks attached, if conflict_risk ≥ medium)**: ```json [ {"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"}, @@ -289,7 +289,7 @@ SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] ] ``` -**Note**: SlashCommand execute **attaches** conflict-resolution's 3 tasks. Orchestrator **executes** these tasks sequentially. +**Note**: Skill execute **attaches** conflict-resolution's 3 tasks. Orchestrator **executes** these tasks sequentially. @@ -352,7 +352,7 @@ Return to user showing conflict resolution results (if executed) and selected st **Step 3.2: Execute** - Optimize memory before proceeding ```javascript - SlashCommand(command="/compact") + Skill(skill="compact") ``` - Memory compaction is particularly important after analysis phase which may generate extensive documentation @@ -391,7 +391,7 @@ Return to user showing conflict resolution results (if executed) and selected st **Step 4.1: Execute** - Generate implementation plan and task JSONs ```javascript -SlashCommand(command="/workflow:tools:task-generate-agent --session [sessionId]") +Skill(skill="workflow:tools:task-generate-agent", args="--session [sessionId]") ``` **CLI Execution Note**: CLI tool usage is now determined semantically by action-planning-agent based on user's task description. If user specifies "use Codex/Gemini/Qwen for X", the agent embeds `command` fields in relevant `implementation_approach` steps. @@ -410,7 +410,7 @@ SlashCommand(command="/workflow:tools:task-generate-agent --session [sessionId]" -**TodoWrite Update (Phase 4 SlashCommand executed - agent task attached)**: +**TodoWrite Update (Phase 4 Skill executed - agent task attached)**: ```json [ {"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"}, @@ -471,13 +471,13 @@ const userChoice = AskUserQuestion({ // Execute based on user choice if (userChoice.answers["Next Action"] === "Verify Plan Quality (Recommended)") { console.log("\n🔍 Starting plan verification...\n"); - SlashCommand(command="/workflow:plan-verify --session " + sessionId); + Skill(skill="workflow:plan-verify", args="--session " + sessionId); } else if (userChoice.answers["Next Action"] === "Start Execution") { console.log("\n🚀 Starting task execution...\n"); - SlashCommand(command="/workflow:execute --session " + sessionId); + Skill(skill="workflow:execute", args="--session " + sessionId); } else if (userChoice.answers["Next Action"] === "Review Status Only") { console.log("\n📊 Displaying session status...\n"); - SlashCommand(command="/workflow:status --session " + sessionId); + Skill(skill="workflow:status", args="--session " + sessionId); } ``` @@ -489,7 +489,7 @@ if (userChoice.answers["Next Action"] === "Verify Plan Quality (Recommended)") { ### Key Principles -1. **Task Attachment** (when SlashCommand executed): +1. **Task Attachment** (when Skill executed): - Sub-command's internal tasks are **attached** to orchestrator's TodoWrite - **Phase 2, 3**: Multiple sub-tasks attached (e.g., Phase 2.1, 2.2, 2.3) - **Phase 4**: Single agent task attached (e.g., "Execute task-generate-agent") @@ -595,7 +595,7 @@ User triggers: /workflow:plan "Build authentication system" Phase 1: Session Discovery → sessionId extracted ↓ -Phase 2: Context Gathering (SlashCommand executed) +Phase 2: Context Gathering (Skill executed) → ATTACH 3 sub-tasks: ← ATTACHED - → Analyze codebase structure - → Identify integration points @@ -606,7 +606,7 @@ Phase 2: Context Gathering (SlashCommand executed) ↓ Conditional Branch: Check conflict_risk ├─ IF conflict_risk ≥ medium: - │ Phase 3: Conflict Resolution (SlashCommand executed) + │ Phase 3: Conflict Resolution (Skill executed) │ → ATTACH 3 sub-tasks: ← ATTACHED │ - → Detect conflicts with CLI analysis │ - → Present conflicts to user @@ -616,7 +616,7 @@ Conditional Branch: Check conflict_risk │ └─ ELSE: Skip Phase 3, proceed to Phase 4 ↓ -Phase 4: Task Generation (SlashCommand executed) +Phase 4: Task Generation (Skill executed) → Single agent task (no sub-tasks) → Agent autonomously completes internally: (discovery → planning → output) @@ -626,7 +626,7 @@ Return summary to user ``` **Key Points**: -- **← ATTACHED**: Tasks attached to TodoWrite when SlashCommand executed +- **← ATTACHED**: Tasks attached to TodoWrite when Skill executed - Phase 2, 3: Multiple sub-tasks - Phase 4: Single agent task - **← COLLAPSED**: Sub-tasks collapsed to summary after completion (Phase 2, 3 only) diff --git a/.claude/commands/workflow/review-cycle-fix.md b/.claude/commands/workflow/review-cycle-fix.md index a659e93b..5a3274e2 100644 --- a/.claude/commands/workflow/review-cycle-fix.md +++ b/.claude/commands/workflow/review-cycle-fix.md @@ -2,7 +2,7 @@ name: review-cycle-fix description: Automated fixing of code review findings with AI-powered planning and coordinated execution. Uses intelligent grouping, multi-stage timeline coordination, and test-driven verification. argument-hint: " [--resume] [--max-iterations=N]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*), Edit(*), Write(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Task(*), Edit(*), Write(*) --- # Workflow Review-Cycle-Fix Command diff --git a/.claude/commands/workflow/review-module-cycle.md b/.claude/commands/workflow/review-module-cycle.md index b8fe994e..7da3deb1 100644 --- a/.claude/commands/workflow/review-module-cycle.md +++ b/.claude/commands/workflow/review-module-cycle.md @@ -2,7 +2,7 @@ name: review-module-cycle description: Independent multi-dimensional code review for specified modules/files. Analyzes specific code paths across 7 dimensions with hybrid parallel-iterative execution, independent of workflow sessions. argument-hint: " [--dimensions=security,architecture,...] [--max-iterations=N]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Task(*) --- # Workflow Review-Module-Cycle Command @@ -187,7 +187,7 @@ const CATEGORIES = { **Step 1: Session Creation** ```javascript // Create workflow session for this review (type: review) -SlashCommand(command="/workflow:session:start --type review \"Code review for [target_pattern]\"") +Skill(skill="workflow:session:start", args="--type review \"Code review for [target_pattern]\"") // Parse output const sessionId = output.match(/SESSION_ID: (WFS-[^\s]+)/)[1]; diff --git a/.claude/commands/workflow/review-session-cycle.md b/.claude/commands/workflow/review-session-cycle.md index 65b5fda9..73e26af7 100644 --- a/.claude/commands/workflow/review-session-cycle.md +++ b/.claude/commands/workflow/review-session-cycle.md @@ -2,7 +2,7 @@ name: review-session-cycle description: Session-based comprehensive multi-dimensional code review. Analyzes git changes from workflow session across 7 dimensions with hybrid parallel-iterative execution, aggregates findings, and performs focused deep-dives on critical issues until quality gates met. argument-hint: "[session-id] [--dimensions=security,architecture,...] [--max-iterations=N]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Task(*) --- # Workflow Review-Session-Cycle Command diff --git a/.claude/commands/workflow/session/start.md b/.claude/commands/workflow/session/start.md index 020da039..145ba42c 100644 --- a/.claude/commands/workflow/session/start.md +++ b/.claude/commands/workflow/session/start.md @@ -50,7 +50,7 @@ bash(test -f .workflow/project-guidelines.json && echo "GUIDELINES_EXISTS" || ec **If either NOT_FOUND**, delegate to `/workflow:init`: ```javascript // Call workflow:init for intelligent project analysis -SlashCommand({command: "/workflow:init"}); +Skill(skill="workflow:init"); // Wait for init completion // project-tech.json and project-guidelines.json will be created diff --git a/.claude/commands/workflow/tdd-plan.md b/.claude/commands/workflow/tdd-plan.md index 1d343c29..deccc571 100644 --- a/.claude/commands/workflow/tdd-plan.md +++ b/.claude/commands/workflow/tdd-plan.md @@ -2,7 +2,7 @@ name: tdd-plan description: TDD workflow planning with Red-Green-Refactor task chain generation, test-first development structure, and cycle tracking argument-hint: "\"feature description\"|file.md" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*) --- # TDD Workflow Plan Command (/workflow:tdd-plan) @@ -14,7 +14,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) **CLI Tool Selection**: CLI tool usage is determined semantically from user's task description. Include "use Codex/Gemini/Qwen" in your request for CLI execution. **Task Attachment Model**: -- SlashCommand execute **expands workflow** by attaching sub-tasks to current TodoWrite +- Skill execute **expands workflow** by attaching sub-tasks to current TodoWrite - When executing a sub-command (e.g., `/workflow:tools:test-context-gather`), its internal tasks are attached to the orchestrator's TodoWrite - Orchestrator **executes these attached tasks** sequentially - After completion, attached tasks are **collapsed** back to high-level phase summary @@ -34,7 +34,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) 4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically 5. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern 6. **TDD Context**: All descriptions include "TDD:" prefix -7. **Task Attachment Model**: SlashCommand execute **attaches** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion +7. **Task Attachment Model**: Skill execute **attaches** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion 8. **⚠️ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow. After executing all attached tasks, immediately collapse them and execute next phase ## TDD Compliance Requirements @@ -82,7 +82,7 @@ NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST **Step 1.1: Execute** - Session discovery and initialization ```javascript -SlashCommand(command="/workflow:session:start --type tdd --auto \"TDD: [structured-description]\"") +Skill(skill="workflow:session:start", args="--type tdd --auto \"TDD: [structured-description]\"") ``` **TDD Structured Format**: @@ -107,7 +107,7 @@ TEST_FOCUS: [Test scenarios] **Step 2.1: Execute** - Context gathering and analysis ```javascript -SlashCommand(command="/workflow:tools:context-gather --session [sessionId] \"TDD: [structured-description]\"") +Skill(skill="workflow:tools:context-gather", args="--session [sessionId] \"TDD: [structured-description]\"") ``` **Use Same Structured Description**: Pass the same structured format from Phase 1 @@ -133,7 +133,7 @@ SlashCommand(command="/workflow:tools:context-gather --session [sessionId] \"TDD **Step 3.1: Execute** - Test coverage analysis and framework detection ```javascript -SlashCommand(command="/workflow:tools:test-context-gather --session [sessionId]") +Skill(skill="workflow:tools:test-context-gather", args="--session [sessionId]") ``` **Purpose**: Analyze existing codebase for: @@ -148,7 +148,7 @@ SlashCommand(command="/workflow:tools:test-context-gather --session [sessionId]" -**TodoWrite Update (Phase 3 SlashCommand executed - tasks attached)**: +**TodoWrite Update (Phase 3 Skill executed - tasks attached)**: ```json [ {"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"}, @@ -162,7 +162,7 @@ SlashCommand(command="/workflow:tools:test-context-gather --session [sessionId]" ] ``` -**Note**: SlashCommand execute **attaches** test-context-gather's 3 tasks. Orchestrator **executes** these tasks. +**Note**: Skill execute **attaches** test-context-gather's 3 tasks. Orchestrator **executes** these tasks. **Next Action**: Tasks attached → **Execute Phase 3.1-3.3** sequentially @@ -192,7 +192,7 @@ SlashCommand(command="/workflow:tools:test-context-gather --session [sessionId]" **Step 4.1: Execute** - Conflict detection and resolution ```javascript -SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] --context [contextPath]") +Skill(skill="workflow:tools:conflict-resolution", args="--session [sessionId] --context [contextPath]") ``` **Input**: @@ -213,7 +213,7 @@ SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] -**TodoWrite Update (Phase 4 SlashCommand executed - tasks attached, if conflict_risk ≥ medium)**: +**TodoWrite Update (Phase 4 Skill executed - tasks attached, if conflict_risk ≥ medium)**: ```json [ {"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"}, @@ -228,7 +228,7 @@ SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] ] ``` -**Note**: SlashCommand execute **attaches** conflict-resolution's 3 tasks. Orchestrator **executes** these tasks. +**Note**: Skill execute **attaches** conflict-resolution's 3 tasks. Orchestrator **executes** these tasks. **Next Action**: Tasks attached → **Execute Phase 4.1-4.3** sequentially @@ -257,7 +257,7 @@ SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] **Step 4.5: Execute** - Memory compaction ```javascript - SlashCommand(command="/compact") + Skill(skill="compact") ``` - This optimizes memory before proceeding to Phase 5 @@ -271,7 +271,7 @@ SlashCommand(command="/workflow:tools:conflict-resolution --session [sessionId] **Step 5.1: Execute** - TDD task generation via action-planning-agent with Phase 0 user configuration ```javascript -SlashCommand(command="/workflow:tools:task-generate-tdd --session [sessionId]") +Skill(skill="workflow:tools:task-generate-tdd", args="--session [sessionId]") ``` **Note**: Phase 0 now includes: @@ -311,7 +311,7 @@ SlashCommand(command="/workflow:tools:task-generate-tdd --session [sessionId]") -**TodoWrite Update (Phase 5 SlashCommand executed - tasks attached)**: +**TodoWrite Update (Phase 5 Skill executed - tasks attached)**: ```json [ {"content": "Phase 1: Session Discovery", "status": "completed", "activeForm": "Executing session discovery"}, @@ -325,7 +325,7 @@ SlashCommand(command="/workflow:tools:task-generate-tdd --session [sessionId]") ] ``` -**Note**: SlashCommand execute **attaches** task-generate-tdd's 3 tasks. Orchestrator **executes** these tasks. Each generated IMPL task will contain internal Red-Green-Refactor cycle. +**Note**: Skill execute **attaches** task-generate-tdd's 3 tasks. Orchestrator **executes** these tasks. Each generated IMPL task will contain internal Red-Green-Refactor cycle. **Next Action**: Tasks attached → **Execute Phase 5.1-5.3** sequentially @@ -462,7 +462,7 @@ Quality Gate: Consider running /workflow:plan-verify to validate TDD task struct ### Key Principles -1. **Task Attachment** (when SlashCommand executed): +1. **Task Attachment** (when Skill executed): - Sub-command's internal tasks are **attached** to orchestrator's TodoWrite - Example: `/workflow:tools:test-context-gather` attaches 3 sub-tasks (Phase 3.1, 3.2, 3.3) - First attached task marked as `in_progress`, others as `pending` @@ -534,7 +534,7 @@ TDD Workflow Orchestrator └─ Recommend: /workflow:plan-verify Key Points: -• ← ATTACHED: SlashCommand attaches sub-tasks to orchestrator TodoWrite +• ← ATTACHED: Skill attaches sub-tasks to orchestrator TodoWrite • ← COLLAPSED: Sub-tasks executed and collapsed to phase summary • TDD-specific: Each generated IMPL task contains complete Red-Green-Refactor cycle ``` diff --git a/.claude/commands/workflow/tdd-verify.md b/.claude/commands/workflow/tdd-verify.md index c6af5e9b..0acb8c9f 100644 --- a/.claude/commands/workflow/tdd-verify.md +++ b/.claude/commands/workflow/tdd-verify.md @@ -2,7 +2,7 @@ name: tdd-verify description: Verify TDD workflow compliance against Red-Green-Refactor cycles. Generates quality report with coverage analysis and quality gate recommendation. Orchestrates sub-commands for comprehensive validation. argument-hint: "[optional: --session WFS-session-id]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Write(*), Bash(*), Glob(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Write(*), Bash(*), Glob(*) --- # TDD Verification Command (/workflow:tdd-verify) @@ -179,7 +179,7 @@ Calculate: **Step 3.1: Call Coverage Analysis Sub-command** ```bash -SlashCommand(command="/workflow:tools:tdd-coverage-analysis --session {session_id}") +Skill(skill="workflow:tools:tdd-coverage-analysis", args="--session {session_id}") ``` **Step 3.2: Parse Output Files** diff --git a/.claude/commands/workflow/test-cycle-execute.md b/.claude/commands/workflow/test-cycle-execute.md index b3aa6aa5..3dfd30c4 100644 --- a/.claude/commands/workflow/test-cycle-execute.md +++ b/.claude/commands/workflow/test-cycle-execute.md @@ -2,7 +2,7 @@ name: test-cycle-execute description: Execute test-fix workflow with dynamic task generation and iterative fix cycles until test pass rate >= 95% or max iterations reached. Uses @cli-planning-agent for failure analysis and task generation. argument-hint: "[--resume-session=\"session-id\"] [--max-iterations=N]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Task(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Task(*) --- # Workflow Test-Cycle-Execute Command diff --git a/.claude/commands/workflow/test-fix-gen.md b/.claude/commands/workflow/test-fix-gen.md index b182ca21..fd058a5a 100644 --- a/.claude/commands/workflow/test-fix-gen.md +++ b/.claude/commands/workflow/test-fix-gen.md @@ -2,7 +2,7 @@ name: test-fix-gen description: Create test-fix workflow session with progressive test layers (L0-L3), AI code validation, and test task generation argument-hint: "(source-session-id | \"feature description\" | /path/to/file.md)" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*) group: workflow --- @@ -23,7 +23,7 @@ This workflow runs **fully autonomously** once triggered. Phase 3 (test analysis 5. **Phase 4 executes** → Task generation (test-task-generate) → Reports final summary **Task Attachment Model**: -- SlashCommand execute **expands workflow** by attaching sub-tasks to current TodoWrite +- Skill execute **expands workflow** by attaching sub-tasks to current TodoWrite - When a sub-command is executed, its internal tasks are attached to the orchestrator's TodoWrite - Orchestrator **executes these attached tasks** sequentially - After completion, attached tasks are **collapsed** back to high-level phase summary @@ -42,7 +42,7 @@ This workflow runs **fully autonomously** once triggered. Phase 3 (test analysis 3. **Parse Every Output**: Extract required data from each command output for next phase 4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically 5. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern -6. **Task Attachment Model**: SlashCommand execute **attaches** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion +6. **Task Attachment Model**: Skill execute **attaches** sub-tasks to current workflow. Orchestrator **executes** these attached tasks itself, then **collapses** them after completion 7. **⚠️ CRITICAL: DO NOT STOP**: Continuous multi-phase workflow. After executing all attached tasks, immediately collapse them and execute next phase --- @@ -103,7 +103,7 @@ Phase 5: Return Summary **Step 1.0: Detect Input Mode** -```javascript +``` // Automatic mode detection based on input pattern if (input.startsWith("WFS-")) { MODE = "session" @@ -116,12 +116,12 @@ if (input.startsWith("WFS-")) { **Step 1.1: Execute** - Create test workflow session -```javascript +``` // Session Mode - preserve original task description -SlashCommand(command="/workflow:session:start --type test --new \"Test validation for [sourceSessionId]: [originalTaskDescription]\"") +Skill(skill="workflow:session:start", args="--type test --new \"Test validation for [sourceSessionId]: [originalTaskDescription]\"") // Prompt Mode - use user's description directly -SlashCommand(command="/workflow:session:start --type test --new \"Test generation for: [description]\"") +Skill(skill="workflow:session:start", args="--type test --new \"Test generation for: [description]\"") ``` **Parse Output**: @@ -139,12 +139,12 @@ SlashCommand(command="/workflow:session:start --type test --new \"Test generatio **Step 2.1: Execute** - Gather context based on mode -```javascript +``` // Session Mode - gather from source session -SlashCommand(command="/workflow:tools:test-context-gather --session [testSessionId]") +Skill(skill="workflow:tools:test-context-gather", args="--session [testSessionId]") // Prompt Mode - gather from codebase -SlashCommand(command="/workflow:tools:context-gather --session [testSessionId] \"[task_description]\"") +Skill(skill="workflow:tools:context-gather", args="--session [testSessionId] \"[task_description]\"") ``` **Input**: `testSessionId` from Phase 1 @@ -189,8 +189,8 @@ SlashCommand(command="/workflow:tools:context-gather --session [testSessionId] \ **Step 3.1: Execute** - Analyze test requirements with Gemini -```javascript -SlashCommand(command="/workflow:tools:test-concept-enhanced --session [testSessionId] --context [contextPath]") +``` +Skill(skill="workflow:tools:test-concept-enhanced", args="--session [testSessionId] --context [contextPath]") ``` **Input**: @@ -224,8 +224,8 @@ SlashCommand(command="/workflow:tools:test-concept-enhanced --session [testSessi **Step 4.1: Execute** - Generate test planning documents -```javascript -SlashCommand(command="/workflow:tools:test-task-generate --session [testSessionId]") +``` +Skill(skill="workflow:tools:test-task-generate", args="--session [testSessionId]") ``` **Input**: `testSessionId` from Phase 1 @@ -337,7 +337,7 @@ Phase 1: Create Test Session → /workflow:session:start --type test → testSessionId extracted (WFS-test-user-auth) ↓ -Phase 2: Gather Test Context (SlashCommand executed) +Phase 2: Gather Test Context (Skill executed) → ATTACH 3 sub-tasks: ← ATTACHED - → Load codebase context - → Analyze test coverage @@ -346,7 +346,7 @@ Phase 2: Gather Test Context (SlashCommand executed) → COLLAPSE tasks ← COLLAPSED → contextPath extracted ↓ -Phase 3: Test Generation Analysis (SlashCommand executed) +Phase 3: Test Generation Analysis (Skill executed) → ATTACH 3 sub-tasks: ← ATTACHED - → Analyze coverage gaps with Gemini - → Detect AI code issues (L0.5) @@ -355,7 +355,7 @@ Phase 3: Test Generation Analysis (SlashCommand executed) → COLLAPSE tasks ← COLLAPSED → TEST_ANALYSIS_RESULTS.md created ↓ -Phase 4: Generate Test Tasks (SlashCommand executed) +Phase 4: Generate Test Tasks (Skill executed) → Single agent task (test-task-generate → action-planning-agent) → Agent autonomously generates: - IMPL-001.json (test generation) diff --git a/.claude/commands/workflow/ui-design/codify-style.md b/.claude/commands/workflow/ui-design/codify-style.md index 67a9834e..a0cba0a4 100644 --- a/.claude/commands/workflow/ui-design/codify-style.md +++ b/.claude/commands/workflow/ui-design/codify-style.md @@ -2,7 +2,7 @@ name: workflow:ui-design:codify-style description: Orchestrator to extract styles from code and generate shareable reference package with preview (automatic file discovery) argument-hint: " [--package-name ] [--output-dir ] [--overwrite]" -allowed-tools: SlashCommand,Bash,Read,TodoWrite +allowed-tools: Skill,Bash,Read,TodoWrite auto-continue: true --- @@ -27,7 +27,7 @@ auto-continue: true **Phase Transition Mechanism**: - **Phase 0 (Validation)**: Validate parameters, prepare workspace → IMMEDIATELY triggers Phase 1 -- **Phase 1-2 (Task Attachment)**: `SlashCommand` invocation **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these tasks itself. +- **Phase 1-2 (Task Attachment)**: `Skill` invocation **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these tasks itself. - **Task Execution**: Orchestrator runs attached tasks sequentially, updating TodoWrite as each completes - **Task Collapse**: After all attached tasks complete, collapse them into phase summary - **Phase Transition**: Automatically execute next phase after collapsing completed tasks @@ -35,7 +35,7 @@ auto-continue: true **Auto-Continue Mechanism**: TodoWrite tracks phase status with dynamic task attachment/collapse. After executing all attached tasks, you MUST immediately collapse them, restore phase summary, and execute the next phase. No user intervention required. The workflow is NOT complete until reaching Phase 3. -**Task Attachment Model**: SlashCommand invocation is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion. +**Task Attachment Model**: Skill invocation is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion. ## Core Rules @@ -45,7 +45,7 @@ auto-continue: true 4. **Intelligent Validation**: Smart parameter validation with user-friendly error messages 5. **Safety First**: Package overwrite protection, existence checks, fallback error handling 6. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern -7. **⚠️ CRITICAL: Task Attachment Model** - SlashCommand invocation **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these attached tasks itself, not waiting for external completion. This is NOT delegation - it's task expansion. +7. **⚠️ CRITICAL: Task Attachment Model** - Skill invocation **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these attached tasks itself, not waiting for external completion. This is NOT delegation - it's task expansion. 8. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. After executing all attached tasks, you MUST immediately collapse them and execute the next phase. Workflow is NOT complete until Phase 3. --- @@ -199,7 +199,7 @@ STORE: temp_id, design_run_path -**TodoWrite Update (Phase 1 SlashCommand invoked - tasks attached)**: +**TodoWrite Update (Phase 1 Skill invoked - tasks attached)**: ```json [ {"content": "Phase 0: Validate parameters and prepare session", "status": "completed", "activeForm": "Validating parameters"}, @@ -212,7 +212,7 @@ STORE: temp_id, design_run_path ] ``` -**Note**: SlashCommand invocation **attaches** import-from-code's 4 tasks to current workflow. Orchestrator **executes** these tasks itself. +**Note**: Skill invocation **attaches** import-from-code's 4 tasks to current workflow. Orchestrator **executes** these tasks itself. **Next Action**: Tasks attached → **Execute Phase 1.0-1.3** sequentially @@ -236,13 +236,13 @@ command = "/workflow:ui-design:import-from-code" + ```bash TRY: - # SlashCommand invocation ATTACHES import-from-code's 4 tasks to current workflow + # Skill invocation ATTACHES import-from-code's 4 tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself: # 1. Phase 1.0: Discover and categorize code files # 2. Phase 1.1: Style Agent extraction # 3. Phase 1.2: Animation Agent extraction # 4. Phase 1.3: Layout Agent extraction - SlashCommand(command) + Skill(skill=command) # After executing all attached tasks, verify extraction outputs tokens_path = "${design_run_path}/style-extraction/style-1/design-tokens.json" @@ -281,7 +281,7 @@ CATCH error: -**TodoWrite Update (Phase 2 SlashCommand invoked - tasks attached)**: +**TodoWrite Update (Phase 2 Skill invoked - tasks attached)**: ```json [ {"content": "Phase 0: Validate parameters and prepare session", "status": "completed", "activeForm": "Validating parameters"}, @@ -293,7 +293,7 @@ CATCH error: ] ``` -**Note**: Phase 1 tasks completed and collapsed. SlashCommand invocation **attaches** reference-page-generator's 3 tasks. Orchestrator **executes** these tasks itself. +**Note**: Phase 1 tasks completed and collapsed. Skill invocation **attaches** reference-page-generator's 3 tasks. Orchestrator **executes** these tasks itself. **Next Action**: Tasks attached → **Execute Phase 2.0-2.2** sequentially @@ -316,12 +316,12 @@ command = "/workflow:ui-design:reference-page-generator " + ```bash TRY: - # SlashCommand invocation ATTACHES reference-page-generator's 3 tasks to current workflow + # Skill invocation ATTACHES reference-page-generator's 3 tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself: # 1. Phase 2.0: Setup and validation # 2. Phase 2.1: Prepare component data # 3. Phase 2.2: Generate preview pages - SlashCommand(command) + Skill(skill=command) # After executing all attached tasks, verify package outputs required_files = [ @@ -450,13 +450,13 @@ TodoWrite({todos: [ // ⚠️ CRITICAL: Dynamic TodoWrite task attachment strategy: // -// **Key Concept**: SlashCommand invocation ATTACHES tasks to current workflow. +// **Key Concept**: Skill invocation ATTACHES tasks to current workflow. // Orchestrator EXECUTES these attached tasks itself, not waiting for external completion. // // 1. INITIAL STATE: 4 orchestrator-level tasks only // -// 2. PHASE 1 SlashCommand INVOCATION: -// - SlashCommand(/workflow:ui-design:import-from-code) ATTACHES 4 tasks +// 2. PHASE 1 Skill INVOCATION: +// - Skill(skill="workflow:ui-design:import-from-code") ATTACHES 4 tasks // - TodoWrite expands to: Phase 0 (completed) + 4 import-from-code tasks + Phase 2 + Phase 3 // - Orchestrator EXECUTES these 4 tasks sequentially (Phase 1.0 → 1.1 → 1.2 → 1.3) // - First attached task marked as in_progress @@ -466,8 +466,8 @@ TodoWrite({todos: [ // - COLLAPSE completed tasks into Phase 1 summary // - TodoWrite becomes: Phase 0-1 (completed) + Phase 2 + Phase 3 // -// 4. PHASE 2 SlashCommand INVOCATION: -// - SlashCommand(/workflow:ui-design:reference-page-generator) ATTACHES 3 tasks +// 4. PHASE 2 Skill INVOCATION: +// - Skill(skill="workflow:ui-design:reference-page-generator") ATTACHES 3 tasks // - TodoWrite expands to: Phase 0-1 (completed) + 3 reference-page-generator tasks + Phase 3 // - Orchestrator EXECUTES these 3 tasks sequentially (Phase 2.0 → 2.1 → 2.2) // @@ -477,7 +477,7 @@ TodoWrite({todos: [ // - TodoWrite returns to: Phase 0-2 (completed) + Phase 3 (in_progress) // // 6. PHASE 3 EXECUTION: -// - Orchestrator's own task (no SlashCommand attachment) +// - Orchestrator's own task (no Skill attachment) // - Mark Phase 3 as completed // - Final state: All 4 orchestrator tasks completed @@ -507,7 +507,7 @@ User triggers: /workflow:ui-design:codify-style ./src --package-name my-style-v1 ↓ [Phase 0 Complete] → TodoWrite: Phase 0 → completed ↓ -[Phase 1 Invoke] → SlashCommand(/workflow:ui-design:import-from-code) ATTACHES 4 tasks +[Phase 1 Invoke] → Skill(skill="workflow:ui-design:import-from-code") ATTACHES 4 tasks ├─ Phase 0 (completed) ├─ Phase 1.0: Discover and categorize code files (in_progress) ← ATTACHED ├─ Phase 1.1: Style Agent extraction (pending) ← ATTACHED @@ -523,7 +523,7 @@ User triggers: /workflow:ui-design:codify-style ./src --package-name my-style-v1 ↓ [Phase 1 Complete] → TodoWrite: COLLAPSE Phase 1.0-1.3 into Phase 1 summary ↓ -[Phase 2 Invoke] → SlashCommand(/workflow:ui-design:reference-page-generator) ATTACHES 3 tasks +[Phase 2 Invoke] → Skill(skill="workflow:ui-design:reference-page-generator") ATTACHES 3 tasks ├─ Phase 0 (completed) ├─ Phase 1: Style extraction from source code (completed) ← COLLAPSED ├─ Phase 2.0: Setup and validation (in_progress) ← ATTACHED diff --git a/.claude/commands/workflow/ui-design/explore-auto.md b/.claude/commands/workflow/ui-design/explore-auto.md index bf6e7e60..8a9d3951 100644 --- a/.claude/commands/workflow/ui-design/explore-auto.md +++ b/.claude/commands/workflow/ui-design/explore-auto.md @@ -2,7 +2,7 @@ name: explore-auto description: Interactive exploratory UI design workflow with style-centric batch generation, creates design variants from prompts/images with parallel execution and user selection argument-hint: "[--input ""] [--targets ""] [--target-type "page|component"] [--session ] [--style-variants ] [--layout-variants ]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Glob(*), Write(*), Task(conceptual-planning-agent) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Bash(*), Glob(*), Write(*), Task(conceptual-planning-agent) --- # UI Design Auto Workflow Command @@ -28,7 +28,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Glob(*), Write(* **Phase Transition Mechanism**: - **Phase 5 (User Interaction)**: User confirms targets → IMMEDIATELY executes Phase 7 -- **Phase 7-10 (Autonomous)**: SlashCommand execute **ATTACHES** tasks to current workflow +- **Phase 7-10 (Autonomous)**: Skill execute **ATTACHES** tasks to current workflow - **Task Execution**: Orchestrator **EXECUTES** these attached tasks itself - **Task Collapse**: After tasks complete, collapse them into phase summary - **Phase Transition**: Automatically execute next phase after collapsing @@ -36,7 +36,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Glob(*), Write(* **Auto-Continue Mechanism**: TodoWrite tracks phase status with dynamic task attachment/collapse. After executing all attached tasks, you MUST immediately collapse them, restore phase summary, and execute the next phase. No user intervention required. The workflow is NOT complete until Phase 10 (UI assembly) finishes. -**Task Attachment Model**: SlashCommand execute is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion. +**Task Attachment Model**: Skill execute is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion. **Target Type Detection**: Automatically inferred from prompt/targets, or explicitly set via `--target-type`. @@ -92,7 +92,7 @@ Phase 10: UI Assembly 3. **Parse & Pass**: Extract data from each output for next phase 4. **Default to All**: When selecting variants/prototypes, use ALL generated items 5. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern -6. **⚠️ CRITICAL: Task Attachment Model** - SlashCommand execute **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these attached tasks itself, not waiting for external completion. This is NOT delegation - it's task expansion. +6. **⚠️ CRITICAL: Task Attachment Model** - Skill execute **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these attached tasks itself, not waiting for external completion. This is NOT delegation - it's task expansion. 7. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. After executing all attached tasks, you MUST immediately collapse them and execute the next phase. Workflow is NOT complete until Phase 10 (UI assembly) finishes. ## Parameter Requirements @@ -364,11 +364,11 @@ IF design_source IN ["code_only", "hybrid"]: command = "/workflow:ui-design:import-from-code --design-id \"{design_id}\" --source \"{code_base_path}\"" TRY: - # SlashCommand execute ATTACHES import-from-code's tasks to current workflow + # Skill execute ATTACHES import-from-code's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself: # - Phase 0: Discover and categorize code files # - Phase 1.1-1.3: Style/Animation/Layout Agent extraction - SlashCommand(command) + Skill(skill=command) CATCH error: WARN: "⚠️ Code import failed: {error}" WARN: "Cleaning up incomplete import directories" @@ -479,9 +479,9 @@ IF design_source == "visual_only" OR needs_visual_supplement: (prompt_text ? "--prompt \"{prompt_text}\" " : "") + "--variants {style_variants} --interactive" - # SlashCommand execute ATTACHES style-extract's tasks to current workflow + # Skill execute ATTACHES style-extract's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(command) + Skill(skill=command) # After executing all attached tasks, collapse them into phase summary ELSE: @@ -522,9 +522,9 @@ IF should_extract_animation: command = " ".join(command_parts) - # SlashCommand execute ATTACHES animation-extract's tasks to current workflow + # Skill execute ATTACHES animation-extract's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(command) + Skill(skill=command) # After executing all attached tasks, collapse them into phase summary ELSE: @@ -548,9 +548,9 @@ IF (design_source == "visual_only" OR needs_visual_supplement) OR (NOT layout_co (prompt_text ? "--prompt \"{prompt_text}\" " : "") + "--targets \"{targets_string}\" --variants {layout_variants} --device-type \"{device_type}\" --interactive" - # SlashCommand execute ATTACHES layout-extract's tasks to current workflow + # Skill execute ATTACHES layout-extract's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(command) + Skill(skill=command) # After executing all attached tasks, collapse them into phase summary ELSE: @@ -571,9 +571,9 @@ REPORT: " → Pure assembly: Combining layout templates + design tokens" REPORT: " → Device: {device_type} (from layout templates)" REPORT: " → Assembly tasks: {total} combinations" -# SlashCommand execute ATTACHES generate's tasks to current workflow +# Skill execute ATTACHES generate's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself -SlashCommand(command) +Skill(skill=command) # After executing all attached tasks, collapse them into phase summary # Workflow complete - generate command handles preview file generation (compare.html, PREVIEW.md) @@ -596,10 +596,10 @@ TodoWrite({todos: [ // ⚠️ CRITICAL: Dynamic TodoWrite task attachment strategy: // -// **Key Concept**: SlashCommand execute ATTACHES tasks to current workflow. +// **Key Concept**: Skill execute ATTACHES tasks to current workflow. // Orchestrator EXECUTES these attached tasks itself, not waiting for external completion. // -// Phase 7-10 SlashCommand Execute Pattern (when tasks are attached): +// Phase 7-10 Skill Execute Pattern (when tasks are attached): // Example - Phase 7 with sub-tasks: // [ // {"content": "Phase 7: Style Extraction", "status": "in_progress", "activeForm": "Executing style extraction"}, diff --git a/.claude/commands/workflow/ui-design/imitate-auto.md b/.claude/commands/workflow/ui-design/imitate-auto.md index 89d4bf29..2ccee2bc 100644 --- a/.claude/commands/workflow/ui-design/imitate-auto.md +++ b/.claude/commands/workflow/ui-design/imitate-auto.md @@ -2,7 +2,7 @@ name: imitate-auto description: UI design workflow with direct code/image input for design token extraction and prototype generation argument-hint: "[--input ""] [--session ]" -allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Write(*), Bash(*) +allowed-tools: Skill(*), TodoWrite(*), Read(*), Write(*), Bash(*) --- # UI Design Imitate-Auto Workflow Command @@ -26,7 +26,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Write(*), Bash(*) 7. Phase 4: Design system integration → **Execute orchestrator task** → Reports completion **Phase Transition Mechanism**: -- **Task Attachment**: SlashCommand execute **ATTACHES** tasks to current workflow +- **Task Attachment**: Skill execute **ATTACHES** tasks to current workflow - **Task Execution**: Orchestrator **EXECUTES** these attached tasks itself - **Task Collapse**: After tasks complete, collapse them into phase summary - **Phase Transition**: Automatically execute next phase after collapsing @@ -34,7 +34,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Write(*), Bash(*) **Auto-Continue Mechanism**: TodoWrite tracks phase status with dynamic task attachment/collapse. After executing all attached tasks, you MUST immediately collapse them, restore phase summary, and execute the next phase. No user intervention required. The workflow is NOT complete until reaching Phase 4. -**Task Attachment Model**: SlashCommand execute is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion. +**Task Attachment Model**: Skill execute is NOT delegation - it's task expansion. The orchestrator executes these attached tasks itself, not waiting for external completion. ## Execution Process @@ -86,7 +86,7 @@ Phase 4: Design System Integration 2. **No Preliminary Validation**: Sub-commands handle their own validation 3. **Parse & Pass**: Extract data from each output for next phase 4. **Track Progress**: Update TodoWrite dynamically with task attachment/collapse pattern -5. **⚠️ CRITICAL: Task Attachment Model** - SlashCommand execute **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these attached tasks itself, not waiting for external completion. This is NOT delegation - it's task expansion. +5. **⚠️ CRITICAL: Task Attachment Model** - Skill execute **ATTACHES** tasks to current workflow. Orchestrator **EXECUTES** these attached tasks itself, not waiting for external completion. This is NOT delegation - it's task expansion. 6. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. After executing all attached tasks, you MUST immediately collapse them and execute the next phase. Workflow is NOT complete until Phase 4. ## Parameter Requirements @@ -291,11 +291,11 @@ IF design_source == "hybrid": "--source \"{code_base_path}\"" TRY: - # SlashCommand execute ATTACHES import-from-code's tasks to current workflow + # Skill execute ATTACHES import-from-code's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself: # - Phase 0: Discover and categorize code files # - Phase 1.1-1.3: Style/Animation/Layout Agent extraction - SlashCommand(command) + Skill(skill=command) CATCH error: WARN: "Code import failed: {error}" WARN: "Falling back to web-only mode" @@ -409,9 +409,9 @@ ELSE: extract_command = " ".join(command_parts) - # SlashCommand execute ATTACHES style-extract's tasks to current workflow + # Skill execute ATTACHES style-extract's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(extract_command) + Skill(skill=extract_command) # After executing all attached tasks, collapse them into phase summary TodoWrite(mark_completed: "Extract style", mark_in_progress: "Extract animation") @@ -442,9 +442,9 @@ ELSE: animation_extract_command = " ".join(command_parts) - # SlashCommand execute ATTACHES animation-extract's tasks to current workflow + # Skill execute ATTACHES animation-extract's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(animation_extract_command) + Skill(skill=animation_extract_command) # After executing all attached tasks, collapse them into phase summary TodoWrite(mark_completed: "Extract animation", mark_in_progress: "Extract layout") @@ -477,9 +477,9 @@ ELSE: layout_extract_command = " ".join(command_parts) - # SlashCommand execute ATTACHES layout-extract's tasks to current workflow + # Skill execute ATTACHES layout-extract's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(layout_extract_command) + Skill(skill=layout_extract_command) # After executing all attached tasks, collapse them into phase summary TodoWrite(mark_completed: "Extract layout", mark_in_progress: "Assemble UI") @@ -493,9 +493,9 @@ ELSE: REPORT: "🚀 Phase 3: UI Assembly" generate_command = f"/workflow:ui-design:generate --design-id \"{design_id}\"" -# SlashCommand execute ATTACHES generate's tasks to current workflow +# Skill execute ATTACHES generate's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself -SlashCommand(generate_command) +Skill(skill=generate_command) # After executing all attached tasks, collapse them into phase summary TodoWrite(mark_completed: "Assemble UI", mark_in_progress: session_id ? "Integrate design system" : "Completion") @@ -510,9 +510,9 @@ IF session_id: REPORT: "🚀 Phase 4: Design System Integration" update_command = f"/workflow:ui-design:update --session {session_id}" - # SlashCommand execute ATTACHES update's tasks to current workflow + # Skill execute ATTACHES update's tasks to current workflow # Orchestrator will EXECUTE these attached tasks itself - SlashCommand(update_command) + Skill(skill=update_command) # Update metadata metadata = Read("{base_path}/.run-metadata.json") @@ -636,10 +636,10 @@ TodoWrite({todos: [ // ⚠️ CRITICAL: Dynamic TodoWrite task attachment strategy: // -// **Key Concept**: SlashCommand execute ATTACHES tasks to current workflow. +// **Key Concept**: Skill execute ATTACHES tasks to current workflow. // Orchestrator EXECUTES these attached tasks itself, not waiting for external completion. // -// Phase 2-4 SlashCommand Execute Pattern (when tasks are attached): +// Phase 2-4 Skill Execute Pattern (when tasks are attached): // Example - Phase 2 with sub-tasks: // [ // {"content": "Phase 0: Initialize and Detect Design Source", "status": "completed", "activeForm": "Initializing"},