aiblueprint-cli 1.4.42 → 1.4.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/claude-code-config/skills/apex/SKILL.md +229 -84
  2. package/claude-code-config/skills/apex/scripts/setup-templates.sh +6 -50
  3. package/claude-code-config/skills/apex/steps/step-00-init.md +33 -39
  4. package/claude-code-config/skills/apex/steps/step-00b-interactive.md +1 -13
  5. package/claude-code-config/skills/apex/steps/step-01-analyze.md +17 -36
  6. package/claude-code-config/skills/apex/steps/step-02-plan.md +24 -353
  7. package/claude-code-config/skills/apex/steps/step-03-execute.md +0 -1
  8. package/claude-code-config/skills/apex/steps/step-04-validate.md +26 -41
  9. package/claude-code-config/skills/apex/templates/00-context.md +0 -10
  10. package/claude-code-config/skills/apex/templates/README.md +6 -25
  11. package/package.json +1 -1
  12. package/claude-code-config/skills/apex/steps/step-00b-save.md +0 -123
  13. package/claude-code-config/skills/apex/steps/step-02b-tasks.md +0 -301
  14. package/claude-code-config/skills/apex/steps/step-03-execute-teams.md +0 -296
  15. package/claude-code-config/skills/apex/steps/step-05-examine.md +0 -351
  16. package/claude-code-config/skills/apex/steps/step-06-resolve.md +0 -238
  17. package/claude-code-config/skills/apex/steps/step-07-tests.md +0 -250
  18. package/claude-code-config/skills/apex/steps/step-08-run-tests.md +0 -308
  19. package/claude-code-config/skills/apex/steps/step-09-finish.md +0 -223
  20. package/claude-code-config/skills/apex/templates/05-examine.md +0 -10
  21. package/claude-code-config/skills/apex/templates/06-resolve.md +0 -10
  22. package/claude-code-config/skills/apex/templates/07-tests.md +0 -10
  23. package/claude-code-config/skills/apex/templates/08-run-tests.md +0 -10
  24. package/claude-code-config/skills/apex/templates/09-finish.md +0 -10
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: step-04-validate
3
- description: Self-check - run tests, verify AC, audit implementation quality
3
+ description: Self-check - run tests, verify AC, audit implementation quality, complete workflow
4
4
  prev_step: steps/step-03-execute.md
5
- next_step: steps/step-05-examine.md
5
+ next_step: null
6
6
  ---
7
7
 
8
8
  # Step 4: Validate (Self-Check)
@@ -27,11 +27,10 @@ next_step: steps/step-05-examine.md
27
27
 
28
28
  ## CONTEXT BOUNDARIES:
29
29
 
30
- - Implementation from step-03 (or step-03-execute-teams) is complete
30
+ - Implementation from step-03 is complete
31
31
  - Tests may or may not pass yet
32
32
  - Type errors may exist
33
33
  - Focus is on verification, not new implementation
34
- - **If `{teams_mode}` = true:** The agent team is still alive. Do NOT shutdown or dismiss teammates. Team shutdown happens in step-09-finish only.
35
34
 
36
35
  ## YOUR TASK:
37
36
 
@@ -49,8 +48,7 @@ From previous steps:
49
48
  | `{acceptance_criteria}` | Success criteria |
50
49
  | `{auto_mode}` | Skip confirmations |
51
50
  | `{save_mode}` | Save outputs to files |
52
- | `{test_mode}` | Include test steps |
53
- | `{examine_mode}` | Auto-proceed to review |
51
+ | `{economy_mode}` | No subagents mode |
54
52
  | `{output_dir}` | Path to output (if save_mode) |
55
53
  | Implementation | Completed in step-03 |
56
54
  </available_state>
@@ -172,38 +170,28 @@ Both MUST pass.
172
170
  **Summary:** All checks passing, ready for next step.
173
171
  ```
174
172
 
175
- ### 8. Determine Next Step
173
+ ### 8. Complete Workflow
176
174
 
177
- **Decision tree:**
175
+ **Show final summary:**
178
176
 
179
177
  ```
180
- IF {test_mode} = true:
181
- → Load step-07-tests.md (test analysis and creation)
178
+ APEX Workflow Complete
182
179
 
