cc-dev-template 0.1.77 → 0.1.79

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 (39) hide show
  1. package/package.json +1 -1
  2. package/src/skills/claude-md/references/audit-reflect.md +33 -0
  3. package/src/skills/claude-md/references/audit.md +2 -8
  4. package/src/skills/claude-md/references/create-reflect.md +33 -0
  5. package/src/skills/claude-md/references/create.md +3 -9
  6. package/src/skills/claude-md/references/modify-reflect.md +33 -0
  7. package/src/skills/claude-md/references/modify.md +2 -8
  8. package/src/skills/creating-agent-skills/references/create-step-2-design.md +9 -4
  9. package/src/skills/creating-agent-skills/references/create-step-3-write.md +17 -10
  10. package/src/skills/creating-agent-skills/references/create-step-4-review.md +3 -1
  11. package/src/skills/creating-agent-skills/references/create-step-5-install.md +2 -8
  12. package/src/skills/creating-agent-skills/references/create-step-6-reflect.md +33 -0
  13. package/src/skills/creating-agent-skills/references/fix-step-1-diagnose.md +4 -2
  14. package/src/skills/creating-agent-skills/references/fix-step-2-apply.md +1 -1
  15. package/src/skills/creating-agent-skills/references/fix-step-3-validate.md +2 -8
  16. package/src/skills/creating-agent-skills/references/fix-step-4-reflect.md +32 -0
  17. package/src/skills/creating-sub-agents/references/create-step-5-install.md +2 -8
  18. package/src/skills/creating-sub-agents/references/create-step-6-reflect.md +33 -0
  19. package/src/skills/creating-sub-agents/references/fix-step-3-validate.md +2 -8
  20. package/src/skills/creating-sub-agents/references/fix-step-4-reflect.md +33 -0
  21. package/src/skills/execute-spec/SKILL.md +1 -0
  22. package/src/skills/execute-spec/references/phase-5-reflect.md +34 -0
  23. package/src/skills/execute-spec/references/workflow.md +6 -8
  24. package/src/skills/initialize-project/SKILL.md +2 -8
  25. package/src/skills/initialize-project/references/reflect.md +33 -0
  26. package/src/skills/project-setup/references/step-5-verify.md +2 -8
  27. package/src/skills/project-setup/references/step-6-reflect.md +34 -0
  28. package/src/skills/prompting/references/create-reflect.md +33 -0
  29. package/src/skills/prompting/references/create.md +2 -8
  30. package/src/skills/prompting/references/review-reflect.md +33 -0
  31. package/src/skills/prompting/references/review.md +2 -8
  32. package/src/skills/research/references/step-2-conduct-research.md +2 -8
  33. package/src/skills/research/references/step-3-reflect.md +33 -0
  34. package/src/skills/spec-interview/references/step-7-finalize.md +3 -9
  35. package/src/skills/spec-interview/references/step-8-reflect.md +34 -0
  36. package/src/skills/spec-to-tasks/SKILL.md +4 -3
  37. package/src/skills/spec-to-tasks/references/step-3-generate.md +4 -7
  38. package/src/skills/spec-to-tasks/references/step-4-review.md +75 -30
  39. package/src/skills/spec-to-tasks/references/step-5-reflect.md +22 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-dev-template",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "Structured AI-assisted development framework for Claude Code",
