@complexthings/superpowers-agent 9.2.1 → 10.0.1

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 (193) hide show
  1. package/.agents/skills/claude-handoff/SKILL.md +18 -0
  2. package/.agents/skills/code-review/SKILL.md +89 -0
  3. package/.agents/skills/{improve-codebase-architecture → codebase-design}/DEEPENING.md +1 -1
  4. package/.agents/skills/{improve-codebase-architecture/INTERFACE-DESIGN.md → codebase-design/DESIGN-IT-TWICE.md} +3 -3
  5. package/.agents/skills/codebase-design/SKILL.md +114 -0
  6. package/.agents/skills/design-an-interface/SKILL.md +94 -0
  7. package/.agents/skills/{diagnose → diagnosing-bugs}/SKILL.md +29 -12
  8. package/.agents/skills/{grill-with-docs → domain-modeling}/CONTEXT-FORMAT.md +1 -4
  9. package/.agents/skills/domain-modeling/SKILL.md +74 -0
  10. package/.agents/skills/fable-mode/SKILL.md +95 -0
  11. package/.agents/skills/git-guardrails-claude-code/SKILL.md +95 -0
  12. package/.agents/skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh +25 -0
  13. package/.agents/skills/grill-me/SKILL.md +7 -0
  14. package/.agents/skills/grill-with-docs/SKILL.md +3 -86
  15. package/.agents/skills/grilling/SKILL.md +14 -0
  16. package/.agents/skills/handoff/SKILL.md +2 -1
  17. package/.agents/skills/i-have-adhd/SKILL.md +120 -0
  18. package/.agents/skills/implement/SKILL.md +11 -0
  19. package/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +3 -3
  20. package/.agents/skills/improve-codebase-architecture/SKILL.md +13 -28
  21. package/.agents/skills/loop-me/SKILL.md +32 -0
  22. package/.agents/skills/prototype/SKILL.md +1 -1
  23. package/.agents/skills/qa/SKILL.md +130 -0
  24. package/.agents/skills/request-refactor-plan/SKILL.md +68 -0
  25. package/.agents/skills/research/SKILL.md +12 -0
  26. package/.agents/skills/resolving-merge-conflicts/SKILL.md +14 -0
  27. package/.agents/skills/scaffold-exercises/SKILL.md +106 -0
  28. package/.agents/skills/setup-matt-pocock-skills/SKILL.md +11 -9
  29. package/.agents/skills/setup-matt-pocock-skills/domain.md +2 -2
  30. package/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +23 -0
  31. package/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +23 -0
  32. package/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +11 -0
  33. package/.agents/skills/skill-creator/LICENSE.txt +202 -0
  34. package/.agents/skills/skill-creator/SKILL.md +485 -0
  35. package/.agents/skills/skill-creator/agents/analyzer.md +274 -0
  36. package/.agents/skills/skill-creator/agents/comparator.md +202 -0
  37. package/.agents/skills/skill-creator/agents/grader.md +223 -0
  38. package/.agents/skills/skill-creator/assets/eval_review.html +146 -0
  39. package/.agents/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  40. package/.agents/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  41. package/.agents/skills/skill-creator/references/schemas.md +430 -0
  42. package/.agents/skills/skill-creator/scripts/__init__.py +0 -0
  43. package/.agents/skills/skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
  44. package/.agents/skills/skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
  45. package/.agents/skills/skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
  46. package/.agents/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  47. package/.agents/skills/skill-creator/scripts/generate_report.py +326 -0
  48. package/.agents/skills/skill-creator/scripts/improve_description.py +247 -0
  49. package/.agents/skills/skill-creator/scripts/package_skill.py +136 -0
  50. package/.agents/skills/skill-creator/scripts/quick_validate.py +103 -0
  51. package/.agents/skills/skill-creator/scripts/run_eval.py +310 -0
  52. package/.agents/skills/skill-creator/scripts/run_loop.py +328 -0
  53. package/.agents/skills/skill-creator/scripts/utils.py +47 -0
  54. package/.agents/skills/tdd/SKILL.md +17 -90
  55. package/.agents/skills/tdd/tests.md +16 -0
  56. package/.agents/skills/teach/GLOSSARY-FORMAT.md +35 -0
  57. package/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  58. package/.agents/skills/teach/MISSION-FORMAT.md +31 -0
  59. package/.agents/skills/teach/RESOURCES-FORMAT.md +32 -0
  60. package/.agents/skills/teach/SKILL.md +140 -0
  61. package/.agents/skills/{to-prd → to-spec}/SKILL.md +11 -12
  62. package/.agents/skills/to-tickets/SKILL.md +114 -0
  63. package/.agents/skills/triage/AGENT-BRIEF.md +40 -1
  64. package/.agents/skills/triage/OUT-OF-SCOPE.md +5 -1
  65. package/.agents/skills/triage/SKILL.md +20 -11
  66. package/.agents/skills/wayfinder/SKILL.md +127 -0
  67. package/.agents/skills/writing-great-skills/GLOSSARY.md +201 -0
  68. package/.agents/skills/writing-great-skills/SKILL.md +83 -0
  69. package/.agents/superpowers-agent +103 -222
  70. package/.agents/superpowers-bootstrap.md +3 -3
  71. package/.agents/templates/AGENTS.md.template +11 -34
  72. package/.agents/templates/SUPERPOWERS.md.template +4 -4
  73. package/.github/copilot-instructions.md +23 -99
  74. package/.github/hooks/rtk-rewrite.json +22 -0
  75. package/AGENTS.md +7 -6
  76. package/README.md +53 -174
  77. package/package.json +2 -2
  78. package/skills/collaboration/brainstorming/SKILL.md +39 -139
  79. package/skills/collaboration/brainstorming/skill.json +2 -2
  80. package/skills/collaboration/leveraging-cli-tools/SKILL.md +70 -71
  81. package/skills/collaboration/leveraging-cli-tools/references/copilot-instructions.md +30 -0
  82. package/skills/collaboration/leveraging-cli-tools/scripts/setup-ponytail.sh +185 -0
  83. package/skills/collaboration/leveraging-cli-tools/scripts/setup-rtk.sh +217 -0
  84. package/skills/collaboration/leveraging-cli-tools/skill.json +1 -1
  85. package/skills/meta/create-skill-json/SKILL.md +4 -4
  86. package/skills/meta/create-skill-json/skill.json +1 -1
  87. package/skills/meta/create-skill-json/test-scenarios.md +1 -1
  88. package/skills/setup-skills/SKILL.md +18 -11
  89. package/skills/setup-skills/skill.json +8 -0
  90. package/.agents/skills/caveman/SKILL.md +0 -49
  91. package/.agents/skills/improve-codebase-architecture/LANGUAGE.md +0 -53
  92. package/.agents/skills/karpathy-guidelines/SKILL.md +0 -75
  93. package/.agents/skills/review/SKILL.md +0 -78
  94. package/.agents/skills/tdd/deep-modules.md +0 -33
  95. package/.agents/skills/tdd/interface-design.md +0 -31
  96. package/.agents/skills/tdd/refactoring.md +0 -10
  97. package/.agents/skills/to-issues/SKILL.md +0 -83
  98. package/.agents/skills/zoom-out/SKILL.md +0 -7
  99. package/skills/architecture/ABOUT.md +0 -20
  100. package/skills/architecture/preserving-productive-tensions/SKILL.md +0 -146
  101. package/skills/architecture/preserving-productive-tensions/skill.json +0 -9
  102. package/skills/collaboration/brainstorming/spec-document-reviewer-prompt.md +0 -50
  103. package/skills/collaboration/brainstorming/visual-companion.md +0 -277
  104. package/skills/collaboration/dispatching-parallel-agents/SKILL.md +0 -174
  105. package/skills/collaboration/dispatching-parallel-agents/skill.json +0 -9
  106. package/skills/collaboration/executing-plans/SKILL.md +0 -130
  107. package/skills/collaboration/executing-plans/skill.json +0 -9
  108. package/skills/collaboration/finishing-a-development-branch/SKILL.md +0 -261
  109. package/skills/collaboration/finishing-a-development-branch/skill.json +0 -9
  110. package/skills/collaboration/leveraging-cli-tools/scripts/slim.py +0 -167
  111. package/skills/collaboration/receiving-code-review/SKILL.md +0 -233
  112. package/skills/collaboration/receiving-code-review/skill.json +0 -9
  113. package/skills/collaboration/requesting-code-review/SKILL.md +0 -110
  114. package/skills/collaboration/requesting-code-review/code-reviewer.md +0 -146
  115. package/skills/collaboration/requesting-code-review/skill.json +0 -12
  116. package/skills/collaboration/subagent-driven-development/SKILL.md +0 -255
  117. package/skills/collaboration/subagent-driven-development/code-quality-reviewer-prompt.md +0 -26
  118. package/skills/collaboration/subagent-driven-development/implementer-prompt.md +0 -113
  119. package/skills/collaboration/subagent-driven-development/skill.json +0 -15
  120. package/skills/collaboration/subagent-driven-development/spec-reviewer-prompt.md +0 -61
  121. package/skills/collaboration/using-git-worktrees/SKILL.md +0 -366
  122. package/skills/collaboration/using-git-worktrees/skill.json +0 -9
  123. package/skills/collaboration/writing-plans/SKILL.md +0 -121
  124. package/skills/collaboration/writing-plans/plan-document-reviewer-prompt.md +0 -52
  125. package/skills/collaboration/writing-plans/skill.json +0 -9
  126. package/skills/debugging/defense-in-depth/SKILL.md +0 -380
  127. package/skills/debugging/defense-in-depth/skill.json +0 -9
  128. package/skills/debugging/root-cause-tracing/SKILL.md +0 -361
  129. package/skills/debugging/root-cause-tracing/find-polluter.sh +0 -63
  130. package/skills/debugging/root-cause-tracing/skill.json +0 -12
  131. package/skills/debugging/systematic-debugging/SKILL.md +0 -299
  132. package/skills/debugging/systematic-debugging/condition-based-waiting-example.ts +0 -158
  133. package/skills/debugging/systematic-debugging/condition-based-waiting.md +0 -115
  134. package/skills/debugging/systematic-debugging/defense-in-depth.md +0 -122
  135. package/skills/debugging/systematic-debugging/find-polluter.sh +0 -63
  136. package/skills/debugging/systematic-debugging/root-cause-tracing.md +0 -169
  137. package/skills/debugging/systematic-debugging/skill.json +0 -9
  138. package/skills/debugging/systematic-debugging/test-academic.md +0 -14
  139. package/skills/debugging/systematic-debugging/test-pressure-1.md +0 -58
  140. package/skills/debugging/systematic-debugging/test-pressure-2.md +0 -68
  141. package/skills/debugging/systematic-debugging/test-pressure-3.md +0 -69
  142. package/skills/debugging/verification-before-completion/SKILL.md +0 -143
  143. package/skills/debugging/verification-before-completion/skill.json +0 -9
  144. package/skills/finding-skills/SKILL.md +0 -101
  145. package/skills/finding-skills/skill.json +0 -8
  146. package/skills/meta/create-agents-md/SKILL.md +0 -182
  147. package/skills/meta/create-agents-md/skill.json +0 -9
  148. package/skills/meta/creating-prompts/SKILL.md +0 -349
  149. package/skills/meta/creating-prompts/examples/do-example.md +0 -65
  150. package/skills/meta/creating-prompts/examples/plan-example.md +0 -75
  151. package/skills/meta/creating-prompts/examples/refine-example.md +0 -65
  152. package/skills/meta/creating-prompts/examples/research-example.md +0 -63
  153. package/skills/meta/creating-prompts/scripts/get-next-number.sh +0 -27
  154. package/skills/meta/creating-prompts/skill.json +0 -20
  155. package/skills/meta/creating-prompts/templates/do-template.md +0 -59
  156. package/skills/meta/creating-prompts/templates/plan-template.md +0 -58
  157. package/skills/meta/creating-prompts/templates/refine-template.md +0 -54
  158. package/skills/meta/creating-prompts/templates/research-template.md +0 -56
  159. package/skills/meta/using-superpowers/SKILL.md +0 -108
  160. package/skills/meta/using-superpowers/skill.json +0 -5
  161. package/skills/meta/writing-prompts/SKILL.md +0 -122
  162. package/skills/meta/writing-prompts/references/platforms.md +0 -114
  163. package/skills/meta/writing-prompts/skill.json +0 -9
  164. package/skills/problem-solving/ABOUT.md +0 -40
  165. package/skills/problem-solving/collision-zone-thinking/SKILL.md +0 -188
  166. package/skills/problem-solving/collision-zone-thinking/references/historical-examples.md +0 -393
  167. package/skills/problem-solving/collision-zone-thinking/skill.json +0 -9
  168. package/skills/problem-solving/inversion-exercise/SKILL.md +0 -174
  169. package/skills/problem-solving/inversion-exercise/skill.json +0 -9
  170. package/skills/problem-solving/meta-pattern-recognition/SKILL.md +0 -116
  171. package/skills/problem-solving/meta-pattern-recognition/skill.json +0 -9
  172. package/skills/problem-solving/scale-game/SKILL.md +0 -222
  173. package/skills/problem-solving/scale-game/skill.json +0 -9
  174. package/skills/problem-solving/simplification-cascades/SKILL.md +0 -113
  175. package/skills/problem-solving/simplification-cascades/skill.json +0 -9
  176. package/skills/problem-solving/when-stuck/SKILL.md +0 -69
  177. package/skills/problem-solving/when-stuck/skill.json +0 -9
  178. package/skills/research/ABOUT.md +0 -20
  179. package/skills/research/tracing-knowledge-lineages/SKILL.md +0 -241
  180. package/skills/research/tracing-knowledge-lineages/skill.json +0 -9
  181. package/skills/testing/condition-based-waiting/SKILL.md +0 -359
  182. package/skills/testing/condition-based-waiting/example.ts +0 -158
  183. package/skills/testing/condition-based-waiting/skill.json +0 -12
  184. package/skills/testing/test-driven-development/SKILL.md +0 -434
  185. package/skills/testing/test-driven-development/skill.json +0 -9
  186. package/skills/testing/testing-anti-patterns/SKILL.md +0 -298
  187. package/skills/testing/testing-anti-patterns/skill.json +0 -9
  188. package/skills/testing/verification-before-completion/SKILL.md +0 -246
  189. package/skills/testing/verification-before-completion/skill.json +0 -10
  190. package/skills/using-a-skill/SKILL.md +0 -101
  191. package/skills/using-a-skill/skill.json +0 -8
  192. /package/.agents/skills/{diagnose → diagnosing-bugs}/scripts/hitl-loop.template.sh +0 -0
  193. /package/.agents/skills/{grill-with-docs → domain-modeling}/ADR-FORMAT.md +0 -0