183
- ELSE IF {examine_mode} = true:
184
- Load step-05-examine.md (adversarial review)
180
+ **Task:** {task_description}
181
+ **Task ID:** {task_id}
185
182
 
186
- ELSE IF {auto_mode} = false:
187
- Ask user:
188
- ```
183
+ **Validation Results:**
184
+ - Typecheck: ✓ Passed
185
+ - Lint: ✓ Passed
186
+ - Tests: ✓ Passed
189
187
 
190
- ```yaml
191
- questions:
192
- - header: "Next"
193
- question: "Validation complete. What would you like to do?"
194
- options:
195
- - label: "Run adversarial review"
196
- description: "Deep review for security, logic, and quality"
197
- - label: "Complete workflow"
198
- description: "Skip review and finalize"
199
- - label: "Add tests"
200
- description: "Create additional tests first"
201
- multiSelect: false
202
- ```
188
+ **Acceptance Criteria:**
189
+ - [✓] AC1: Verified
190
+ - [✓] AC2: Verified
203
191
 
204
- ```
205
- ELSE:
206
- Complete workflow (show final summary)
192
+ **Files Modified:** {list}
193
+
194
+ 🎉 Implementation complete and validated!
207
195
  ```
208
196
 
209
197
  ### 9. Complete Save Output (if save_mode)
@@ -218,10 +206,12 @@ Append to `{output_dir}/04-validate.md`:
218
206
  **Typecheck:** ✓
219
207
  **Lint:** ✓
220
208
  **Tests:** ✓
221
- **Next:** {next step based on flags}
209
+ **Workflow:** Complete
222
210
  **Timestamp:** {ISO timestamp}
223
211
  ```
224
212
 
213
+ Run: `bash {skill_dir}/scripts/update-progress.sh "{task_id}" "04" "validate" "complete"`
214
+
225
215
  ---
226
216
 
227
217
  ## SUCCESS METRICS:
@@ -232,6 +222,7 @@ Append to `{output_dir}/04-validate.md`:
232
222
  ✅ All AC verified
233
223
  ✅ Code formatted
234
224
  ✅ User informed of status
225
+ ✅ Workflow completed
235
226
 
236
227
  ## FAILURE MODES:
237
228
 
@@ -240,7 +231,6 @@ Append to `{output_dir}/04-validate.md`:
240
231
  ❌ Skipping tests for modified code
241
232
  ❌ Missing AC verification
242
233
  ❌ Proceeding with failures
243
- ❌ **CRITICAL**: Not using AskUserQuestion for next step
244
234
 
245
235
  ## VALIDATION PROTOCOLS:
246
236
 
@@ -252,15 +242,10 @@ Append to `{output_dir}/04-validate.md`:
252
242
 
253
243
  ---
254
244
 
255
- ## NEXT STEP:
245
+ ## WORKFLOW COMPLETE
256
246
 
257
- Based on flags (check in order):
258
- - **If test_mode:** Load `./step-07-tests.md`
259
- - **If examine_mode OR user requests:** Load `./step-05-examine.md`
260
- - **If pr_mode:** Load `./step-09-finish.md` to create pull request
261
- - **Otherwise:** Workflow complete - show summary
247
+ This is the final step. After validation passes, the APEX workflow is complete.
262
248
 
263
249
  <critical>
264
- Remember: NEVER proceed with failing checks - fix everything first!
265
- If teams_mode is active: NEVER shutdown teammates — they stay alive until step-09-finish!
250
+ Remember: NEVER claim completion with failing checks - fix everything first!
266
251
  </critical>
@@ -10,14 +10,10 @@
10
10
  | Flag | Value |
11
11
  |------|-------|
12
12
  | Auto mode (`-a`) | {{auto_mode}} |
13
- | Examine mode (`-x`) | {{examine_mode}} |
14
13
  | Save mode (`-s`) | {{save_mode}} |
15
- | Test mode (`-t`) | {{test_mode}} |
16
14
  | Economy mode (`-e`) | {{economy_mode}} |
17
15
  | Branch mode (`-b`) | {{branch_mode}} |
18
- | PR mode (`-pr`) | {{pr_mode}} |
19
16
  | Interactive mode (`-i`) | {{interactive_mode}} |
