mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-14 02:42:04 +08:00
refactor(workflow): eliminate ambiguous wait/completion terminology
Remove ambiguous "wait for completion" expressions that could be misinterpreted as waiting for an external command. Replace with clear execution-blocking language. Changes: - "WAIT for completion" → "Execute phase (blocks until finished)" - "Upon each phase completion" → "When each phase finishes executing" - "execution pauses until completion" → "execution pauses until the command finishes" Affected files (6): - brainstorm/auto-parallel.md: 3 changes - plan.md: 3 changes - tdd-plan.md: 1 change - test-gen.md: 1 change - ui-design/explore-auto.md: 12 changes - ui-design/imitate-auto.md: 10 changes Impact: Clarifies that SlashCommand is blocking execution, not waiting for separate completion task 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -22,8 +22,8 @@ This workflow runs **fully autonomously** once triggered. Phase 1 (artifacts) ha
|
|||||||
|
|
||||||
**Auto-Continue Mechanism**:
|
**Auto-Continue Mechanism**:
|
||||||
- TodoList tracks current phase status
|
- TodoList tracks current phase status
|
||||||
- After Phase 1 (artifacts) completion, automatically load roles and launch Phase 2 agents
|
- When Phase 1 (artifacts) finishes executing, automatically load roles and launch Phase 2 agents
|
||||||
- After Phase 2 (all agents) completion, automatically execute Phase 3 synthesis
|
- When Phase 2 (all agents) finishes executing, automatically execute Phase 3 synthesis
|
||||||
- Progress updates shown at each phase for visibility
|
- Progress updates shown at each phase for visibility
|
||||||
|
|
||||||
## Core Rules
|
## Core Rules
|
||||||
@@ -32,7 +32,7 @@ This workflow runs **fully autonomously** once triggered. Phase 1 (artifacts) ha
|
|||||||
2. **No Preliminary Analysis**: Do not analyze topic before Phase 1 - artifacts handles all analysis
|
2. **No Preliminary Analysis**: Do not analyze topic before Phase 1 - artifacts handles all analysis
|
||||||
3. **Parse Every Output**: Extract selected_roles from workflow-session.json after Phase 1
|
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
|
4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically
|
||||||
5. **Track Progress**: Update TodoWrite after every phase completion
|
5. **Track Progress**: Update TodoWrite when each phase finishes executing
|
||||||
6. **TodoWrite Extension**: artifacts command EXTENDS parent TodoList (NOT replaces)
|
6. **TodoWrite Extension**: artifacts command EXTENDS parent TodoList (NOT replaces)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ This workflow runs **fully autonomously** once triggered. Phase 3 (conflict reso
|
|||||||
|
|
||||||
**Auto-Continue Mechanism**:
|
**Auto-Continue Mechanism**:
|
||||||
- TodoList tracks current phase status
|
- TodoList tracks current phase status
|
||||||
- After each phase completion, automatically executes next pending phase
|
- When each phase finishes executing, automatically execute next pending phase
|
||||||
- All phases run autonomously without user interaction (clarification handled in brainstorm phase)
|
- All phases run autonomously without user interaction (clarification handled in brainstorm phase)
|
||||||
- Progress updates shown at each phase for visibility
|
- Progress updates shown at each phase for visibility
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ This workflow runs **fully autonomously** once triggered. Phase 3 (conflict reso
|
|||||||
2. **No Preliminary Analysis**: Do not read files, analyze structure, or gather context before Phase 1
|
2. **No Preliminary Analysis**: Do not read files, analyze structure, or gather context before Phase 1
|
||||||
3. **Parse Every Output**: Extract required data from each command/agent output for next phase
|
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
|
4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically
|
||||||
5. **Track Progress**: Update TodoWrite after every phase completion
|
5. **Track Progress**: Update TodoWrite when each phase finishes executing
|
||||||
6. **Agent Delegation**: Phase 3 uses cli-execution-agent for autonomous intelligent analysis
|
6. **Agent Delegation**: Phase 3 uses cli-execution-agent for autonomous intelligent analysis
|
||||||
|
|
||||||
## 5-Phase Execution
|
## 5-Phase Execution
|
||||||
@@ -320,7 +320,7 @@ Return summary to user
|
|||||||
- Parse context path from Phase 2 output, store in memory
|
- Parse context path from Phase 2 output, store in memory
|
||||||
- **Extract conflict_risk from context-package.json**: Determine Phase 3 execution
|
- **Extract conflict_risk from context-package.json**: Determine Phase 3 execution
|
||||||
- **If conflict_risk ≥ medium**: Launch Phase 3 conflict-resolution with sessionId and contextPath
|
- **If conflict_risk ≥ medium**: Launch Phase 3 conflict-resolution with sessionId and contextPath
|
||||||
- Wait for Phase 3 completion (if executed), verify CONFLICT_RESOLUTION.md created
|
- Wait for Phase 3 to finish executing (if executed), verify CONFLICT_RESOLUTION.md created
|
||||||
- **If conflict_risk is none/low**: Skip Phase 3, proceed directly to Phase 4
|
- **If conflict_risk is none/low**: Skip Phase 3, proceed directly to Phase 4
|
||||||
- **Build Phase 4 command**:
|
- **Build Phase 4 command**:
|
||||||
- Base command: `/workflow:tools:task-generate-agent --session [sessionId]`
|
- Base command: `/workflow:tools:task-generate-agent --session [sessionId]`
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*)
|
|||||||
2. **No Preliminary Analysis**: Do not read files before Phase 1
|
2. **No Preliminary Analysis**: Do not read files before Phase 1
|
||||||
3. **Parse Every Output**: Extract required data for next phase
|
3. **Parse Every Output**: Extract required data for next phase
|
||||||
4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically
|
4. **Auto-Continue via TodoList**: Check TodoList status to execute next pending phase automatically
|
||||||
5. **Track Progress**: Update TodoWrite after every phase completion
|
5. **Track Progress**: Update TodoWrite when each phase finishes executing
|
||||||
6. **TDD Context**: All descriptions include "TDD:" prefix
|
6. **TDD Context**: All descriptions include "TDD:" prefix
|
||||||
7. **Quality Gate**: Phase 4 conflict resolution (optional, auto-triggered) validates compatibility before task generation
|
7. **Quality Gate**: Phase 4 conflict resolution (optional, auto-triggered) validates compatibility before task generation
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*)
|
|||||||
3. **Parse Every Output**: Extract required data from each phase for next phase
|
3. **Parse Every Output**: Extract required data from each phase for next phase
|
||||||
4. **Sequential Execution**: Each phase depends on previous phase's output
|
4. **Sequential Execution**: Each phase depends on previous phase's output
|
||||||
5. **Complete All Phases**: Do not return to user until Phase 5 completes (summary returned)
|
5. **Complete All Phases**: Do not return to user until Phase 5 completes (summary returned)
|
||||||
6. **Track Progress**: Update TodoWrite after every phase completion
|
6. **Track Progress**: Update TodoWrite when each phase finishes executing
|
||||||
7. **Automatic Detection**: context-gather auto-detects test session and gathers source session context
|
7. **Automatic Detection**: context-gather auto-detects test session and gathers source session context
|
||||||
8. **Parse --use-codex Flag**: Extract flag from arguments and pass to Phase 4 (test-task-generate)
|
8. **Parse --use-codex Flag**: Extract flag from arguments and pass to Phase 4 (test-task-generate)
|
||||||
9. **Command Boundary**: This command ends at Phase 5 summary. Test execution is NOT part of this command.
|
9. **Command Boundary**: This command ends at Phase 5 summary. Test execution is NOT part of this command.
|
||||||
|
|||||||
@@ -19,20 +19,20 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Glob(*), Write(*
|
|||||||
**Autonomous Flow** (⚠️ CONTINUOUS EXECUTION - DO NOT STOP):
|
**Autonomous Flow** (⚠️ CONTINUOUS EXECUTION - DO NOT STOP):
|
||||||
1. User triggers: `/workflow:ui-design:explore-auto [params]`
|
1. User triggers: `/workflow:ui-design:explore-auto [params]`
|
||||||
2. Phase 0c: Target confirmation → User confirms → **IMMEDIATELY triggers Phase 1**
|
2. Phase 0c: Target confirmation → User confirms → **IMMEDIATELY triggers Phase 1**
|
||||||
3. Phase 1 (style-extract) → **WAIT for completion** → Auto-continues
|
3. Phase 1 (style-extract) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
4. Phase 2.3 (animation-extract, optional) → **WAIT for completion** → Auto-continues
|
4. Phase 2.3 (animation-extract, optional) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
5. Phase 2.5 (layout-extract) → **WAIT for completion** → Auto-continues
|
5. Phase 2.5 (layout-extract) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
6. **Phase 3 (ui-assembly)** → **WAIT for completion** → Auto-continues
|
6. **Phase 3 (ui-assembly)** → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
7. Phase 4 (design-update) → **WAIT for completion** → Auto-continues
|
7. Phase 4 (design-update) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
8. Phase 5 (batch-plan, optional) → Reports completion
|
8. Phase 5 (batch-plan, optional) → Reports completion
|
||||||
|
|
||||||
**Phase Transition Mechanism**:
|
**Phase Transition Mechanism**:
|
||||||
- **Phase 0c (User Interaction)**: User confirms targets → IMMEDIATELY triggers Phase 1
|
- **Phase 0c (User Interaction)**: User confirms targets → IMMEDIATELY triggers Phase 1
|
||||||
- **Phase 1-5 (Autonomous)**: `SlashCommand` is BLOCKING - execution pauses until completion
|
- **Phase 1-5 (Autonomous)**: `SlashCommand` is BLOCKING - execution pauses until the command finishes
|
||||||
- Upon each phase completion: Automatically process output and execute next phase
|
- When each phase finishes executing: Automatically process output and execute next phase
|
||||||
- No additional user interaction after Phase 0c confirmation
|
- No additional user interaction after Phase 0c confirmation
|
||||||
|
|
||||||
**Auto-Continue Mechanism**: TodoWrite tracks phase status. Upon each phase completion, you MUST immediately construct and execute the next phase command. No user intervention required. The workflow is NOT complete until reaching Phase 4 (or Phase 5 if --batch-plan).
|
**Auto-Continue Mechanism**: TodoWrite tracks phase status. When each phase finishes executing, you MUST immediately construct and execute the next phase command. No user intervention required. The workflow is NOT complete until reaching Phase 4 (or Phase 5 if --batch-plan).
|
||||||
|
|
||||||
**Target Type Detection**: Automatically inferred from prompt/targets, or explicitly set via `--target-type`.
|
**Target Type Detection**: Automatically inferred from prompt/targets, or explicitly set via `--target-type`.
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Bash(*), Glob(*), Write(*
|
|||||||
3. **Parse & Pass**: Extract data from each output for next phase
|
3. **Parse & Pass**: Extract data from each output for next phase
|
||||||
4. **Default to All**: When selecting variants/prototypes, use ALL generated items
|
4. **Default to All**: When selecting variants/prototypes, use ALL generated items
|
||||||
5. **Track Progress**: Update TodoWrite after each phase
|
5. **Track Progress**: Update TodoWrite after each phase
|
||||||
6. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. After each SlashCommand completes, you MUST wait for completion, then immediately execute the next phase. Workflow is NOT complete until Phase 4 (or Phase 5 if --batch-plan).
|
6. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. Each SlashCommand execution blocks until finished, then you MUST immediately execute the next phase. Workflow is NOT complete until Phase 4 (or Phase 5 if --batch-plan).
|
||||||
|
|
||||||
## Parameter Requirements
|
## Parameter Requirements
|
||||||
|
|
||||||
@@ -409,8 +409,8 @@ ELSE:
|
|||||||
REPORT: "✅ Phase 2.3: Animation (Using Code Import)"
|
REPORT: "✅ Phase 2.3: Animation (Using Code Import)"
|
||||||
|
|
||||||
# Output: animation-tokens.json + animation-guide.md
|
# Output: animation-tokens.json + animation-guide.md
|
||||||
# SlashCommand blocks until phase complete
|
# SlashCommand blocks until phase finishes executing
|
||||||
# Upon completion, IMMEDIATELY execute Phase 2.5 (auto-continue)
|
# When phase finishes, IMMEDIATELY execute Phase 2.5 (auto-continue)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Phase 2.5: Layout Extraction
|
### Phase 2.5: Layout Extraction
|
||||||
@@ -441,8 +441,8 @@ REPORT: " → Assembly tasks: {total} combinations"
|
|||||||
|
|
||||||
SlashCommand(command)
|
SlashCommand(command)
|
||||||
|
|
||||||
# SlashCommand blocks until phase complete
|
# SlashCommand blocks until phase finishes executing
|
||||||
# Upon completion, IMMEDIATELY execute Phase 4 (auto-continue)
|
# When phase finishes, IMMEDIATELY execute Phase 4 (auto-continue)
|
||||||
# Output:
|
# Output:
|
||||||
# - {target}-style-{s}-layout-{l}.html (assembled prototypes)
|
# - {target}-style-{s}-layout-{l}.html (assembled prototypes)
|
||||||
# - {target}-style-{s}-layout-{l}.css
|
# - {target}-style-{s}-layout-{l}.css
|
||||||
@@ -455,8 +455,8 @@ SlashCommand(command)
|
|||||||
command = "/workflow:ui-design:update" + (--session ? " --session {session_id}" : "")
|
command = "/workflow:ui-design:update" + (--session ? " --session {session_id}" : "")
|
||||||
SlashCommand(command)
|
SlashCommand(command)
|
||||||
|
|
||||||
# SlashCommand blocks until phase complete
|
# SlashCommand blocks until phase finishes executing
|
||||||
# Upon completion:
|
# When phase finishes:
|
||||||
# - If --batch-plan flag present: IMMEDIATELY execute Phase 5 (auto-continue)
|
# - If --batch-plan flag present: IMMEDIATELY execute Phase 5 (auto-continue)
|
||||||
# - If no --batch-plan: Workflow complete, display final report
|
# - If no --batch-plan: Workflow complete, display final report
|
||||||
```
|
```
|
||||||
@@ -479,8 +479,8 @@ TodoWrite({todos: [
|
|||||||
{"content": "Execute design integration", "status": "pending", "activeForm": "Executing..."}
|
{"content": "Execute design integration", "status": "pending", "activeForm": "Executing..."}
|
||||||
]})
|
]})
|
||||||
|
|
||||||
// ⚠️ CRITICAL: After EACH SlashCommand completion (Phase 1-5), you MUST:
|
// ⚠️ CRITICAL: When each SlashCommand execution finishes (Phase 1-5), you MUST:
|
||||||
// 1. SlashCommand blocks and returns when phase is complete
|
// 1. SlashCommand blocks and returns when phase finishes executing
|
||||||
// 2. Update current phase: status → "completed"
|
// 2. Update current phase: status → "completed"
|
||||||
// 3. Update next phase: status → "in_progress"
|
// 3. Update next phase: status → "in_progress"
|
||||||
// 4. IMMEDIATELY execute next phase SlashCommand (auto-continue)
|
// 4. IMMEDIATELY execute next phase SlashCommand (auto-continue)
|
||||||
|
|||||||
@@ -18,19 +18,19 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Write(*), Bash(*)
|
|||||||
**Autonomous Flow** (⚠️ CONTINUOUS EXECUTION - DO NOT STOP):
|
**Autonomous Flow** (⚠️ CONTINUOUS EXECUTION - DO NOT STOP):
|
||||||
1. User triggers: `/workflow:ui-design:imitate-auto --url-map "..."`
|
1. User triggers: `/workflow:ui-design:imitate-auto --url-map "..."`
|
||||||
2. Phase 0: Initialize and parse parameters
|
2. Phase 0: Initialize and parse parameters
|
||||||
3. Phase 1: Screenshot capture (batch or deep mode) → **WAIT for completion** → Auto-continues
|
3. Phase 1: Screenshot capture (batch or deep mode) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
4. Phase 2: Style extraction (complete design systems) → **WAIT for completion** → Auto-continues
|
4. Phase 2: Style extraction (complete design systems) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
5. Phase 2.3: Animation extraction (CSS auto mode) → **WAIT for completion** → Auto-continues
|
5. Phase 2.3: Animation extraction (CSS auto mode) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
6. Phase 2.5: Layout extraction (structure templates) → **WAIT for completion** → Auto-continues
|
6. Phase 2.5: Layout extraction (structure templates) → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
7. Phase 3: Batch UI assembly → **WAIT for completion** → Auto-continues
|
7. Phase 3: Batch UI assembly → **Execute phase (blocks until finished)** → Auto-continues
|
||||||
8. Phase 4: Design system integration → Reports completion
|
8. Phase 4: Design system integration → Reports completion
|
||||||
|
|
||||||
**Phase Transition Mechanism**:
|
**Phase Transition Mechanism**:
|
||||||
- `SlashCommand` is BLOCKING - execution pauses until completion
|
- `SlashCommand` is BLOCKING - execution pauses until the command finishes
|
||||||
- Upon each phase completion: Automatically process output and execute next phase
|
- When each phase finishes executing: Automatically process output and execute next phase
|
||||||
- No user interaction required after initial parameter parsing
|
- No user interaction required after initial parameter parsing
|
||||||
|
|
||||||
**Auto-Continue Mechanism**: TodoWrite tracks phase status. Upon each phase completion, you MUST immediately construct and execute the next phase command. No user intervention required. The workflow is NOT complete until reaching Phase 5.
|
**Auto-Continue Mechanism**: TodoWrite tracks phase status. When each phase finishes executing, you MUST immediately construct and execute the next phase command. No user intervention required. The workflow is NOT complete until reaching Phase 5.
|
||||||
|
|
||||||
## Core Rules
|
## Core Rules
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ allowed-tools: SlashCommand(*), TodoWrite(*), Read(*), Write(*), Bash(*)
|
|||||||
2. **No Preliminary Validation**: Sub-commands handle their own validation
|
2. **No Preliminary Validation**: Sub-commands handle their own validation
|
||||||
3. **Parse & Pass**: Extract data from each output for next phase
|
3. **Parse & Pass**: Extract data from each output for next phase
|
||||||
4. **Track Progress**: Update TodoWrite after each phase
|
4. **Track Progress**: Update TodoWrite after each phase
|
||||||
5. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. After each SlashCommand completes, you MUST wait for completion, then immediately execute the next phase. Workflow is NOT complete until Phase 5.
|
5. **⚠️ CRITICAL: DO NOT STOP** - This is a continuous multi-phase workflow. Each SlashCommand execution blocks until finished, then you MUST immediately execute the next phase. Workflow is NOT complete until Phase 5.
|
||||||
|
|
||||||
## Parameter Requirements
|
## Parameter Requirements
|
||||||
|
|
||||||
@@ -600,8 +600,8 @@ TodoWrite({todos: [
|
|||||||
{content: "Integrate design system", status: "pending", activeForm: "Integrating"}
|
{content: "Integrate design system", status: "pending", activeForm: "Integrating"}
|
||||||
]})
|
]})
|
||||||
|
|
||||||
// ⚠️ CRITICAL: After EACH SlashCommand completion (Phase 1-5), you MUST:
|
// ⚠️ CRITICAL: When each SlashCommand execution finishes (Phase 1-5), you MUST:
|
||||||
// 1. SlashCommand blocks and returns when phase is complete
|
// 1. SlashCommand blocks and returns when phase finishes executing
|
||||||
// 2. Update current phase: status → "completed"
|
// 2. Update current phase: status → "completed"
|
||||||
// 3. Update next phase: status → "in_progress"
|
// 3. Update next phase: status → "in_progress"
|
||||||
// 4. IMMEDIATELY execute next phase SlashCommand (auto-continue)
|
// 4. IMMEDIATELY execute next phase SlashCommand (auto-continue)
|
||||||
|
|||||||
Reference in New Issue
Block a user