@@ -1,255 +0,0 @@
1
- ---
2
- name: subagent-driven-development
3
- description: Use when executing implementation plans with independent tasks in the current session
4
- metadata:
5
- when_to_use: when executing implementation plans with independent tasks in the current session, using fresh subagents with review gates
6
- version: 2.2.0
7
- ---
8
-
9
- # Subagent-Driven Development
10
-
11
- Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
12
-
13
- **Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
14
-
15
- **Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
16
-
17
- ## When to Use
18
-
19
- ```mermaid
20
- flowchart TD
21
- A{Have implementation plan?} -->|yes| B{Tasks mostly independent?}
22
- A -->|no| C[Manual execution or brainstorm first]
23
- B -->|yes| D{Stay in this session?}
24
- B -->|no - tightly coupled| C
25
- D -->|yes| E[subagent-driven-development]
26
- D -->|no - parallel session| F[executing-plans]
27
- ```
28
-
29
- **vs. Executing Plans (parallel session):**
30
- - Same session (no context switch)
31
- - Fresh subagent per task (no context pollution)
32
- - Two-stage review after each task: spec compliance first, then code quality
33
- - Faster iteration (no human-in-loop between tasks)
34
-
35
- ## The Process
36
-
37
- ```mermaid
38
- flowchart TD
39
- PLAN[Read plan, extract tasks, create TodoWrite] --> IMPL[Dispatch implementer subagent]
40
-
41
- subgraph PER_TASK [Per Task]
42
- IMPL --> QUESTIONS{Implementer asks questions?}
43
- QUESTIONS -->|yes| ANSWER[Answer questions, provide context]
44
- ANSWER --> IMPL
45
- QUESTIONS -->|no| WORK[Implementer implements, tests, commits, self-reviews]
46
- WORK --> SPEC[Dispatch spec reviewer subagent]
47
- SPEC --> SPEC_OK{Code matches spec?}
48
- SPEC_OK -->|no| SPEC_FIX[Implementer fixes spec gaps]
49
- SPEC_FIX -->|re-review| SPEC
50
- SPEC_OK -->|yes| QUALITY[Dispatch code quality reviewer subagent]
51
- QUALITY --> QUAL_OK{Quality reviewer approves?}
52
- QUAL_OK -->|no| QUAL_FIX[Implementer fixes quality issues]
53
- QUAL_FIX -->|re-review| QUALITY
54
- QUAL_OK -->|yes| DONE_TASK[Mark task complete in TodoWrite]
55
- end
56
-
57
- DONE_TASK --> MORE{More tasks remain?}
58
- MORE -->|yes| IMPL
59
- MORE -->|no| FINAL[Dispatch final code reviewer for entire implementation]
60
- FINAL --> FINISH[Use finishing-a-development-branch skill]
61
- ```
62
-
63
- ## Model Selection
64
-
65
- Use the least powerful model that can handle each role to conserve cost and increase speed.
66
-
67
- **Mechanical implementation tasks** (isolated functions, clear specs, 1-2 files): use a fast, cheap model. Most implementation tasks are mechanical when the plan is well-specified.
68
-
69
- **Integration and judgment tasks** (multi-file coordination, pattern matching, debugging): use a standard model.
70
-
71
- **Architecture, design, and review tasks**: use the most capable available model.
72
-
73
- **Task complexity signals:**
74
- - Touches 1-2 files with a complete spec → cheap model
75
- - Touches multiple files with integration concerns → standard model
76
- - Requires design judgment or broad codebase understanding → most capable model
77
-
78
- ## Handling Implementer Status
79
-
80
- Implementer subagents report one of four statuses. Handle each appropriately:
81
-
82
- **DONE:** Proceed to spec compliance review.
83
-
84
- **DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., "this file is getting large"), note them and proceed to review.
85
-
86
- **NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
87
-
88
- **BLOCKED:** The implementer cannot complete the task. Assess the blocker:
89
- 1. If it's a context problem, provide more context and re-dispatch with the same model
90
- 2. If the task requires more reasoning, re-dispatch with a more capable model
91
- 3. If the task is too large, break it into smaller pieces
92
- 4. If the plan itself is wrong, escalate to the human
93
-
94
- **Never** ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
95
-
96
- ## Prompt Templates
97
-
98
- - `./implementer-prompt.md` - Dispatch implementer subagent
99
- - `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer subagent
100
- - `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer subagent
101
-
102
- ## Example Workflow
103
-
104
- ```
105
- You: I'm using Subagent-Driven Development to execute this plan.
106
-
107
- [Read plan file once: .agents/superpowers/specs/YYYY-MM-DD-<topic>-design.md]
108
- [Extract all 5 tasks with full text and context]
109
- [Create TodoWrite with all tasks]
110
-
111
- Task 1: Hook installation script
112
-
113
- [Get Task 1 text and context (already extracted)]
114
- [Dispatch implementation subagent with full task text + context]
115
-
116
- Implementer: "Before I begin - should the hook be installed at user or system level?"
117
-
118
- You: "User level (~/.config/superpowers/hooks/)"
119
-
120
- Implementer: "Got it. Implementing now..."
121
- [Later] Implementer:
122
- - Implemented install-hook command
123
- - Added tests, 5/5 passing
124
- - Self-review: Found I missed --force flag, added it
125
- - Committed
126
-
127
- [Dispatch spec compliance reviewer]
128
- Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
129
-
130
- [Get git SHAs, dispatch code quality reviewer]
131
- Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
132
-
133
- [Mark Task 1 complete]
134
-
135
- Task 2: Recovery modes
136
-
137
- [Get Task 2 text and context (already extracted)]
138
- [Dispatch implementation subagent with full task text + context]
139
-
140
- Implementer: [No questions, proceeds]
141
- Implementer:
142
- - Added verify/repair modes
143
- - 8/8 tests passing
144
- - Self-review: All good
145
- - Committed
146
-
147
- [Dispatch spec compliance reviewer]
148
- Spec reviewer: ❌ Issues:
149
- - Missing: Progress reporting (spec says "report every 100 items")
150
- - Extra: Added --json flag (not requested)
151
-
152
- [Implementer fixes issues]
153
- Implementer: Removed --json flag, added progress reporting
154
-
155
- [Spec reviewer reviews again]
156
- Spec reviewer: ✅ Spec compliant now
157
-
158
- [Dispatch code quality reviewer]
159
- Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
160
-
161
- [Implementer fixes]
162
- Implementer: Extracted PROGRESS_INTERVAL constant
163
-
164
- [Code reviewer reviews again]
165
- Code reviewer: ✅ Approved
166
-
167
- [Mark Task 2 complete]
168
-
169
- ...
170
-
171
- [After all tasks]
172
- [Dispatch final code-reviewer]
173
- Final reviewer: All requirements met, ready to merge
174
-
175
- Done!
176
- ```
177
-
178
- ## Advantages
179
-
180
- **vs. Manual execution:**
181
- - Subagents follow TDD naturally
182
- - Fresh context per task (no confusion)
183
- - Parallel-safe (subagents don't interfere)
184
- - Subagent can ask questions (before AND during work)
185
-
186
- **vs. Executing Plans:**
187
- - Same session (no handoff)
188
- - Continuous progress (no waiting)
189
- - Review checkpoints automatic
190
-
191
- **Efficiency gains:**
192
- - No file reading overhead (controller provides full text)
193
- - Controller curates exactly what context is needed
194
- - Subagent gets complete information upfront
195
- - Questions surfaced before work begins (not after)
196
-
197
- **Quality gates:**
198
- - Self-review catches issues before handoff
199
- - Two-stage review: spec compliance, then code quality
200
- - Review loops ensure fixes actually work
201
- - Spec compliance prevents over/under-building
202
- - Code quality ensures implementation is well-built
203
-
204
- **Cost:**
205
- - More subagent invocations (implementer + 2 reviewers per task)
206
- - Controller does more prep work (extracting all tasks upfront)
207
- - Review loops add iterations
208
- - But catches issues early (cheaper than debugging later)
209
-
210
- ## Red Flags
211
-
212
- **Never:**
213
- - Start implementation on main/master branch without explicit user consent
214
- - Skip reviews (spec compliance OR code quality)
215
- - Proceed with unfixed issues
216
- - Dispatch multiple implementation subagents in parallel (conflicts)
217
- - Make subagent read plan file (provide full text instead)
218
- - Skip scene-setting context (subagent needs to understand where task fits)
219
- - Ignore subagent questions (answer before letting them proceed)
220
- - Accept "close enough" on spec compliance (spec reviewer found issues = not done)
221
- - Skip review loops (reviewer found issues = implementer fixes = review again)
222
- - Let implementer self-review replace actual review (both are needed)
223
- - **Start code quality review before spec compliance is ✅** (wrong order)
224
- - Move to next task while either review has open issues
225
-
226
- **If subagent asks questions:**
227
- - Answer clearly and completely
228
- - Provide additional context if needed
229
- - Don't rush them into implementation
230
-
231
- **If reviewer finds issues:**
232
- - Dispatch the implementer subagent again with reviewer feedback and the original task text
233
- - Ask it to fix the specific issues found
234
- - Reviewer reviews again
235
- - Repeat until approved
236
- - Don't skip the re-review
237
-
238
- **If subagent reports BLOCKED or cannot complete the task:**
239
- - Dispatch a new fix subagent with specific, targeted instructions
240
- - Don't try to fix manually (context pollution)
241
- - See "Handling Implementer Status" for escalation options
242
-
243
- ## Integration
244
-
245
- **Required workflow skills:**
246
- - **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
247
- - **superpowers:writing-plans** - Creates the plan this skill executes
248
- - **superpowers:requesting-code-review** - Code review template for reviewer subagents
249
- - **superpowers:finishing-a-development-branch** - Complete development after all tasks
250
-
251
- **Subagents should use:**
252
- - **superpowers:test-driven-development** - Subagents follow TDD for each task
253
-
254
- **Alternative workflow:**
255
- - **superpowers:executing-plans** - Use for parallel session instead of same-session execution
@@ -1,26 +0,0 @@
1
- # Code Quality Reviewer Prompt Template
2
-
3
- Use this template when dispatching a code quality reviewer subagent.
4
-
5
- **Purpose:** Verify implementation is well-built (clean, tested, maintainable)
6
-
7
- **Only dispatch after spec compliance review passes.**
8
-
9
- ```
10
- Task tool (superpowers:code-reviewer):
11
- Use template at requesting-code-review/code-reviewer.md
12
-
13
- WHAT_WAS_IMPLEMENTED: [from implementer's report]
14
- PLAN_OR_REQUIREMENTS: Task N from [plan-file]
15
- BASE_SHA: [commit before task]
16
- HEAD_SHA: [current commit]
17
- DESCRIPTION: [task summary]
18
- ```
19
-
20
- **In addition to standard code quality concerns, the reviewer should check:**
21
- - Does each file have one clear responsibility with a well-defined interface?
22
- - Are units decomposed so they can be understood and tested independently?
23
- - Is the implementation following the file structure from the plan?
24
- - Did this implementation create new files that are already large, or significantly grow existing files? (Don't flag pre-existing file sizes — focus on what this change contributed.)
25
-
26
- **Code reviewer returns:** Strengths, Issues (Critical/Important/Minor), Assessment
@@ -1,113 +0,0 @@
1
- # Implementer Subagent Prompt Template
2
-
3
- Use this template when dispatching an implementer subagent.
4
-
5
- ```
6
- Task tool (general-purpose):
7
- description: "Implement Task N: [task name]"
8
- prompt: |
9
- You are implementing Task N: [task name]
10
-
11
- ## Task Description
12
-
13
- [FULL TEXT of task from plan - paste it here, don't make subagent read file]
14
-
15
- ## Context
16
-
17
- [Scene-setting: where this fits, dependencies, architectural context]
18
-
19
- ## Before You Begin
20
-
21
- If you have questions about:
22
- - The requirements or acceptance criteria
23
- - The approach or implementation strategy
24
- - Dependencies or assumptions
25
- - Anything unclear in the task description
26
-
27
- **Ask them now.** Raise any concerns before starting work.
28
-
29
- ## Your Job
30
-
31
- Once you're clear on requirements:
32
- 1. Implement exactly what the task specifies
33
- 2. Write tests (following TDD if task says to)
34
- 3. Verify implementation works
35
- 4. Commit your work
36
- 5. Self-review (see below)
37
- 6. Report back
38
-
39
- Work from: [directory]
40
-
41
- **While you work:** If you encounter something unexpected or unclear, **ask questions**.
42
- It's always OK to pause and clarify. Don't guess or make assumptions.
43
-
44
- ## Code Organization
45
-
46
- You reason best about code you can hold in context at once, and your edits are more
47
- reliable when files are focused. Keep this in mind:
48
- - Follow the file structure defined in the plan
49
- - Each file should have one clear responsibility with a well-defined interface
50
- - If a file you're creating is growing beyond the plan's intent, stop and report
51
- it as DONE_WITH_CONCERNS — don't split files on your own without plan guidance
52
- - If an existing file you're modifying is already large or tangled, work carefully
53
- and note it as a concern in your report
54
- - In existing codebases, follow established patterns. Improve code you're touching
55
- the way a good developer would, but don't restructure things outside your task.
56
-
57
- ## When You're in Over Your Head
58
-
59
- It is always OK to stop and say "this is too hard for me." Bad work is worse than
60
- no work. You will not be penalized for escalating.
61
-
62
- **STOP and escalate when:**
63
- - The task requires architectural decisions with multiple valid approaches
64
- - You need to understand code beyond what was provided and can't find clarity
65
- - You feel uncertain about whether your approach is correct
66
- - The task involves restructuring existing code in ways the plan didn't anticipate
67
- - You've been reading file after file trying to understand the system without progress
68
-
69
- **How to escalate:** Report back with status BLOCKED or NEEDS_CONTEXT. Describe
70
- specifically what you're stuck on, what you've tried, and what kind of help you need.
71
- The controller can provide more context, re-dispatch with a more capable model,
72
- or break the task into smaller pieces.
73
-
74
- ## Before Reporting Back: Self-Review
75
-
76
- Review your work with fresh eyes. Ask yourself:
77
-
78
- **Completeness:**
79
- - Did I fully implement everything in the spec?
80
- - Did I miss any requirements?
81
- - Are there edge cases I didn't handle?
82
-
83
- **Quality:**
84
- - Is this my best work?
85
- - Are names clear and accurate (match what things do, not how they work)?
86
- - Is the code clean and maintainable?
87
-
88
- **Discipline:**
89
- - Did I avoid overbuilding (YAGNI)?
90
- - Did I only build what was requested?
91
- - Did I follow existing patterns in the codebase?
92
-
93
- **Testing:**
94
- - Do tests actually verify behavior (not just mock behavior)?
95
- - Did I follow TDD if required?
96
- - Are tests comprehensive?
97
-
98
- If you find issues during self-review, fix them now before reporting.
99
-
100
- ## Report Format
101
-
102
- When done, report:
103
- - **Status:** DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
104
- - What you implemented (or what you attempted, if blocked)
105
- - What you tested and test results
106
- - Files changed
107
- - Self-review findings (if any)
108
- - Any issues or concerns
109
-
110
- Use DONE_WITH_CONCERNS if you completed the work but have doubts about correctness.
111
- Use BLOCKED if you cannot complete the task. Use NEEDS_CONTEXT if you need
112
- information that wasn't provided. Never silently produce work you're unsure about.
113
- ```
@@ -1,15 +0,0 @@
1
- {
2
- "version": "2.0.0",
3
- "name": "superpowers:collaboration/subagent-driven-development",
4
- "title": "Subagent-Driven Development",
5
- "helpers": [
6
- "implementer-prompt.md",
7
- "spec-reviewer-prompt.md",
8
- "code-quality-reviewer-prompt.md"
9
- ],
10
- "aliases": [
11
- "subagent-driven-development",
12
- "collaboration/subagent-driven-development",
13
- "sdd"
14
- ]
15
- }
@@ -1,61 +0,0 @@
1
- # Spec Compliance Reviewer Prompt Template
2
-
3
- Use this template when dispatching a spec compliance reviewer subagent.
4
-
5
- **Purpose:** Verify implementer built what was requested (nothing more, nothing less)
6
-
7
- ```
8
- Task tool (general-purpose):
9
- description: "Review spec compliance for Task N"
10
- prompt: |
11
- You are reviewing whether an implementation matches its specification.
12
-
13
- ## What Was Requested
14
-
15
- [FULL TEXT of task requirements]
16
-
17
- ## What Implementer Claims They Built
18
-
19
- [From implementer's report]
20
-
21
- ## CRITICAL: Do Not Trust the Report
22
-
23
- The implementer finished suspiciously quickly. Their report may be incomplete,
24
- inaccurate, or optimistic. You MUST verify everything independently.
25
-
26
- **DO NOT:**
27
- - Take their word for what they implemented
28
- - Trust their claims about completeness
29
- - Accept their interpretation of requirements
30
-
31
- **DO:**
32
- - Read the actual code they wrote
33
- - Compare actual implementation to requirements line by line
34
- - Check for missing pieces they claimed to implement
35
- - Look for extra features they didn't mention
36
-
37
- ## Your Job
38
-
39
- Read the implementation code and verify:
40
-
41
- **Missing requirements:**
42
- - Did they implement everything that was requested?
43
- - Are there requirements they skipped or missed?
44
- - Did they claim something works but didn't actually implement it?
45
-
46
- **Extra/unneeded work:**
47
- - Did they build things that weren't requested?
48
- - Did they over-engineer or add unnecessary features?
49
- - Did they add "nice to haves" that weren't in spec?
50
-
51
- **Misunderstandings:**
52
- - Did they interpret requirements differently than intended?
53
- - Did they solve the wrong problem?
54
- - Did they implement the right feature but wrong way?
55
-
56
- **Verify by reading code, not by trusting report.**
57
-
58
- Report:
59
- - ✅ Spec compliant (if everything matches after code inspection)
60
- - ❌ Issues found: [list specifically what's missing or extra, with file:line references]
61
- ```