20
- | Tasks mode (`-k`) | {{tasks_mode}} |
21
17
  | Branch name | {{branch_name}} |
22
18
 
23
19
  ---
@@ -43,11 +39,5 @@ _To be defined in step-01-analyze.md_
43
39
  | 00-init | ⏸ Pending | |
44
40
  | 01-analyze | ⏸ Pending | |
45
41
  | 02-plan | ⏸ Pending | |
46
- | 02b-tasks | {{tasks_status}} | |
47
42
  | 03-execute | ⏸ Pending | |
48
43
  | 04-validate | ⏸ Pending | |
49
- | 05-examine | {{examine_status}} | |
50
- | 06-resolve | {{examine_status}} | |
51
- | 07-tests | {{test_status}} | |
52
- | 08-run-tests | {{test_status}} | |
53
- | 09-finish | {{pr_status}} | |
@@ -12,12 +12,7 @@ This directory contains template files used to initialize APEX workflow outputs
12
12
  | `01-analyze.md` | Analysis findings | Always (if save_mode) |
13
13
  | `02-plan.md` | Implementation plan | Always (if save_mode) |
14
14
  | `03-execute.md` | Implementation log | Always (if save_mode) |
15
- | `04-validate.md` | Validation results | Always (if save_mode) |
16
- | `05-examine.md` | Adversarial review findings | Only if examine_mode enabled |
17
- | `06-resolve.md` | Finding resolution log | Only if examine_mode enabled |
18
- | `07-tests.md` | Test analysis and creation | Only if test_mode enabled |
19
- | `08-run-tests.md` | Test runner log | Only if test_mode enabled |
20
- | `09-finish.md` | PR creation log | Only if pr_mode enabled |
15
+ | `04-validate.md` | Validation results and workflow completion | Always (if save_mode) |
21
16
  | `step-complete.md` | Completion marker template | Referenced in steps |
22
17
 
23
18
  ## Template Variables
@@ -30,18 +25,12 @@ Templates use `{{variable}}` syntax for placeholders:
30
25
  | `{{task_description}}` | Plain text task description | `add authentication middleware` |
31
26
  | `{{timestamp}}` | ISO 8601 timestamp | `2026-01-12T10:30:00Z` |
32
27
  | `{{auto_mode}}` | Auto mode flag | `true` or `false` |
33
- | `{{examine_mode}}` | Examine mode flag | `true` or `false` |
34
28
  | `{{save_mode}}` | Save mode flag | `true` or `false` |
35
- | `{{test_mode}}` | Test mode flag | `true` or `false` |
36
29
  | `{{economy_mode}}` | Economy mode flag | `true` or `false` |
37
30
  | `{{branch_mode}}` | Branch mode flag | `true` or `false` |
38
- | `{{pr_mode}}` | PR mode flag | `true` or `false` |
39
31
  | `{{interactive_mode}}` | Interactive mode flag | `true` or `false` |
40
32
  | `{{branch_name}}` | Git branch name | `feature/add-auth` |
41
33
  | `{{original_input}}` | Raw user input | `/apex -a -s add auth` |
42
- | `{{examine_status}}` | Progress status for examine steps | `⏸ Pending` or `⏭ Skip` |
43
- | `{{test_status}}` | Progress status for test steps | `⏸ Pending` or `⏭ Skip` |
44
- | `{{pr_status}}` | Progress status for PR step | `⏸ Pending` or `⏭ Skip` |
45
34
 
46
35
  ## Setup Script
47
36
 
@@ -52,15 +41,12 @@ Initializes all template files in the output directory with variables replaced.
52
41
  **Usage:**
