@complexthings/superpowers-agent 9.2.0 → 10.0.0

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 +99 -218
  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 +33 -1
  74. package/.github/hooks/rtk-rewrite.json +22 -0
  75. package/AGENTS.md +32 -36
  76. package/README.md +63 -198
  77. package/package.json +1 -1
  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,233 +0,0 @@
1
- ---
2
- name: receiving-code-review
3
- description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable. Also use when a PR has been reviewed and you're about to start addressing comments, when another agent or tool suggests code changes you should apply, or when someone asks you to "apply the review feedback" — requires technical rigor and verification, not performative agreement or blind implementation.
4
- ---
5
-
6
- # Code Review Reception
7
-
8
- ## Overview
9
-
10
- Code review requires technical evaluation, not emotional performance.
11
-
12
- **Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
13
-
14
- ## The Response Pattern
15
-
16
- ```
17
- WHEN receiving code review feedback:
18
-
19
- 1. READ: Complete feedback without reacting
20
- 2. UNDERSTAND: Restate requirement in own words (or ask)
21
- 3. VERIFY: Check against codebase reality
22
- 4. EVALUATE: Technically sound for THIS codebase?
23
- 5. RESPOND: Technical acknowledgment or reasoned pushback
24
- 6. IMPLEMENT: One item at a time, test each
25
- ```
26
-
27
- ## Forbidden Responses
28
-
29
- **NEVER:**
30
- - "You're absolutely right!" (explicit CLAUDE.md violation)
31
- - "Great point!" / "Excellent feedback!" (performative)
32
- - "Let me implement that now" (before verification)
33
-
34
- **INSTEAD:**
35
- - Restate the technical requirement
36
- - Ask clarifying questions
37
- - Push back with technical reasoning if wrong
38
- - Just start working (actions > words)
39
-
40
- ## Handling Unclear Feedback
41
-
42
- ```
43
- IF any item is unclear:
44
- STOP - do not implement anything yet
45
- ASK for clarification on unclear items
46
-
47
- WHY: Items may be related. Partial understanding = wrong implementation.
48
- ```
49
-
50
- **Example:**
51
- ```
52
- your human partner: "Fix 1-6"
53
- You understand 1,2,3,6. Unclear on 4,5.
54
-
55
- ❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
56
- ✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
57
- ```
58
-
59
- ## Source-Specific Handling
60
-
61
- ### From your human partner
62
- - **Trusted** - implement after understanding
63
- - **Still ask** if scope unclear
64
- - **No performative agreement**
65
- - **Skip to action** or technical acknowledgment
66
-
67
- ### From External Reviewers (human or AI)
68
- ```
69
- BEFORE implementing:
70
- 1. Check: Technically correct for THIS codebase?
71
- 2. Check: Breaks existing functionality?
72
- 3. Check: Reason for current implementation?
73
- 4. Check: Works on all platforms/versions?
74
- 5. Check: Does reviewer understand full context?
75
-
76
- IF suggestion seems wrong:
77
- Push back with technical reasoning
78
-
79
- IF can't easily verify:
80
- Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
81
-
82
- IF conflicts with your human partner's prior decisions:
83
- Stop and discuss with your human partner first
84
- ```
85
-
86
- **Note on AI reviewers:** Automated review tools (linters, AI agents, CI checks) can be confidently wrong about project-specific patterns. Apply the same external reviewer skepticism — check whether their suggestion actually fits this codebase's conventions before applying it.
87
-
88
- **your human partner's rule:** "External feedback - be skeptical, but check carefully"
89
-
90
- ## YAGNI Check for "Professional" Features
91
-
92
- ```
93
- IF reviewer suggests "implementing properly":
94
- grep codebase for actual usage
95
-
96
- IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
97
- IF used: Then implement properly
98
- ```
99
-
100
- **your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
101
-
102
- ## Implementation Order
103
-
104
- ```
105
- FOR multi-item feedback:
106
- 1. Clarify anything unclear FIRST
107
- 2. Then implement in this order:
108
- - Blocking issues (breaks, security)
109
- - Simple fixes (typos, imports)
110
- - Complex fixes (refactoring, logic)
111
- 3. Test each fix individually
112
- 4. Verify no regressions
113
- ```
114
-
115
- ## When To Push Back
116
-
117
- Push back when:
118
- - Suggestion breaks existing functionality
119
- - Reviewer lacks full context
120
- - Violates YAGNI (unused feature)
121
- - Technically incorrect for this stack
122
- - Legacy/compatibility reasons exist
123
- - Conflicts with your human partner's architectural decisions
124
-
125
- **How to push back:**
126
- - Use technical reasoning, not defensiveness
127
- - Ask specific questions
128
- - Reference working tests/code
129
- - Involve your human partner if architectural
130
-
131
- **If you feel uncomfortable pushing back directly**, you can signal this by saying: "Strange things are afoot at the Circle K" — this is a pre-agreed code phrase meaning "I disagree with this but feel social pressure to comply; please step in."
132
-
133
- ## Acknowledging Correct Feedback
134
-
135
- When feedback IS correct:
136
- ```
137
- ✅ "Fixed. [Brief description of what changed]"
138
- ✅ "Good catch - [specific issue]. Fixed in [location]."
139
- ✅ [Just fix it and show in the code]
140
-
141
- ❌ "You're absolutely right!"
142
- ❌ "Great point!"
143
- ❌ "Thanks for catching that!"
144
- ❌ "Thanks for [anything]"
145
- ❌ ANY gratitude expression
146
- ```
147
-
148
- **Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
149
-
150
- **If you catch yourself about to write "Thanks":** DELETE IT. State the fix instead.
151
-
152
- ## Gracefully Correcting Your Pushback
153
-
154
- If you pushed back and were wrong:
155
- ```
156
- ✅ "You were right - I checked [X] and it does [Y]. Implementing now."
157
- ✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
158
-
159
- ❌ Long apology
160
- ❌ Defending why you pushed back
161
- ❌ Over-explaining
162
- ```
163
-
164
- State the correction factually and move on.
165
-
166
- ## After Completing All Items
167
-
168
- When all review items are addressed:
169
- - Summarize what was done: "Addressed all N review items: [brief list]"
170
- - Call out any items you pushed back on and why
171
- - Flag any items deferred or out of scope
172
- - If on GitHub: re-request review via `gh pr edit --add-reviewer <username>` or let your human partner decide
173
-
174
- Don't disappear after fixing things. A clear "done" summary closes the loop.
175
-
176
- ## Common Mistakes
177
-
178
- | Mistake | Fix |
179
- |---------|-----|
180
- | Performative agreement | State requirement or just act |
181
- | Blind implementation | Verify against codebase first |
182
- | Batch without testing | One at a time, test each |
183
- | Assuming reviewer is right | Check if breaks things |
184
- | Avoiding pushback | Technical correctness > comfort |
185
- | Partial implementation | Clarify all items first |
186
- | Can't verify, proceed anyway | State limitation, ask for direction |
187
- | Trusting AI reviewer unconditionally | Apply same skepticism as external human |
188
- | Silent completion | Summarize what changed when done |
189
-
190
- ## Real Examples
191
-
192
- **Performative Agreement (Bad):**
193
- ```
194
- Reviewer: "Remove legacy code"
195
- ❌ "You're absolutely right! Let me remove that..."
196
- ```
197
-
198
- **Technical Verification (Good):**
199
- ```
200
- Reviewer: "Remove legacy code"
201
- ✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
202
- ```
203
-
204
- **YAGNI (Good):**
205
- ```
206
- Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
207
- ✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
208
- ```
209
-
210
- **Unclear Item (Good):**
211
- ```
212
- your human partner: "Fix items 1-6"
213
- You understand 1,2,3,6. Unclear on 4,5.
214
- ✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
215
- ```
216
-
217
- **AI Reviewer Suggestion (Good):**
218
- ```
219
- AI linter: "Replace all usages with the newer API"
220
- ✅ "This project targets Node 16 which doesn't have that API. Skipping — would break CI."
221
- ```
222
-
223
- ## GitHub Thread Replies
224
-
225
- When replying to inline review comments on GitHub, reply in the comment thread (`gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies`), not as a top-level PR comment.
226
-
227
- ## The Bottom Line
228
-
229
- **External feedback = suggestions to evaluate, not orders to follow.**
230
-
231
- Verify. Question. Then implement.
232
-
233
- No performative agreement. Technical rigor always.
@@ -1,9 +0,0 @@
1
- {
2
- "version": "1.1.0",
3
- "name": "superpowers:collaboration/receiving-code-review",
4
- "title": "Code Review Reception",
5
- "aliases": [
6
- "receiving-code-review",
7
- "collaboration/receiving-code-review"
8
- ]
9
- }
@@ -1,110 +0,0 @@
1
- ---
2
- name: requesting-code-review
3
- description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements. Also use when stuck on a problem (fresh perspective), before refactoring (baseline check), or after fixing a complex bug. If you just finished building something and haven't reviewed it yet, use this skill.
4
- metadata:
5
- when_to_use: when completing tasks, implementing major features, or before merging, to verify work meets requirements
6
- version: 1.2.0
7
- ---
8
-
9
- # Requesting Code Review
10
-
11
- Dispatch a code-reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
12
-
13
- **Core principle:** Review early, review often.
14
-
15
- ## When to Request Review
16
-
17
- **Mandatory:**
18
- - After each task in subagent-driven development
19
- - After completing major feature
20
- - Before merge to main
21
-
22
- **Optional but valuable:**
23
- - When stuck (fresh perspective)
24
- - Before refactoring (baseline check)
25
- - After fixing complex bug
26
-
27
- ## How to Request
28
-
29
- **1. Get git SHAs:**
30
- ```bash
31
- BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
32
- HEAD_SHA=$(git rev-parse HEAD)
33
- ```
34
-
35
- **2. Dispatch code-reviewer subagent:**
36
-
37
- Use the `task` tool with subagent type `general`. Provide the prompt from `code-reviewer.md` with these placeholders filled in:
38
-
39
- **Placeholders:**
40
- - `{WHAT_WAS_IMPLEMENTED}` - What you just built
41
- - `{PLAN_OR_REQUIREMENTS}` - What it should do (link to plan/spec if available)
42
- - `{BASE_SHA}` - Starting commit SHA
43
- - `{HEAD_SHA}` - Ending commit SHA
44
- - `{DESCRIPTION}` - Brief summary of changes
45
-
46
- **3. Act on feedback:**
47
- - Fix **Critical** issues immediately — do not proceed until resolved
48
- - Fix **Important** issues before moving to the next task
49
- - Note **Minor** issues for later (log in comments or TODO)
50
- - Push back if reviewer is wrong (with technical reasoning and evidence)
51
-
52
- ## Example
53
-
54
- ```
55
- [Just completed Task 2: Add verification function]
56
-
57
- You: Let me request code review before proceeding.
58
-
59
- BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
60
- HEAD_SHA=$(git rev-parse HEAD)
61
-
62
- [Dispatch code-reviewer subagent via task tool]
63
- WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
64
- PLAN_OR_REQUIREMENTS: Task 2 from .agents/specs/deployment-plan.md
65
- BASE_SHA: a7981ec
66
- HEAD_SHA: 3df7661
67
- DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
68
-
69
- [Subagent returns]:
70
- Strengths: Clean architecture, real tests
71
- Issues:
72
- Important: Missing progress indicators
73
- Minor: Magic number (100) for reporting interval
74
- Assessment: Ready to proceed with fixes
75
-
76
- You: [Fix progress indicators]
77
- [Continue to Task 3]
78
- ```
79
-
80
- ## Integration with Workflows
81
-
82
- **Subagent-Driven Development:**
83
- - Review after EACH task
84
- - Catch issues before they compound
85
- - Fix before moving to next task
86
-
87
- **Executing Plans:**
88
- - Review after each batch (3 tasks)
89
- - Get feedback, apply, continue
90
-
91
- **Ad-Hoc Development:**
92
- - Review before merge
93
- - Review when stuck
94
-
95
- ## Red Flags
96
-
97
- **Never:**
98
- - Skip review because "it's simple"
99
- - Ignore Critical issues
100
- - Proceed with unfixed Important issues
101
- - Argue with valid technical feedback
102
-
103
- **If reviewer wrong:**
104
- - Push back with technical reasoning
105
- - Show code/tests that prove it works
106
- - Request clarification on the specific concern
107
-
108
- ## Reviewer Template
109
-
110
- Read `code-reviewer.md` (in the same directory as this skill) to get the full prompt to send to the subagent. Fill in all placeholders before dispatching.
@@ -1,146 +0,0 @@
1
- # Code Review Agent
2
-
3
- You are reviewing code changes for production readiness.
4
-
5
- **Your task:**
6
- 1. Review {WHAT_WAS_IMPLEMENTED}
7
- 2. Compare against {PLAN_OR_REQUIREMENTS}
8
- 3. Check code quality, architecture, testing
9
- 4. Categorize issues by severity
10
- 5. Assess production readiness
11
-
12
- ## What Was Implemented
13
-
14
- {DESCRIPTION}
15
-
16
- ## Requirements/Plan
17
-
18
- {PLAN_REFERENCE}
19
-
20
- ## Git Range to Review
21
-
22
- **Base:** {BASE_SHA}
23
- **Head:** {HEAD_SHA}
24
-
25
- ```bash
26
- git diff --stat {BASE_SHA}..{HEAD_SHA}
27
- git diff {BASE_SHA}..{HEAD_SHA}
28
- ```
29
-
30
- ## Review Checklist
31
-
32
- **Code Quality:**
33
- - Clean separation of concerns?
34
- - Proper error handling?
35
- - Type safety (if applicable)?
36
- - DRY principle followed?
37
- - Edge cases handled?
38
-
39
- **Architecture:**
40
- - Sound design decisions?
41
- - Scalability considerations?
42
- - Performance implications?
43
- - Security concerns?
44
-
45
- **Testing:**
46
- - Tests actually test logic (not mocks)?
47
- - Edge cases covered?
48
- - Integration tests where needed?
49
- - All tests passing?
50
-
51
- **Requirements:**
52
- - All plan requirements met?
53
- - Implementation matches spec?
54
- - No scope creep?
55
- - Breaking changes documented?
56
-
57
- **Production Readiness:**
58
- - Migration strategy (if schema changes)?
59
- - Backward compatibility considered?
60
- - Documentation complete?
61
- - No obvious bugs?
62
-
63
- ## Output Format
64
-
65
- ### Strengths
66
- [What's well done? Be specific.]
67
-
68
- ### Issues
69
-
70
- #### Critical (Must Fix)
71
- [Bugs, security issues, data loss risks, broken functionality]
72
-
73
- #### Important (Should Fix)
74
- [Architecture problems, missing features, poor error handling, test gaps]
75
-
76
- #### Minor (Nice to Have)
77
- [Code style, optimization opportunities, documentation improvements]
78
-
79
- **For each issue:**
80
- - File:line reference
81
- - What's wrong
82
- - Why it matters
83
- - How to fix (if not obvious)
84
-
85
- ### Recommendations
86
- [Improvements for code quality, architecture, or process]
87
-
88
- ### Assessment
89
-
90
- **Ready to merge?** [Yes/No/With fixes]
91
-
92
- **Reasoning:** [Technical assessment in 1-2 sentences]
93
-
94
- ## Critical Rules
95
-
96
- **DO:**
97
- - Categorize by actual severity (not everything is Critical)
98
- - Be specific (file:line, not vague)
99
- - Explain WHY issues matter
100
- - Acknowledge strengths
101
- - Give clear verdict
102
-
103
- **DON'T:**
104
- - Say "looks good" without checking
105
- - Mark nitpicks as Critical
106
- - Give feedback on code you didn't review
107
- - Be vague ("improve error handling")
108
- - Avoid giving a clear verdict
109
-
110
- ## Example Output
111
-
112
- ```
113
- ### Strengths
114
- - Clean database schema with proper migrations (db.ts:15-42)
115
- - Comprehensive test coverage (18 tests, all edge cases)
116
- - Good error handling with fallbacks (summarizer.ts:85-92)
117
-
118
- ### Issues
119
-
120
- #### Important
121
- 1. **Missing help text in CLI wrapper**
122
- - File: index-conversations:1-31
123
- - Issue: No --help flag, users won't discover --concurrency
124
- - Fix: Add --help case with usage examples
125
-
126
- 2. **Date validation missing**
127
- - File: search.ts:25-27
128
- - Issue: Invalid dates silently return no results
129
- - Fix: Validate ISO format, throw error with example
130
-
131
- #### Minor
132
- 1. **Progress indicators**
133
- - File: indexer.ts:130
134
- - Issue: No "X of Y" counter for long operations
135
- - Impact: Users don't know how long to wait
136
-
137
- ### Recommendations
138
- - Add progress reporting for user experience
139
- - Consider config file for excluded projects (portability)
140
-
141
- ### Assessment
142
-
143
- **Ready to merge: With fixes**
144
-
145
- **Reasoning:** Core implementation is solid with good architecture and tests. Important issues (help text, date validation) are easily fixed and don't affect core functionality.
146
- ```
@@ -1,12 +0,0 @@
1
- {
2
- "version": "1.1.0",
3
- "name": "superpowers:collaboration/requesting-code-review",
4
- "title": "Requesting Code Review",
5
- "helpers": [
6
- "code-reviewer.md"
7
- ],
8
- "aliases": [
9
- "requesting-code-review",
10
- "collaboration/requesting-code-review"
11
- ]
12
- }