5
5
  "bin": {
6
6
  "cc-dev-template": "./bin/install.js"
@@ -0,0 +1,33 @@
1
+ # Audit Reflection
2
+
3
+ **IMPORTANT: This step is mandatory. The audit workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience auditing the project's CLAUDE.md files. The purpose is to improve the claude-md skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any audit criteria (length thresholds, content rules, hierarchy checks) wrong, incomplete, or too strict/lenient?
12
+ 2. Did you encounter a CLAUDE.md pattern or anti-pattern that the audit steps didn't account for?
13
+ 3. Were the fix instructions (extracting workflows, removing duplication, pruning) clear and correct?
14
+ 4. Did you discover structural issues or hierarchy edge cases that should be documented for next time?
15
+ 5. Were the principles in `references/principles.md` accurate, or did real-world files reveal gaps?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the claude-md skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the claude-md skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -62,12 +62,6 @@ Remaining concerns:
62
62
  - [any issues needing human decision]
63
63
  ```
64
64
 
65
- ## Reflect
65
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
66
66
 
67
- Before ending, reflect on your experience using this skill.
68
-
69
- Were any CLAUDE.md principles, structural guidelines, or audit criteria in this skill wrong or incomplete? Did you discover a CLAUDE.md pattern or anti-pattern that should be documented for next time?
70
-
71
- If yes, update the specific file in the claude-md skill directory. Only add tribal knowledge — insights a fresh Claude instance would not already know. Keep files within size targets.
72
-
73
- Tell the user what you updated, or confirm no updates were needed.
67
+ Read references/audit-reflect.md now.
@@ -0,0 +1,33 @@
1
+ # Create Reflection
2
+
3
+ **IMPORTANT: This step is mandatory. The create workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience creating a new CLAUDE.md file. The purpose is to improve the claude-md skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were the hierarchy-checking instructions (finding parents, identifying gaps) clear and sufficient?
12
+ 2. Was the structure template useful, or did the real file need sections the template didn't suggest?
13
+ 3. Were the length guidelines (40-80 lines target) realistic for the file you created?
14
+ 4. Did the "What NOT to Include" list miss anything that tempted you to over-include?
15
+ 5. Were the principles in `references/principles.md` accurate, or did the creation process reveal gaps?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the claude-md skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the claude-md skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -69,14 +69,8 @@ Verify:
69
69
  3. Would Claude know where it is and what matters?
70
70
  4. Written as orientation, not documentation?
71
71
 
72
- If all yes, you're done.
72
+ If all yes, proceed to the reflection step.
73
73
 
74
- ## Reflect
74
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
75
75
 
76
- Before ending, reflect on your experience using this skill.
77
-
78
- Were any CLAUDE.md principles, structural guidelines, or audit criteria in this skill wrong or incomplete? Did you discover a CLAUDE.md pattern or anti-pattern that should be documented for next time?
79
-
80
- If yes, update the specific file in the claude-md skill directory. Only add tribal knowledge — insights a fresh Claude instance would not already know. Keep files within size targets.
81
-
82
- Tell the user what you updated, or confirm no updates were needed.
76
+ Read references/create-reflect.md now.
@@ -0,0 +1,33 @@
1
+ # Modify Reflection
2
+
3
+ **IMPORTANT: This step is mandatory. The modify workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience modifying the project's CLAUDE.md files. The purpose is to improve the claude-md skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were the file-selection rules (matching request type to the right CLAUDE.md level) accurate and complete?
12
+ 2. Did the hierarchy principle ("place at highest level where it applies") hold up, or were there edge cases?
13
+ 3. Were the section-matching rules (gotchas, conventions, current focus) sufficient for the content you added?
14
+ 4. Did the ~100 line overflow guidance (push deeper, prune, extract) work in practice?
15
+ 5. Were the principles in `references/principles.md` accurate, or did the modification process reveal gaps?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the claude-md skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the claude-md skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -51,12 +51,6 @@ If the content would make the file exceed ~100 lines, consider:
51
51
 
52
52
  Tell the user what was added and where. If creating a new CLAUDE.md file, explain why that location was chosen.
53
53
 
54
- ## Reflect
54
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
55
55
 
56
- Before ending, reflect on your experience using this skill.
57
-
58
- Were any CLAUDE.md principles, structural guidelines, or audit criteria in this skill wrong or incomplete? Did you discover a CLAUDE.md pattern or anti-pattern that should be documented for next time?
59
-
60
- If yes, update the specific file in the claude-md skill directory. Only add tribal knowledge — insights a fresh Claude instance would not already know. Keep files within size targets.
61
-
62
- Tell the user what you updated, or confirm no updates were needed.
56
+ Read references/modify-reflect.md now.
@@ -141,7 +141,8 @@ skill-name/
141
141
  └── references/
142
142
  ├── step-1-[name].md # Chains to step 2
143
143
  ├── step-2-[name].md # Chains to step 3
144
- └── step-3-[name].md # Final step
144
+ ├── step-3-[name].md # Chains to reflection (mandatory)
145
+ └── step-4-reflect.md # Mandatory reflection step
145
146
  ```
146
147
 
147
148
  **When to add `scripts/`:** Deterministic operations that need reliability — validation, code generation, file operations.
@@ -157,11 +158,15 @@ List out the steps. Each step becomes one markdown file in `references/`. For ea
157
158
  - What signals the step is complete (the chain condition)
158
159
  - What the next step is
159
160
 
160
- ### Include a Reflection Step
161
+ ### Include a Mandatory Reflection Step
161
162
 
162
- Every skill must end with a reflection section. This is not a separate chained step file it is a section appended to the skill's existing final step (or the end of SKILL.md for informational skills). Plan for 10-20 lines.
163
+ Every procedural skill must end with a dedicated reflection step file. This is a separate chained step — not a section appended to another step. The reflection step is the final file in the chain.
163
164
 
164
- The reflection section is where the agent looks back on its experience using the skill and, if the instructions were wrong, incomplete, or suboptimal, updates the skill files. This creates a self-learning loop — skills improve through use.
165
+ The reflection step is where the agent looks back on its experience using the skill and, if the instructions were wrong, incomplete, or suboptimal, updates the skill files. This creates a self-learning loop — skills improve through use.
166
+
167
+ The chain link to the reflection step must use mandatory language. The agent must understand that the workflow is incomplete without it. Example: "**IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**"
168
+
169
+ For informational skills, append a reflection section to the end of SKILL.md (since there is no step chain).
165
170
 
166
171
  For forked-context skills (`context: fork`), use a "Skill Observations" section in the output format instead, since the sub-agent should not edit skill files from an isolated context.
167
172
 
@@ -159,23 +159,30 @@ If the skill involves tool calls, external services, or operations that can fail
159
159
 
160
160
  For critical validations, bundle a script rather than relying on language instructions. Code is deterministic; language interpretation is not.
161
161
 
162
- ### Reflection Step
162
+ ### Reflection Step (Mandatory Separate File)
163
163
 
164
- Every skill's final step (or the end of single-file skills) must include a reflection section. This creates a self-learning loop: the agent assesses its experience and updates the skill for next time.
164
+ Every procedural skill must have a dedicated reflection step as the final file in its chain. This is not a section in another file — it is its own step file. This creates a self-learning loop: the agent assesses its experience and updates the skill for next time.
165
165
 
166
- Place the reflection after the work completion section (after "Completion", "Report Results", or equivalent). Structure it as:
166
+ **The reflection step file** should contain:
167
167
 
168
- 1. **Trigger**: "Before ending, reflect on your experience using this skill."
169
- 2. **Assessment**: "Were any instructions wrong, incomplete, or misleading? Did you have to figure something out that the skill should have told you? Did any commands, paths, or patterns fail and require correction?"
170
- 3. **Action**: "If yes, update the specific skill file where the issue lives. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know."
171
- 4. **Guardrails**: "Keep changes minimal. Fix what was wrong, add what was missing. Do not bloat the file beyond its size target or record situation-specific details that would not generalize."
172
- 5. **Report**: "Tell the user what you changed and why, or confirm that no updates were needed."
168
+ 1. **Mandatory language at the top**: Start with "**IMPORTANT: This step is mandatory. The [workflow name] workflow is not complete until this step is finished. Do not skip this.**"
169
+ 2. **Assessment**: Domain-specific questions — "Were any instructions wrong, incomplete, or misleading? Did you have to figure something out that the skill should have told you? Did any commands, paths, or patterns fail and require correction?"
170
+ 3. **Action**: "If yes, identify the specific file where the issue lives, read it, and apply the fix. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know."
171
+ 4. **Report**: "Tell the user what you changed and why, or confirm that no updates were needed."
173
172
 
174
173
  Tailor the assessment questions to the skill's domain — what "went wrong" means for a prompting skill is different from what it means for a browser automation skill.
175
174
 
176
- For forked-context skills (`context: fork`), add a "Skill Observations" optional section to the output format instead. The sub-agent notes any issues with its own instructions; the parent context decides whether to act.
175
+ **The chain link to the reflection step** (in the previous step file) must use mandatory language. Do not use a soft chain link. Example:
176
+
177
+ ```
178
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
177
179
 
178
- Keep the reflection section under 20 lines. Use imperative voice like all skill content.
180
+ Read `references/step-N-reflect.md` now.
181
+ ```
182
+
183
+ For informational skills (no step chain), append a reflection section to the end of SKILL.md instead.
184
+
185
+ For forked-context skills (`context: fork`), add a "Skill Observations" optional section to the output format instead. The sub-agent notes any issues with its own instructions; the parent context decides whether to act.
179
186
 
180
187
  ### MCP Tool References
181
188
 
@@ -44,7 +44,9 @@ Go through each file and verify:
44
44
  - Name matches the directory name?
45
45
  - Description uses third person with quoted trigger phrases?
46
46
  - All referenced files exist? (no broken links)
47
- - Reflection step present in the final step file (or end of SKILL.md for informational skills)?
47
+ - For procedural skills: dedicated reflection step file as the final step in the chain?
48
+ - Chain link to reflection step uses mandatory language? ("IMPORTANT: You are not done. You MUST read and complete the next step.")
49
+ - For informational skills: reflection section at the end of SKILL.md?
48
50
  - For forked-context skills: "Skill Observations" section in the output format?
49
51
 
50
52
  ## Run Validation
@@ -62,12 +62,6 @@ Summarize what was created:
62
62
  - Trigger phrases
63
63
  - File structure (list all files)
64
64
 
65
- ## Reflect
65
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
66
66
 
67
- Before ending, reflect on your experience creating this skill.
68
-
69
- Were any instructions in the creating-agent-skills skill wrong, incomplete, or misleading? Did you discover techniques, gotchas, or patterns that should be encoded for next time? Did any steps send you down a wrong path or leave out critical guidance?
70
-
71
- If yes, identify the specific file in the creating-agent-skills skill where the issue lives and update it. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know. Keep the file within its size target.
72
-
73
- Tell the user what you updated, or confirm no skill updates were needed.
67
+ Read `references/create-step-6-reflect.md` now.
@@ -0,0 +1,33 @@
1
+ # Step 6: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The skill creation workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience creating this skill. The purpose is to improve the creating-agent-skills skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any instructions in the creating-agent-skills workflow wrong, incomplete, or misleading?
12
+ 2. Did you discover techniques, gotchas, or patterns that should be encoded for next time?
13
+ 3. Did any steps send you down a wrong path or leave out critical guidance?
14
+ 4. Did you have to figure something out that the skill should have told you?
15
+ 5. Did any commands, paths, or patterns fail and require correction?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the creating-agent-skills skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the creating-agent-skills skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -73,9 +73,11 @@ Evaluate each file against these criteria:
73
73
  - Any unreferenced files in `references/` that should be connected?
74
74
 
75
75
  ### Self-Learning
76
- - Does the skill have a reflection step in its final step file (or at the end of SKILL.md for informational skills)?
76
+ - For procedural skills: does the skill have a dedicated reflection step file as the final step in its chain?
77
+ - Does the chain link to the reflection step use mandatory language? ("IMPORTANT: You are not done. You MUST read and complete the next step.")
78
+ - For informational skills: is there a reflection section at the end of SKILL.md?
77
79
  - For forked-context skills (`context: fork`): does the output format include a "Skill Observations" section?
78
- - If missing, flag it — every skill needs a self-learning loop.
80
+ - If missing or embedded as a section in another step file, flag it — every procedural skill needs a separate mandatory reflection step.
79
81
 
80
82
  ## Summarize Findings
81
83
 
@@ -94,7 +94,7 @@ Does this justify its token cost? If Claude already knows it — remove it. If i
94
94
 
95
95
  **Fix description:** Rewrite to third person, add quoted trigger phrases, focus on WHEN not HOW.
96
96
 
97
- **Add reflection step:** Append a reflection section to the skill's final step file (or end of SKILL.md for informational skills). See `references/create-step-3-write.md` "Reflection Step" section for the writing guidance. For forked-context skills, add a "Skill Observations" section to the output format instead.
97
+ **Add reflection step:** Create a dedicated reflection step file as the final step in the chain. Add a mandatory chain link from the previous final step using "**IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**" See `references/create-step-3-write.md` "Reflection Step" section for the full writing guidance. For informational skills, append a reflection section to the end of SKILL.md instead. For forked-context skills, add a "Skill Observations" section to the output format instead.
98
98
 
99
99
  ## Apply the Changes
100
100
 
@@ -53,12 +53,6 @@ Summarize what was fixed:
53
53
  - What was wrong and how it was resolved
54
54
  - Confirm with the user that the skill now behaves as expected
55
55
 
56
- ## Reflect
56
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
57
57
 
58
- Before ending, reflect on your experience fixing this skill.
59
-
60
- Were any diagnostic criteria, fix patterns, or writing principles in the creating-agent-skills skill wrong, incomplete, or misleading? Did you discover something during diagnosis or repair that should be encoded for next time?
61
-
62
- If yes, identify the specific file in the creating-agent-skills skill where the issue lives and update it. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know. Keep the file within its size target.
63
-
64
- Tell the user what you updated, or confirm no skill updates were needed.
58
+ Read `references/fix-step-4-reflect.md` now.
@@ -0,0 +1,32 @@
1
+ # Step 4: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The skill fix workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience fixing this skill. The purpose is to improve the creating-agent-skills skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any diagnostic criteria, fix patterns, or writing principles in the creating-agent-skills skill wrong, incomplete, or misleading?
12
+ 2. Did you discover something during diagnosis or repair that should be encoded for next time?
13
+ 3. Did you have to figure something out that the skill should have told you?
14
+ 4. Were any common fix patterns missing from the fix workflow?
15
+
16
+ ## Act
17
+
18
+ If you identified issues above, fix them now:
19
+
20
+ 1. Identify the specific file in the creating-agent-skills skill where the issue lives
21
+ 2. Read that file
22
+ 3. Apply the fix — add what was missing, correct what was wrong
23
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
24
+ 5. Keep the file within its size target
25
+
26
+ If no issues were found, confirm that to the user.
27
+
28
+ ## Report
29
+
30
+ Tell the user:
31
+ - What you changed in the creating-agent-skills skill and why, OR
32
+ - That no updates were needed and the skill performed correctly
@@ -75,12 +75,6 @@ Summarize what was created:
75
75
  - Memory scope (if any)
76
76
  - Skills preloaded (if any)
77
77
 
78
- ## Reflect
78
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
79
79
 
80
- Before ending, reflect on your experience creating this sub-agent.
81
-
82
- Were any instructions in the creating-sub-agents skill wrong, incomplete, or misleading? Did you discover techniques, gotchas, or patterns that should be encoded for next time? Did any steps send you down a wrong path or leave out critical guidance?
83
-
84
- If yes, identify the specific file in the creating-sub-agents skill where the issue lives and update it. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know. Keep the file within its size target.
85
-
86
- Tell the user what you updated, or confirm no skill updates were needed.
80
+ Read `references/create-step-6-reflect.md` now.
@@ -0,0 +1,33 @@
1
+ # Step 6: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The sub-agent creation workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience creating this sub-agent. The purpose is to improve the creating-sub-agents skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any instructions in the creating-sub-agents workflow wrong, incomplete, or misleading?
12
+ 2. Did you discover techniques, gotchas, or patterns for sub-agent design that should be encoded for next time?
13
+ 3. Did any steps send you down a wrong path or leave out critical guidance?
14
+ 4. Did you have to figure something out about frontmatter, tool grants, delegation, or prompt structure that the skill should have told you?
15
+ 5. Did any commands, paths, validation scripts, or patterns fail and require correction?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the creating-sub-agents skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the creating-sub-agents skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -51,12 +51,6 @@ Summarize what was fixed:
51
51
  - What was wrong and how it was resolved
52
52
  - Confirm with the user that the sub-agent now behaves as expected
53
53
 
54
- ## Reflect
54
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
55
55
 
56
- Before ending, reflect on your experience fixing this sub-agent.
57
-
58
- Were any diagnostic criteria, fix patterns, or writing principles in the creating-sub-agents skill wrong, incomplete, or misleading? Did you discover something during diagnosis or repair that should be encoded for next time?
59
-
60
- If yes, identify the specific file in the creating-sub-agents skill where the issue lives and update it. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know. Keep the file within its size target.
61
-
62
- Tell the user what you updated, or confirm no skill updates were needed.
56
+ Read `references/fix-step-4-reflect.md` now.
@@ -0,0 +1,33 @@
1
+ # Step 4: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The sub-agent fix workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience fixing this sub-agent. The purpose is to improve the creating-sub-agents skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any diagnostic criteria, fix patterns, or writing principles in the creating-sub-agents skill wrong, incomplete, or misleading?
12
+ 2. Did you discover something during diagnosis or repair that should be encoded for next time?
13
+ 3. Did the validation script catch the right issues, or did it miss something important?
14
+ 4. Did you have to figure something out about sub-agent frontmatter, tool grants, or prompt structure that the skill should have told you?
15
+ 5. Did any commands, paths, validation scripts, or patterns fail and require correction?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the creating-sub-agents skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the creating-sub-agents skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -33,6 +33,7 @@ Read `references/workflow.md` for the full orchestration flow.
33
33
  2. **Build** - Dispatch spec-implementer agents, receive minimal status
34
34
  3. **Validate** - Dispatch spec-validator agents, receive pass/fail
35
35
  4. **Triage** - Re-dispatch implementers for failed tasks, loop until clean
36
+ 5. **Reflect** - Assess orchestration experience, improve skill files (mandatory)
36
37
 
37
38
  ## Key Principles
38
39
 
@@ -0,0 +1,34 @@
1
+ # Phase 5: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The execute-spec workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience orchestrating this spec execution. The purpose is to improve the execute-spec skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any orchestration patterns in this workflow wrong, incomplete, or misleading?
12
+ 2. Did the dispatch instructions for implementers or validators cause confusion or failures?
13
+ 3. Did the triage loop reveal a pattern that should be encoded for next time?
14
+ 4. Were the dependency resolution or parallelism strategies effective, or did they need adjustment?
15
+ 5. Did the minimal-context principle (pass/fail only) hold up, or did you need more detail from agents?
16
+ 6. Did any scripts, paths, or agent types fail and require correction?
17
+
18
+ ## Act
19
+
20
+ If you identified issues above, fix them now:
21
+
22
+ 1. Identify the specific file in the execute-spec skill directory where the issue lives
23
+ 2. Read that file
24
+ 3. Apply the fix — add what was missing, correct what was wrong
25
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
26
+ 5. Keep the file within its size target
27
+
28
+ If no issues were found, confirm that to the user.
29
+
30
+ ## Report
31
+
32
+ Tell the user:
33
+ - What you changed in the execute-spec skill and why, OR
34
+ - That no updates were needed and the skill performed correctly
@@ -19,6 +19,10 @@ PHASE 4: TRIAGE
19
19
  For failed tasks: re-dispatch spec-implementer
20
20
  Re-validate
21
21
  Loop until clean or user defers
22
+
23
+ PHASE 5: REFLECT
24
+ Assess orchestration experience → improve skill files
25
+ (Mandatory — workflow is NOT complete without this)
22
26
  ```
23
27
 
24
28
  ## Critical: Minimal Context
@@ -73,12 +77,6 @@ Read `phase-4-triage.md` for details.
73
77
  - **Task file is source of truth** - Implementation Notes and Review Notes track all history
74
78
  - **Parallelism** - Use `run_in_background: true` where possible
75
79
 
76
- ## Reflect
77
-
78
- Before ending, reflect on your experience using this skill.
79
-
80
- Were any orchestration patterns, dispatch instructions, or triage procedures in this skill wrong or incomplete? Did the implementer/validator loop reveal a pattern that should be encoded for next time?
81
-
82
- If yes, update the specific file in the execute-spec skill directory. Only add tribal knowledge. Keep files within size targets.
80
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
83
81
 
84
- Tell the user what you updated, or confirm no updates were needed.
82
+ Read `references/phase-5-reflect.md` now.
@@ -32,12 +32,6 @@ Report what was created:
32
32
 
33
33
  End with: "Run `/prime` to start a session."
34
34
 
35
- ## Reflect
35
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
36
36
 
37
- Before ending, reflect on your experience using this skill.
38
-
39
- Were any template paths, placeholder formats, or initialization steps in this skill wrong or incomplete? Did you discover a project scaffolding pattern that should be encoded for next time?
40
-
41
- If yes, update this skill file. Only add tribal knowledge — details a fresh Claude instance would not already know. Keep within size targets.
42
-
43
- Tell the user what you updated, or confirm no updates were needed.
37
+ Read references/reflect.md now.
@@ -0,0 +1,33 @@
1
+ # Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The initialize-project workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience using this skill. The purpose is to improve the initialize-project skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any template paths, placeholder formats, or initialization steps in this skill wrong or incomplete?
12
+ 2. Did you discover project scaffolding patterns or gotchas that should be encoded for next time?
13
+ 3. Did any steps send you down a wrong path or leave out critical guidance?
14
+ 4. Did you have to figure something out that the skill should have told you?
15
+ 5. Did any templates, paths, or placeholder substitutions fail and require correction?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the initialize-project skill where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the initialize-project skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -69,12 +69,6 @@ Tell the user:
69
69
 
70
70
  If everything passed, the setup is complete.
71
71
 
72
- ## Reflect
72
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
73
73
 
74
- Before ending, reflect on your experience using this skill.
75
-
76
- Were any Makefile patterns, hook configurations, or verification steps in this skill wrong or incomplete? Did you discover a project setup convention that should be encoded for next time?
77
-
78
- If yes, update the specific file in the project-setup skill directory. Only add tribal knowledge. Keep files within size targets.
79
-
80
- Tell the user what you updated, or confirm no updates were needed.
74
+ Read `references/step-6-reflect.md` now.
@@ -0,0 +1,34 @@
1
+ # Step 6: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The project setup workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience setting up this project. The purpose is to improve the project-setup skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any instructions in the project-setup workflow wrong, incomplete, or misleading?
12
+ 2. Did you discover Makefile patterns, script conventions, or hook configurations that should be encoded for next time?
13
+ 3. Did any steps send you down a wrong path or leave out critical guidance?
14
+ 4. Did you have to figure something out that the skill should have told you?
15
+ 5. Did any commands, paths, or patterns fail and require correction?
16
+ 6. Were there language-specific setup needs that the skill didn't cover?
17
+
18
+ ## Act
19
+
20
+ If you identified issues above, fix them now:
21
+
22
+ 1. Identify the specific file in the project-setup skill where the issue lives
23
+ 2. Read that file
24
+ 3. Apply the fix — add what was missing, correct what was wrong
25
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know
26
+ 5. Keep the file within its size target
27
+
28
+ If no issues were found, confirm that to the user.
29
+
30
+ ## Report
31
+
32
+ Tell the user:
33
+ - What you changed in the project-setup skill and why, OR
34
+ - That no updates were needed and the skill performed correctly
@@ -0,0 +1,33 @@
1
+ # Reflect on Prompt Creation
2
+
3
+ **IMPORTANT: This step is mandatory. The prompt creation workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience using this skill to create the prompt. The purpose is to improve the prompting skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any prompting principles, writing guidance, or structural templates in this skill wrong or incomplete?
12
+ 2. Did you discover a prompt engineering technique that worked well but is not captured in the skill?
13
+ 3. Did the requirements-gathering questions miss something important that you had to figure out on your own?
14
+ 4. Did any guidance lead to a weaker prompt that needed correction during iteration?
15
+ 5. Did the self-review checklist catch real issues, or did it miss problems the user flagged?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the prompting skill directory where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know about prompt engineering
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the prompting skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -58,12 +58,6 @@ Ask: "Does this capture what you need? Any adjustments?"
58
58
 
59
59
  Incorporate feedback until the user is satisfied.
60
60
 
61
- ## Reflect
61
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
62
62
 
63
- Before ending, reflect on your experience using this skill.
64
-
65
- Were any prompting principles, review criteria, or writing guidance in this skill wrong or incomplete? Did you apply a technique that worked well but is not captured here? Did any guidance lead to a weaker prompt that needed correction?
66
-
67
- If yes, update the specific file in the prompting skill directory. Only add tribal knowledge — patterns or insights a fresh Claude instance would not already know about prompt engineering. Keep the file within its size target.
68
-
69
- Tell the user what you updated, or confirm no updates were needed.
63
+ Read `references/create-reflect.md` now.
@@ -0,0 +1,33 @@
1
+ # Reflect on Prompt Review
2
+
3
+ **IMPORTANT: This step is mandatory. The prompt review workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience using this skill to review the prompt. The purpose is to improve the prompting skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any review criteria, analysis checks, or prompting principles in this skill wrong or incomplete?
12
+ 2. Did you apply a review technique that caught real issues but is not captured in the skill?
13
+ 3. Did any of the four checks (positive framing, clarity, context, over-specification) miss a category of prompt problem you encountered?
14
+ 4. Did the review presentation format work well, or did the user need a different structure?
15
+ 5. Did any guidance lead you to flag something that was actually fine, or miss something that was genuinely problematic?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the prompting skill directory where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know about prompt engineering
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the prompting skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -77,12 +77,6 @@ Ask: "Would you like me to adjust anything in the improved version?"
77
77
 
78
78
  Incorporate feedback and present updated version until the user is satisfied.
79
79
 
80
- ## Reflect
80
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
81
81
 
82
- Before ending, reflect on your experience using this skill.
83
-
84
- Were any prompting principles, review criteria, or writing guidance in this skill wrong or incomplete? Did you apply a technique that worked well but is not captured here? Did any guidance lead to a weaker prompt that needed correction?
85
-
86
- If yes, update the specific file in the prompting skill directory. Only add tribal knowledge — patterns or insights a fresh Claude instance would not already know about prompt engineering. Keep the file within its size target.
87
-
88
- Tell the user what you updated, or confirm no updates were needed.
82
+ Read `references/review-reflect.md` now.
@@ -62,12 +62,6 @@ After writing the document:
62
62
  2. Summarize the key takeaways
63
63
  3. Return to the invoking context (spec-interview or user)
64
64
 
65
- ## Reflect
65
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
66
66
 
67
- Before ending, reflect on your experience using this skill.
68
-
69
- Were any research strategies, output format requirements, or source evaluation criteria in this skill wrong or incomplete? Did you discover a research approach or information synthesis technique that should be encoded for next time?
70
-
71
- If yes, update the specific file in the research skill directory. Only add tribal knowledge — insights a fresh Claude instance would not already know about conducting research. Keep files within size targets.
72
-
73
- Tell the user what you updated, or confirm no updates were needed.
67
+ Read `references/step-3-reflect.md` now.
@@ -0,0 +1,33 @@
1
+ # Step 3: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The research workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience using this skill. The purpose is to improve the research skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any research strategies, source evaluation criteria, or synthesis instructions in the research workflow wrong, incomplete, or misleading?
12
+ 2. Did you discover a research approach or information synthesis technique that should be encoded for next time?
13
+ 3. Did any steps send you down a wrong path or leave out critical guidance?
14
+ 4. Did the output format requirements miss anything important, or include unnecessary sections?
15
+ 5. Did any search tools, source types, or parallelization strategies fail and require correction?
16
+
17
+ ## Act
18
+
19
+ If you identified issues above, fix them now:
20
+
21
+ 1. Identify the specific file in the research skill directory where the issue lives
22
+ 2. Read that file
23
+ 3. Apply the fix — add what was missing, correct what was wrong
24
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know about conducting research
25
+ 5. Keep the file within its size target
26
+
27
+ If no issues were found, confirm that to the user.
28
+
29
+ ## Report
30
+
31
+ Tell the user:
32
+ - What you changed in the research skill and why, OR
33
+ - That no updates were needed and the skill performed correctly
@@ -55,14 +55,8 @@ Once user confirms no more review passes needed:
55
55
  - After all teammates confirm shutdown, use TeamDelete to clean up team resources
56
56
  - The `{spec_dir}/working/` directory remains on disk as reference for implementation
57
57
 
58
- ## Reflect
59
-
60
- Before ending, reflect on your experience conducting this spec interview.
61
-
62
- Were any interview steps, team coordination patterns, or checkpoint instructions in this skill wrong or incomplete? Did you discover a question sequence, team interaction pattern, or spec structure that worked better than what the skill prescribed?
63
-
64
- If yes, identify the specific file in the spec-interview skill where the issue lives and update it. Only add tribal knowledge — insights a fresh Claude instance would not already know about conducting spec interviews. Keep the file within its size target.
58
+ If yes to task breakdown, invoke `spec-to-tasks` and specify which spec to break down.
65
59
 
66
- Tell the user what you updated, or confirm no skill updates were needed.
60
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
67
61
 
68
- If yes to task breakdown, invoke `spec-to-tasks` and specify which spec to break down.
62
+ Read `references/step-8-reflect.md` now.
@@ -0,0 +1,34 @@
1
+ # Step 8: Reflect and Improve
2
+
3
+ **IMPORTANT: This step is mandatory. The spec interview workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ Reflect on your experience conducting this spec interview. The purpose is to improve the spec-interview skill itself based on what you just learned.
6
+
7
+ ## Assess
8
+
9
+ Answer these questions honestly:
10
+
11
+ 1. Were any interview steps wrong, incomplete, or misleading? Did any step send you down a wrong path or leave out critical guidance?
12
+ 2. Did the team coordination work smoothly? Were the checkpoint patterns (post-ideation, deep dive, finalize) at the right moments? Did any teammate produce findings too late or too early to be useful?
13
+ 3. Did the prompt templates (researcher, critic, pragmatist) give adequate direction? Did any teammate misunderstand its role or produce unhelpful output?
14
+ 4. Did you discover a question sequence, interview technique, or spec structure that worked better than what the skill prescribed?
15
+ 5. Did any commands, paths, tool interactions, or team communication patterns fail and require correction?
16
+ 6. Was the step ordering right? Should any steps be reordered, merged, or split?
17
+
18
+ ## Act
19
+
20
+ If you identified issues above, fix them now:
21
+
22
+ 1. Identify the specific file in the spec-interview skill where the issue lives
23
+ 2. Read that file
24
+ 3. Apply the fix -- add what was missing, correct what was wrong
25
+ 4. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know about conducting spec interviews or coordinating agent teams
26
+ 5. Keep the file within its size target
27
+
28
+ If no issues were found, confirm that to the user.
29
+
30
+ ## Report
31
+
32
+ Tell the user:
33
+ - What you changed in the spec-interview skill and why, OR
34
+ - That no updates were needed and the skill performed correctly
@@ -9,14 +9,15 @@ context: fork
9
9
 
10
10
  ## Workflow Overview
11
11
 
12
- This skill has 4 steps. **You must complete ALL steps before presenting to the user.**
12
+ This skill has 5 steps. **You must complete ALL steps. Do not stop early or skip any step.**
13
13
 
14
14
  1. **Identify Spec** - Find and verify the spec file
15
15
  2. **Verify File Landscape** - Map files to acceptance criteria
16
16
  3. **Generate Tasks** - Create task files in `tasks/` directory
17
- 4. **Review Tasks** - Invoke `task-review` skill to validate, fix issues
17
+ 4. **Review Tasks** - Run review checklist in a loop until no critical issues remain
18
+ 5. **Reflect** - Note any skill issues observed during this run
18
19
 
19
- Do NOT skip step 4. The review catches dependency errors and coverage gaps.
20
+ Steps 4 and 5 are mandatory. The review loop in step 4 is automated — fix issues and re-check until clean, with no user input required.
20
21
 
21
22
  ## What To Do Now
22
23
 
@@ -60,13 +60,10 @@ docs/specs/<name>/
60
60
 
61
61
  Use the template in `templates/task.md` for each file. Name files in dependency order so alphabetical sorting reflects execution order.
62
62
 
63
- ## REQUIRED: Run Review Before Presenting
63
+ ## Do NOT Present Results Yet
64
64
 
65
- **Do NOT present results to the user yet.** After generating task files, you MUST:
65
+ You have generated task files but you are NOT done. The review step is next and it is mandatory.
66
66
 
67
- 1. Read `references/step-4-review.md`
68
- 2. Invoke the `task-review` skill to validate the breakdown
69
- 3. Fix any critical issues found
70
- 4. Only then present results (including any warnings)
67
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
71
68
 
72
- This review step catches dependency errors, coverage gaps, and verification issues. Skipping it leads to broken task breakdowns that fail during implementation.
69
+ Read `references/step-4-review.md` now.
@@ -1,50 +1,95 @@
1
1
  # Step 4: Review Task Breakdown
2
2
 
3
- **This step is REQUIRED.** Do not present results until review is complete.
3
+ **IMPORTANT: This step is mandatory. The spec-to-tasks workflow is not complete until this step is finished. Do not skip this.**
4
4
 
5
- ## Run Task Review
5
+ You must review the generated tasks, fix any issues, and re-review until the breakdown is clean. This is fully automated — do not ask the user for input during this step.
6
6
 
7
- Invoke the task-review skill NOW:
7
+ ## Review Checklist
8
8
 
9
- ```
10
- Skill(skill: "task-review", args: "<spec-name>")
11
- ```
9
+ Read every task file and the spec. Evaluate each area below. For each issue found, note the severity:
10
+ - **Critical**: Must fix before proceeding
11
+ - **Warning**: Should fix, but could proceed
12
+ - **Note**: Minor suggestion
12
13
 
13
- Wait for the review to complete before proceeding.
14
+ ### 1. Coverage
14
15
 
15
- The review will check:
16
- - Coverage (all criteria have tasks)
17
- - Dependency order (tasks properly sequenced)
18
- - File plausibility (paths make sense)
19
- - Verification executability (concrete commands)
20
- - Task scope (appropriately sized)
21
- - Consistency (format, frontmatter)
16
+ Compare acceptance criteria in the spec to tasks generated.
22
17
 
23
- ## Handle Findings
18
+ - Every acceptance criterion has exactly one corresponding task
19
+ - No criteria were skipped or forgotten
20
+ - No phantom tasks that don't map to a criterion
24
21
 
25
- The review returns findings categorized as Critical, Warning, or Note.
22
+ **How to verify:** List each criterion from the spec's Acceptance Criteria section. For each, find the matching task file. Flag any orphans in either direction.
26
23
 
27
- **Critical issues**: Fix before proceeding. Update the affected task files.
24
+ ### 2. Dependency Order
28
25
 
29
- **Warnings**: Present to user with your recommendation (fix or skip).
26
+ - Task file names sort in valid execution order (T001, T002, etc.)
27
+ - Each task's `depends_on` references only earlier tasks
28
+ - No circular dependencies
29
+ - Foundation work comes before features that use it
30
30
 
31
- **Notes**: Mention briefly, no action required.
31
+ ### 3. File Plausibility
32
32
 
33
- ## Present to User
33
+ - File paths follow project conventions
34
+ - Files to modify actually exist in the codebase
35
+ - Files to create are in appropriate directories
36
+ - No duplicate files across tasks (each file appears in exactly one task)
34
37
 
35
- After addressing critical issues, present:
38
+ ### 4. Verification Executability
36
39
 
37
- 1. Number of tasks generated
38
- 2. Task titles in dependency order
39
- 3. Any warnings from the review (with recommendations)
40
- 4. Offer to show task files or proceed to implementation
40
+ - Verification is a specific command or script, not vague prose
41
+ - Test file paths exist or will be created by the task
42
+ - No "manually verify" without clear steps
43
+
44
+ **Red flags:** "Verify it works correctly", "Check that the feature functions", test commands for files not listed in the task.
45
+
46
+ ### 5. Verification Completeness
47
+
48
+ - Read the criterion text carefully — identify every distinct behavior or edge case mentioned
49
+ - For each behavior, confirm there's a corresponding verification step
50
+ - Flag any behaviors in the criterion that have no verification
51
+
52
+ ### 6. Dependency Completeness
53
+
54
+ - If task X modifies a file, check if another task creates it — that task must be in X's depends_on
55
+ - If task X uses a component/function/route, check if another task creates it — that task must be in X's depends_on
56
+
57
+ ### 7. Task Scope
58
+
59
+ - No task touches more than ~10 files (consider splitting)
60
+ - No trivially small tasks that could merge with related work
61
+ - Each task produces a verifiable outcome
62
+
63
+ ### 8. Consistency
41
64
 
42
- If the user wants changes, update the task files and re-run the review.
65
+ - Task titles match or closely reflect the acceptance criterion
66
+ - Status is `pending` for all new tasks
67
+ - Frontmatter format is consistent across all task files
43
68
 
44
- ## Skill Observations
69
+ ### 9. Component Consolidation
45
70
 
46
- If any task generation patterns, step instructions, or template formats in this skill were wrong, incomplete, or misleading during this run, include a note in your final output to the user. This helps the parent context decide whether to update the skill.
71
+ - No two tasks create components with similar names, purposes, or overlapping structure
72
+ - Shared patterns use a single shared component with configuration, not separate implementations
73
+
74
+ ## Review Loop
75
+
76
+ Run the checklist above against all task files. Then:
77
+
78
+ 1. **If Critical issues found:** Fix them by editing the task files. Then re-run the full checklist again from the top. Repeat until no Critical issues remain.
79
+ 2. **If only Warnings/Notes remain:** Proceed — you will present these to the user.
80
+ 3. **If no issues found:** Proceed.
81
+
82
+ Do NOT present results after a single pass if Critical issues exist. The loop must continue until clean.
83
+
84
+ ## Present to User
85
+
86
+ After the review loop completes with no Critical issues, present:
87
+
88
+ 1. Number of tasks generated
89
+ 2. Task dependency tree (visual format)
90
+ 3. Any Warnings from the review (with your recommendation)
91
+ 4. Offer to show task files or proceed to implementation
47
92
 
48
- ## Complete
93
+ **IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
49
94
 
50
- Once the user approves the task breakdown, the skill is complete. The tasks are ready for implementation.
95
+ Read `references/step-5-reflect.md` now.
@@ -0,0 +1,22 @@
1
+ # Step 5: Skill Reflection
2
+
3
+ **IMPORTANT: This step is mandatory. The spec-to-tasks workflow is not complete until this step is finished. Do not skip this.**
4
+
5
+ ## Reflect on This Run
6
+
7
+ Think about how this skill performed during this session. Consider:
8
+
9
+ 1. **Step instructions**: Were any steps unclear, misleading, or missing information?
10
+ 2. **Task template**: Did the template work well, or did you need to deviate from it?
11
+ 3. **Review checklist**: Did the checklist catch real issues? Were any checks unnecessary or missing?
12
+ 4. **Workflow flow**: Did the step order make sense? Were there unnecessary steps or missing ones?
13
+
14
+ ## Report Issues
15
+
16
+ If you identified any problems with the skill's instructions, templates, or workflow, include a brief note in your final output to the user under a "Skill Observations" heading. Keep it factual — what was wrong, what would be better.
17
+
18
+ If everything worked well, state: "No skill issues observed."
19
+
20
+ ## Complete
21
+
22
+ The spec-to-tasks workflow is now complete.