53
42
  ```bash
54
43
  bash scripts/setup-templates.sh \
55
- "task_id" \
44
+ "feature_name" \
56
45
  "task_description" \
57
46
  "auto_mode" \
58
- "examine_mode" \
59
47
  "save_mode" \
60
- "test_mode" \
61
48
  "economy_mode" \
62
49
  "branch_mode" \
63
- "pr_mode" \
64
50
  "interactive_mode" \
65
51
  "branch_name" \
66
52
  "original_input"
@@ -73,12 +59,7 @@ bash scripts/setup-templates.sh \
73
59
  ├── 01-analyze.md # Always created
74
60
  ├── 02-plan.md # Always created
75
61
  ├── 03-execute.md # Always created
76
- ├── 04-validate.md # Always created
77
- ├── 05-examine.md # Only if examine_mode
78
- ├── 06-resolve.md # Only if examine_mode
79
- ├── 07-tests.md # Only if test_mode
80
- ├── 08-run-tests.md # Only if test_mode
81
- └── 09-finish.md # Only if pr_mode
62
+ └── 04-validate.md # Always created
82
63
  ```
83
64
 
84
65
  ## Progress Update Script
@@ -137,7 +118,7 @@ Update `00-context.md` progress:
137
118
  ```
138
119
  ```
139
120
 
140
- **Token cost per step:** ~200 tokens × 9 steps = ~1,800 tokens
121
+ **Token cost per step:** ~200 tokens × 5 steps = ~1,000 tokens
141
122
 
142
123
  ### After Optimization
143
124
 
@@ -158,9 +139,9 @@ bash {skill_dir}/scripts/update-progress.sh "{task_id}" "01" "analyze" "in_progr
158
139
  Append your findings to `01-analyze.md` as you work.
159
140
  ```
160
141
 
161
- **Token cost per step:** ~50 tokens × 9 steps = ~450 tokens
142
+ **Token cost per step:** ~50 tokens × 5 steps = ~250 tokens
162
143
 
163
- **Total savings:** ~1,350 tokens per workflow execution (75% reduction)
144
+ **Total savings:** ~750 tokens per workflow execution (75% reduction)
164
145
 
165
146
  ## How It Works
166
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.4.42",
3
+ "version": "1.4.43",
4
4
  "description": "AIBlueprint CLI for setting up Claude Code configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",
@@ -1,123 +0,0 @@
1
- ---
2
- name: step-00b-save
3
- description: Setup save output structure for APEX workflow
4
- returns_to: step-00-init.md
5
- ---
6
-
7
- # Step 0b: Save Mode Setup
8
-
9
- ## MANDATORY EXECUTION RULES (READ FIRST):
10
-
11
- - 🛑 NEVER start analysis or implementation
12
- - ✅ ALWAYS run the setup script to create output structure
13
- - ✅ ALWAYS capture the generated `{task_id}` from the script output
14
- - 📋 YOU ARE A SETUP MANAGER, not an implementer
15
- - 🚫 FORBIDDEN to start any analysis work
16
-
17
- ## CONTEXT BOUNDARIES:
18
-
19
- - Variables available: `{feature_name}`, `{task_description}`, all flag variables, `{branch_name}`
20
- - This sub-step sets: `{task_id}`, `{output_dir}`
21
- - Return to step-00-init.md after completion
22
-
23
- ## YOUR TASK:
24
-
25
- Create the output directory structure and initialize all output files for the APEX workflow.
26
-
27
- ---
28
-
29
- ## OUTPUT STRUCTURE:
30
-
31
- When save_mode is enabled, all outputs go to the PROJECT directory:
32
-
33
- ```
34
- .claude/output/apex/{task-id}/
35
- ├── 00-context.md # Params, user request, timestamp
36
- ├── 01-analyze.md # Analysis findings
37
- ├── 02-plan.md # Implementation plan
38
- ├── 03-execute.md # Execution log
39
- ├── 04-validate.md # Validation results
40
- ├── 02b-tasks/ # Task breakdown (if -k or -m)
41
- │ ├── README.md
42
- │ └── task-NN-*.md
43
- ├── 05-examine.md # Review findings (if -x)
44
- ├── 06-resolve.md # Resolution log (if -x)
45
- ├── 07-tests.md # Test analysis (if -t)
46
- ├── 08-run-tests.md # Test runner log (if -t)
47
- └── 09-finish.md # PR creation (if -pr)
48
- ```
49
-
50
- ## EXECUTION SEQUENCE:
51
-
52
- ### 1. Run Template Setup Script
53
-
54
- ```bash
55
- bash {skill_dir}/scripts/setup-templates.sh \
56
- "{feature_name}" \
57
- "{task_description}" \
58
- "{auto_mode}" \
59
- "{examine_mode}" \
60
- "{save_mode}" \
61
- "{test_mode}" \
62
- "{economy_mode}" \
63
- "{branch_mode}" \
64
- "{pr_mode}" \
65
- "{interactive_mode}" \
66
- "{tasks_mode}" \
67
- "{branch_name}" \
68
- "{original_input}"
69
- ```
70
-
71
- **Note:** Pass `{feature_name}` (without number prefix), NOT `{task_id}`.
72
-
73
- The script:
74
- - Auto-generates `{task_id}` = `NN-{feature_name}` (next available number)
75
- - Creates `.claude/output/apex/{task_id}/` directory
76
- - Initializes `00-context.md` with configuration and progress table
77
- - Pre-creates all step files from templates
78
- - Only creates files for enabled steps (examine, tests, PR)
79
- - Outputs the generated `{task_id}`
80
-
81
- ### 2. Capture Output Variables
82
-
83
- From the script output, set:
84
- - `{task_id}` = the generated ID (e.g., `01-add-auth-middleware`)
85
- - `{output_dir}` = `.claude/output/apex/{task_id}`
86
-
87
- ### 3. Return
88
-
89
- → Return to step-00-init.md with `{task_id}` and `{output_dir}` set
90
-
91
- ---
92
-
93
- ## SAVE OUTPUT PATTERN (for all subsequent steps):
94
-
95
- Each step uses this pattern:
96
-
97
- 1. `bash {skill_dir}/scripts/update-progress.sh "{task_id}" "{step_num}" "{step_name}" "in_progress"`
98
- 2. Append findings/outputs to the pre-created step file
99
- 3. `bash {skill_dir}/scripts/update-progress.sh "{task_id}" "{step_num}" "{step_name}" "complete"`
100
-
101
- ---
102
-
103
- ## SUCCESS METRICS:
104
-
105
- ✅ Output directory created
106
- ✅ `{task_id}` generated and captured
107
- ✅ `{output_dir}` set
108
- ✅ All template files initialized
109
-
110
- ## FAILURE MODES:
111
-
112
- ❌ Not capturing `{task_id}` from script output
113
- ❌ Starting analysis before returning
114
-
115
- ---
116
-
117
- ## RETURN:
118
-
119
- After setup complete, return to `./step-00-init.md` to continue initialization.
120
-
121
- <critical>
122
- Remember: This sub-step ONLY creates the output structure. Return immediately after setting {task_id} and {output_dir}.
123
- </critical>
@@ -1,301 +0,0 @@
1
- ---
2
- name: step-02b-tasks
3
- description: Generate task breakdown with dependencies from the implementation plan
4
- prev_step: steps/step-02-plan.md
5
- next_step: steps/step-03-execute.md
6
- ---
7
-
8
- # Step 2b: Task Breakdown
9
-
10
- ## MANDATORY EXECUTION RULES (READ FIRST):
11
-
12
- - 🛑 NEVER start implementing - that's step 3
13
- - 🛑 NEVER write or modify code in this step
14
- - ✅ ALWAYS create individual task files with clear structure
15
- - ✅ ALWAYS include dependencies between tasks
16
- - ✅ ALWAYS create a README.md explaining the task graph
17
- - 📋 YOU ARE A TASK ARCHITECT, not an implementer
18
- - 💬 FOCUS on breaking down the plan into executable tasks
19
- - 🚫 FORBIDDEN to use Edit, Write (except for task files), or Bash tools
20
-
21
- ## EXECUTION PROTOCOLS:
22
-
23
- - 🎯 Analyze the plan from step-02 before creating tasks
24
- - 💾 Create `tasks/` folder inside output directory (if save_mode)
25
- - 📖 Reference the implementation plan structure
26
- - 🚫 FORBIDDEN to proceed until all tasks are created
27
-
28
- ## CONTEXT BOUNDARIES:
29
-
30
- - Context from step-01 (analysis) and step-02 (plan) is available
31
- - Implementation has NOT started
32
- - Tasks should map directly to plan sections
33
- - Each task is self-contained with all context needed
34
-
35
- ## YOUR TASK:
36
-
37
- Transform the implementation plan into individual task files with clear dependencies, enabling parallel execution where possible.
38
-
39
- ---
40
-
41
- <available_state>
42
- From previous steps:
43
-
44
- | Variable | Description |
45
- |----------|-------------|
46
- | `{task_description}` | What to implement |
47
- | `{task_id}` | Kebab-case identifier |
48
- | `{acceptance_criteria}` | Success criteria from step-01 |
49
- | `{auto_mode}` | Skip confirmations |
50
- | `{save_mode}` | Save outputs to files |
51
- | `{tasks_mode}` | Generate task breakdown (should be true) |
52
- | `{output_dir}` | Path to output (if save_mode) |
53
- | Plan | Full implementation plan from step-02 |
54
- </available_state>
55
-
56
- ---
57
-
58
- ## EXECUTION SEQUENCE:
59
-
60
- ### 1. Create Tasks Directory
61
-
62
- **If `{save_mode}` = true:**
63
-
64
- ```bash
65
- mkdir -p {output_dir}/tasks
66
- ```
67
-
68
- ### 2. Analyze Plan and Identify Tasks
69
-
70
- From the implementation plan, identify:
71
-
72
- - **Independent tasks** - Can run in parallel (no dependencies)
73
- - **Sequential tasks** - Must wait for other tasks to complete
74
- - **File-grouped tasks** - Changes to same file that could be combined
75
-
76
- **Task sizing guidelines:**
77
-
78
- - Each task should be completable in one focused session
79
- - Tasks should modify 1-3 files maximum
80
- - Complex file changes can be split into multiple tasks
81
-
82
- ### 3. Create Individual Task Files
83
-
84
- For each task, create a file: `{output_dir}/tasks/task-NN-{name}.md`
85
-
86
- **Task file structure:**
87
-
88
- ```markdown
89
- ---
90
- id: task-NN
91
- name: {short-descriptive-name}
92
- status: pending
93
- priority: {high|medium|low}
94
- depends_on: [task-XX, task-YY] # Empty array if no dependencies
95
- blocks: [task-ZZ] # Tasks waiting for this one
96
- estimated_files:
97
- - path/to/file1.ts
98
- - path/to/file2.ts
99
- ---
100
-
101
- # Task NN: {Descriptive Title}
102
-
103
- ## Objective
104
-
105
- {One sentence describing what this task accomplishes}
106
-
107
- ## Context
108
-
109
- {2-3 sentences providing background needed to complete the task}
110
-
111
- ## Plan
112
-
113
- {Specific implementation steps, referencing line numbers and patterns}
114
-
115
- 1. Step one
116
- 2. Step two
117
- 3. Step three
118
-
119
- ## Files to Modify
120
-
121
- | File | Action | Changes |
122
- |------|--------|---------|
123
- | `path/to/file.ts` | Modify | Add function X, update Y |
124
-
125
- ## Acceptance Criteria
126
-
127
- - [ ] AC1: {Specific testable criterion}
128
- - [ ] AC2: {Specific testable criterion}
129
-
130
- ## Dependencies
131
-
132
- **Depends on:**
133
- - `task-XX`: {Why this dependency exists}
134
-
135
- **Blocks:**
136
- - `task-ZZ`: {Why this blocks other tasks}
137
-
138
- ## Notes
139
-
140
- {Any additional context, gotchas, or considerations}
141
- ```
142
-
143
- ### 4. Build Dependency Graph
144
-
145
- Analyze task relationships:
146
-
147
- ```
148
- task-01 ──┬──► task-02 ──► task-04
149
-
150
- └──► task-03 ──► task-05
151
-
152
-
153
- task-06 ─────────────┘
154
- ```
155
-
156
- Identify:
157
- - **Critical path** - Longest chain of dependencies
158
- - **Parallel groups** - Tasks that can run simultaneously
159
- - **Bottlenecks** - Tasks blocking many others
160
-
161
- ### 5. Create README.md
162
-
163
- Create `{output_dir}/tasks/README.md`:
164
-
165
- ```markdown
166
- # Task Breakdown: {task_description}
167
-
168
- **Generated:** {timestamp}
169
- **Total Tasks:** {count}
170
- **Parallel Groups:** {count}
171
-
172
- ## Overview
173
-
174
- {1-2 sentences summarizing the task breakdown}
175
-
176
- ## Dependency Graph
177
-
178
- ```
179
- [Visual representation of task dependencies]
180
- ```
181
-
182
- ## Task Summary
183
-
184
- | ID | Name | Status | Depends On | Priority |
185
- |----|------|--------|------------|----------|
186
- | 01 | {name} | pending | - | high |
187
- | 02 | {name} | pending | 01 | medium |
188
-
189
- ## Parallel Execution Groups
190
-
191
- **Group 1 (Start immediately):**
192
- - task-01: {name}
193
- - task-06: {name}
194
-
195
- **Group 2 (After Group 1):**
196
- - task-02: {name} (after task-01)
197
- - task-03: {name} (after task-01, task-06)
198
-
199
- **Group 3 (After Group 2):**
200
- - task-04: {name} (after task-02)
201
- - task-05: {name} (after task-03)
202
-
203
- ## Critical Path
204
-
205
- task-01 → task-02 → task-04
206
-
207
- ## Notes
208
-
209
- {Any additional context about the task breakdown}
210
- ```
211
-
212
- ### 6. Validate Task Breakdown
213
-
214
- Checklist:
215
- - [ ] All plan sections have corresponding tasks
216
- - [ ] No circular dependencies
217
- - [ ] Each task has clear acceptance criteria
218
- - [ ] Dependencies are logical and minimal
219
- - [ ] Parallel opportunities maximized
220
- - [ ] README accurately describes the graph
221
-
222
- ### 7. Present Summary
223
-
224
- ```
225
- **Task Breakdown Complete**
226
-
227
- **Total tasks:** {count}
228
- **Independent (can start now):** {count}
229
- **Sequential chains:** {count}
230
-
231
- **Files created:**
232
- - tasks/README.md
233
- - tasks/task-01-{name}.md
234
- - tasks/task-02-{name}.md
235
- - ...
236
- ```
237
-
238
- **If `{auto_mode}` = true:**
239
- → Skip confirmation, proceed to execution
240
-
241
- **If `{auto_mode}` = false:**
242
-
243
- ```yaml
244
- questions:
245
- - header: "Tasks"
246
- question: "Task breakdown complete. Ready to proceed to implementation?"
247
- options:
248
- - label: "Continue to execution (Recommended)"
249
- description: "Start implementing tasks in order"
250
- - label: "Review tasks first"
251
- description: "I want to examine the task files"
252
- - label: "Adjust breakdown"
253
- description: "Modify the task structure"
254
- multiSelect: false
255
- ```
256
-
257
- ---
258
-
259
- ## SUCCESS METRICS:
260
-
261
- ✅ Tasks directory created with all task files
262
- ✅ Each task has clear dependencies documented
263
- ✅ README.md provides complete overview
264
- ✅ Dependency graph has no cycles
265
- ✅ Parallel groups identified
266
- ✅ Critical path documented
267
- ✅ NO code written or modified
268
-
269
- ## FAILURE MODES:
270
-
271
- ❌ Creating tasks without clear dependencies
272
- ❌ Missing README.md
273
- ❌ Circular dependencies in graph
274
- ❌ Tasks too large or too granular
275
- ❌ Starting to write code (that's step 3!)
276
- ❌ **CRITICAL**: Not using AskUserQuestion for confirmation
277
-
278
- ## TASK BREAKDOWN PROTOCOLS:
279
-
280
- - Each task must be self-contained with all needed context
281
- - Dependencies should be minimal and justified
282
- - Maximize parallel execution opportunities
283
- - Task files follow consistent structure
284
- - README provides birds-eye view
285
-
286
- ---
287
-
288
- ## NEXT STEP:
289
-
290
- After user confirms via AskUserQuestion (or auto-proceed):
291
-
292
- **If `{teams_mode}` = true:**
293
- → Load `./step-03-execute-teams.md` for Agent Team parallel execution
294
-
295
- **Otherwise:**
296
- → Load `./step-03-execute.md` to start implementation
297
-
298
- <critical>
299
- Remember: This step ONLY creates task documentation - save all implementation for step-03!
300
- The tasks folder gives a clear roadmap of what to implement and in what order.
301
- </critical>