hero-mmt-kit 1.1.6 → 1.3.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 (31) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +19 -13
  3. package/package.json +2 -2
  4. package/skills.manifest.json +8 -9
  5. package/src/integrations.cjs +9 -7
  6. package/src/skills.cjs +17 -6
  7. package/templates/CLAUDE.md.tmpl +30 -42
  8. package/templates/skills/NOTICE +26 -8
  9. package/templates/skills/brainstorming/SKILL.md +9 -9
  10. package/templates/skills/executing-plans/SKILL.md +1 -1
  11. package/templates/skills/hero-coding/SKILL.md +148 -69
  12. package/templates/skills/hero-gitflow/SKILL.md +61 -0
  13. package/templates/skills/hero-mr-review/SKILL.md +3 -3
  14. package/templates/skills/hero-node/SKILL.md +177 -0
  15. package/templates/skills/hero-planning/SKILL.md +281 -59
  16. package/templates/skills/hero-report/SKILL.md +5 -2
  17. package/templates/skills/hero-reviewing/SKILL.md +322 -69
  18. package/templates/skills/hero-strict/SKILL.md +4 -4
  19. package/templates/skills/hero-unit-test/SKILL.md +128 -78
  20. package/templates/skills/subagent-driven-development/SKILL.md +22 -9
  21. package/templates/skills/subagent-driven-development/code-quality-reviewer-prompt.md +34 -34
  22. package/templates/skills/subagent-driven-development/implementer-prompt.md +4 -5
  23. package/templates/skills/subagent-driven-development/scripts/sdd-workspace.sh +9 -10
  24. package/templates/skills/subagent-driven-development/scripts/task-brief.sh +1 -1
  25. package/templates/skills/using-git-worktrees/SKILL.md +7 -5
  26. package/templates/skills/using-hero/SKILL.md +27 -19
  27. package/templates/skills/receiving-code-review/SKILL.md +0 -213
  28. package/templates/skills/requesting-code-review/SKILL.md +0 -108
  29. package/templates/skills/requesting-code-review/code-reviewer.md +0 -168
  30. package/templates/skills/writing-plans/SKILL.md +0 -173
  31. package/templates/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
@@ -1,213 +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 - 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
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
- **your human partner's rule:** "External feedback - be skeptical, but check carefully"
87
-
88
- ## YAGNI Check for "Professional" Features
89
-
90
- ```
91
- IF reviewer suggests "implementing properly":
92
- grep codebase for actual usage
93
-
94
- IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
95
- IF used: Then implement properly
96
- ```
97
-
98
- **your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
99
-
100
- ## Implementation Order
101
-
102
- ```
103
- FOR multi-item feedback:
104
- 1. Clarify anything unclear FIRST
105
- 2. Then implement in this order:
106
- - Blocking issues (breaks, security)
107
- - Simple fixes (typos, imports)
108
- - Complex fixes (refactoring, logic)
109
- 3. Test each fix individually
110
- 4. Verify no regressions
111
- ```
112
-
113
- ## When To Push Back
114
-
115
- Push back when:
116
- - Suggestion breaks existing functionality
117
- - Reviewer lacks full context
118
- - Violates YAGNI (unused feature)
119
- - Technically incorrect for this stack
120
- - Legacy/compatibility reasons exist
121
- - Conflicts with your human partner's architectural decisions
122
-
123
- **How to push back:**
124
- - Use technical reasoning, not defensiveness
125
- - Ask specific questions
126
- - Reference working tests/code
127
- - Involve your human partner if architectural
128
-
129
- **If you're uncomfortable pushing back out loud:** Name that tension, then tell your partner about the issue you've seen. They'll appreciate your honesty.
130
-
131
- ## Acknowledging Correct Feedback
132
-
133
- When feedback IS correct:
134
- ```
135
- ✅ "Fixed. [Brief description of what changed]"
136
- ✅ "Good catch - [specific issue]. Fixed in [location]."
137
- ✅ [Just fix it and show in the code]
138
-
139
- ❌ "You're absolutely right!"
140
- ❌ "Great point!"
141
- ❌ "Thanks for catching that!"
142
- ❌ "Thanks for [anything]"
143
- ❌ ANY gratitude expression
144
- ```
145
-
146
- **Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
147
-
148
- **If you catch yourself about to write "Thanks":** DELETE IT. State the fix instead.
149
-
150
- ## Gracefully Correcting Your Pushback
151
-
152
- If you pushed back and were wrong:
153
- ```
154
- ✅ "You were right - I checked [X] and it does [Y]. Implementing now."
155
- ✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
156
-
157
- ❌ Long apology
158
- ❌ Defending why you pushed back
159
- ❌ Over-explaining
160
- ```
161
-
162
- State the correction factually and move on.
163
-
164
- ## Common Mistakes
165
-
166
- | Mistake | Fix |
167
- |---------|-----|
168
- | Performative agreement | State requirement or just act |
169
- | Blind implementation | Verify against codebase first |
170
- | Batch without testing | One at a time, test each |
171
- | Assuming reviewer is right | Check if breaks things |
172
- | Avoiding pushback | Technical correctness > comfort |
173
- | Partial implementation | Clarify all items first |
174
- | Can't verify, proceed anyway | State limitation, ask for direction |
175
-
176
- ## Real Examples
177
-
178
- **Performative Agreement (Bad):**
179
- ```
180
- Reviewer: "Remove legacy code"
181
- ❌ "You're absolutely right! Let me remove that..."
182
- ```
183
-
184
- **Technical Verification (Good):**
185
- ```
186
- Reviewer: "Remove legacy code"
187
- ✅ "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?"
188
- ```
189
-
190
- **YAGNI (Good):**
191
- ```
192
- Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
193
- ✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
194
- ```
195
-
196
- **Unclear Item (Good):**
197
- ```
198
- your human partner: "Fix items 1-6"
199
- You understand 1,2,3,6. Unclear on 4,5.
200
- ✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
201
- ```
202
-
203
- ## GitHub Thread Replies
204
-
205
- 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.
206
-
207
- ## The Bottom Line
208
-
209
- **External feedback = suggestions to evaluate, not orders to follow.**
210
-
211
- Verify. Question. Then implement.
212
-
213
- No performative agreement. Technical rigor always.
@@ -1,108 +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
4
- ---
5
-
6
- # Requesting Code Review
7
-
8
- 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.
9
-
10
- **Core principle:** Review when it changes the risk picture. Review is evidence, not ceremony.
11
-
12
- ## When to Request Review
13
-
14
- **Mandatory:**
15
- - HIGH/CRITICAL risk changes before completion
16
- - Security-sensitive work when the touched surface can affect auth, data exposure, secrets, deployment, or AI safety
17
- - Before merge to main when project policy requires it
18
-
19
- **Optional but valuable:**
20
- - Medium-risk behavior changes where one combined review can catch requirement or quality gaps
21
- - When stuck (fresh perspective)
22
- - Before risky refactoring (baseline check)
23
- - After fixing a complex bug
24
-
25
- **Usually skip:**
26
- - Low-risk docs/config/localized changes with credible targeted checks
27
- - A final review over the same scope already covered by a reviewer
28
-
29
- ## How to Request
30
-
31
- **1. Get git SHAs:**
32
- ```bash
33
- BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
34
- HEAD_SHA=$(git rev-parse HEAD)
35
- ```
36
-
37
- **2. Dispatch code reviewer subagent:**
38
-
39
- Use Task tool with `general-purpose` type, fill template at `code-reviewer.md`
40
-
41
- **Placeholders:**
42
- - `{DESCRIPTION}` - Brief summary of what you built
43
- - `{PLAN_OR_REQUIREMENTS}` - What it should do
44
- - `{BASE_SHA}` - Starting commit
45
- - `{HEAD_SHA}` - Ending commit
46
-
47
- **3. Act on feedback:**
48
- - Fix Critical issues immediately
49
- - Fix Important issues before proceeding
50
- - Note Minor issues for later
51
- - Push back if reviewer is wrong (with reasoning)
52
-
53
- ## Example
54
-
55
- ```
56
- [Just completed Task 2: Add verification function]
57
-
58
- You: Let me request code review before proceeding.
59
-
60
- BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
61
- HEAD_SHA=$(git rev-parse HEAD)
62
-
63
- [Dispatch code reviewer subagent]
64
- DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
65
- PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
66
- BASE_SHA: a7981ec
67
- HEAD_SHA: 3df7661
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
75
-
76
- You: [Fix progress indicators]
77
- [Continue to Task 3]
78
- ```
79
-
80
- ## Integration with Workflows
81
-
82
- **Subagent-Driven Development:**
83
- - Use the review budget selected by the workflow
84
- - Prefer one combined or targeted reviewer unless risk justifies multi-stage review
85
- - Re-review only fixes/findings unless scope expanded
86
-
87
- **Executing Plans:**
88
- - Review at natural checkpoints when risk or uncertainty warrants it
89
- - Get feedback, apply, continue
90
-
91
- **Ad-Hoc Development:**
92
- - Review when risk, uncertainty, or merge policy warrants it
93
- - Skip duplicate review for low-risk work already verified
94
-
95
- ## Red Flags
96
-
97
- **Never:**
98
- - Skip review for HIGH/CRITICAL or sensitive work because it is inconvenient
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
107
-
108
- See template at: requesting-code-review/code-reviewer.md
@@ -1,168 +0,0 @@
1
- # Code Reviewer Prompt Template
2
-
3
- Use this template when dispatching a code reviewer subagent.
4
-
5
- **Purpose:** Review completed work against requirements and code quality standards before it cascades into more work.
6
-
7
- ```
8
- Task tool (general-purpose):
9
- description: "Review code changes"
10
- prompt: |
11
- You are a Senior Code Reviewer with expertise in software architecture,
12
- design patterns, and best practices. Your job is to review completed work
13
- against its plan or requirements and identify issues before they cascade.
14
-
15
- ## What Was Implemented
16
-
17
- {DESCRIPTION}
18
-
19
- ## Requirements / Plan
20
-
21
- {PLAN_OR_REQUIREMENTS}
22
-
23
- ## Git Range to Review
24
-
25
- **Base:** {BASE_SHA}
26
- **Head:** {HEAD_SHA}
27
-
28
- ```bash
29
- git diff --stat {BASE_SHA}..{HEAD_SHA}
30
- git diff {BASE_SHA}..{HEAD_SHA}
31
- ```
32
-
33
- ## What to Check
34
-
35
- **Plan alignment:**
36
- - Does the implementation match the plan / requirements?
37
- - Are deviations justified improvements, or problematic departures?
38
- - Is all planned functionality present?
39
-
40
- **Code quality:**
41
- - Clean separation of concerns?
42
- - Proper error handling?
43
- - Type safety where applicable?
44
- - DRY without premature abstraction?
45
- - Edge cases handled?
46
-
47
- **Architecture:**
48
- - Sound design decisions?
49
- - Reasonable scalability and performance?
50
- - Security concerns?
51
- - Integrates cleanly with surrounding code?
52
-
53
- **Testing:**
54
- - Tests verify real behavior, not mocks?
55
- - Edge cases covered?
56
- - Integration tests where they matter?
57
- - All tests passing?
58
-
59
- **Production readiness:**
60
- - Migration strategy if schema changed?
61
- - Backward compatibility considered?
62
- - Documentation complete?
63
- - No obvious bugs?
64
-
65
- ## Calibration
66
-
67
- Categorize issues by actual severity. Not everything is Critical.
68
- Acknowledge what was done well before listing issues — accurate praise
69
- helps the implementer trust the rest of the feedback.
70
-
71
- If you find significant deviations from the plan, flag them specifically
72
- so the implementer can confirm whether the deviation was intentional.
73
- If you find issues with the plan itself rather than the implementation,
74
- say so.
75
-
76
- ## Output Format
77
-
78
- ### Strengths
79
- [What's well done? Be specific.]
80
-
81
- ### Issues
82
-
83
- #### Critical (Must Fix)
84
- [Bugs, security issues, data loss risks, broken functionality]
85
-
86
- #### Important (Should Fix)
87
- [Architecture problems, missing features, poor error handling, test gaps]
88
-
89
- #### Minor (Nice to Have)
90
- [Code style, optimization opportunities, documentation polish]
91
-
92
- For each issue:
93
- - File:line reference
94
- - What's wrong
95
- - Why it matters
96
- - How to fix (if not obvious)
97
-
98
- ### Recommendations
99
- [Improvements for code quality, architecture, or process]
100
-
101
- ### Assessment
102
-
103
- **Ready to merge?** [Yes | No | With fixes]
104
-
105
- **Reasoning:** [1-2 sentence technical assessment]
106
-
107
- ## Critical Rules
108
-
109
- **DO:**
110
- - Categorize by actual severity
111
- - Be specific (file:line, not vague)
112
- - Explain WHY each issue matters
113
- - Acknowledge strengths
114
- - Give a clear verdict
115
-
116
- **DON'T:**
117
- - Say "looks good" without checking
118
- - Mark nitpicks as Critical
119
- - Give feedback on code you didn't actually read
120
- - Be vague ("improve error handling")
121
- - Avoid giving a clear verdict
122
- ```
123
-
124
- **Placeholders:**
125
- - `{DESCRIPTION}` — brief summary of what was built
126
- - `{PLAN_OR_REQUIREMENTS}` — what it should do (plan file path, task text, or requirements)
127
- - `{BASE_SHA}` — starting commit
128
- - `{HEAD_SHA}` — ending commit
129
-
130
- **Reviewer returns:** Strengths, Issues (Critical / Important / Minor), Recommendations, Assessment
131
-
132
- ## Example Output
133
-
134
- ```
135
- ### Strengths
136
- - Clean database schema with proper migrations (db.ts:15-42)
137
- - Comprehensive test coverage (18 tests, all edge cases)
138
- - Good error handling with fallbacks (summarizer.ts:85-92)
139
-
140
- ### Issues
141
-
142
- #### Important
143
- 1. **Missing help text in CLI wrapper**
144
- - File: index-conversations:1-31
145
- - Issue: No --help flag, users won't discover --concurrency
146
- - Fix: Add --help case with usage examples
147
-
148
- 2. **Date validation missing**
149
- - File: search.ts:25-27
150
- - Issue: Invalid dates silently return no results
151
- - Fix: Validate ISO format, throw error with example
152
-
153
- #### Minor
154
- 1. **Progress indicators**
155
- - File: indexer.ts:130
156
- - Issue: No "X of Y" counter for long operations
157
- - Impact: Users don't know how long to wait
158
-
159
- ### Recommendations
160
- - Add progress reporting for user experience
161
- - Consider config file for excluded projects (portability)
162
-
163
- ### Assessment
164
-
165
- **Ready to merge: With fixes**
166
-
167
- **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.
168
- ```
@@ -1,173 +0,0 @@
1
- ---
2
- name: writing-plans
3
- description: Use when you have a spec or requirements for a multi-step task, before touching code
4
- ---
5
-
6
- # Writing Plans
7
-
8
- ## Overview
9
-
10
- Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
11
-
12
- Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
13
-
14
- **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
15
-
16
- **Context:** If working in an isolated worktree, it should have been created via the `superpowers:using-git-worktrees` skill at execution time.
17
-
18
- **Save plans to:** `docs/plans/YYYY-MM-DD-<feature-name>.md`
19
- - (User preferences for plan location override this default)
20
-
21
- ## Scope Check
22
-
23
- If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
24
-
25
- ## File Structure
26
-
27
- Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
28
-
29
- - Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
30
- - You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
31
- - Files that change together should live together. Split by responsibility, not by technical layer.
32
- - In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
33
-
34
- This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
35
-
36
- ## Task Right-Sizing
37
-
38
- A task is the smallest unit that carries its own test cycle and is worth a fresh reviewer's gate. When drawing task boundaries: fold setup, configuration, scaffolding, and documentation steps into the task whose deliverable needs them; split only where a reviewer could meaningfully reject one task while approving its neighbor. Each task ends with an independently testable deliverable.
39
-
40
- ## Bite-Sized Task Granularity
41
-
42
- **Each step is one action (2-5 minutes):**
43
- - "Write the failing test" - step
44
- - "Run it to make sure it fails" - step
45
- - "Implement the minimal code to make the test pass" - step
46
- - "Run the tests and make sure they pass" - step
47
- - "Commit" - step
48
-
49
- ## Plan Document Header
50
-
51
- **Every plan MUST start with this header:**
52
-
53
- ```markdown
54
- # [Feature Name] Implementation Plan
55
-
56
- > **For agentic workers:** Choose the lightest execution mode that fits the risk: direct execution for clear bounded tasks, superpowers:executing-plans for inline checkpoints, or superpowers:subagent-driven-development when delegation/review budget genuinely adds value. Steps use checkbox (`- [ ]`) syntax for tracking.
57
-
58
- **Goal:** [One sentence describing what this builds]
59
-
60
- **Architecture:** [2-3 sentences about approach]
61
-
62
- **Tech Stack:** [Key technologies/libraries]
63
-
64
- ## Global Constraints
65
-
66
- [The spec's project-wide requirements — version floors, dependency limits, naming and copy rules, platform requirements — one line each, with exact values copied verbatim from the spec. Every task's requirements implicitly include this section.]
67
-
68
- ---
69
- ```
70
-
71
- ## Task Structure
72
-
73
- ````markdown
74
- ### Task N: [Component Name]
75
-
76
- **Files:**
77
- - Create: `exact/path/to/file.py`
78
- - Modify: `exact/path/to/existing.py:123-145`
79
- - Test: `tests/exact/path/to/test.py`
80
-
81
- **Interfaces:**
82
- - Consumes: [what this task uses from earlier tasks — exact signatures]
83
- - Produces: [what later tasks rely on — exact function names, parameter and return types. A task's implementer sees only their own task; this block is how they learn the names and types neighboring tasks use.]
84
-
85
- - [ ] **Step 1: Write the failing test**
86
-
87
- ```python
88
- def test_specific_behavior():
89
- result = function(input)
90
- assert result == expected
91
- ```
92
-
93
- - [ ] **Step 2: Run test to verify it fails**
94
-
95
- Run: `pytest tests/path/test.py::test_name -v`
96
- Expected: FAIL with "function not defined"
97
-
98
- - [ ] **Step 3: Write minimal implementation**
99
-
100
- ```python
101
- def function(input):
102
- return expected
103
- ```
104
-
105
- - [ ] **Step 4: Run test to verify it passes**
106
-
107
- Run: `pytest tests/path/test.py::test_name -v`
108
- Expected: PASS
109
-
110
- - [ ] **Step 5: Commit**
111
-
112
- ```bash
113
- git add tests/path/test.py src/path/file.py
114
- git commit -m "feat: add specific feature"
115
- ```
116
- ````
117
-
118
- ## No Placeholders
119
-
120
- Every step must contain the actual content an engineer needs. These are **plan failures** — never write them:
121
- - "TBD", "TODO", "implement later", "fill in details"
122
- - "Add appropriate error handling" / "add validation" / "handle edge cases"
123
- - "Write tests for the above" (without actual test code)
124
- - "Similar to Task N" (repeat the code — the engineer may be reading tasks out of order)
125
- - Steps that describe what to do without showing how (code blocks required for code steps)
126
- - References to types, functions, or methods not defined in any task
127
-
128
- ## Remember
129
- - Exact file paths always
130
- - Complete code in every step — if a step changes code, show the code
131
- - Exact commands with expected output
132
- - DRY, YAGNI, TDD, frequent commits
133
-
134
- ## Self-Review
135
-
136
- After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
137
-
138
- **1. Spec coverage:** Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
139
-
140
- **2. Placeholder scan:** Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.
141
-
142
- **3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.
143
-
144
- If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
145
-
146
- **Higher-assurance alternative:** For high-risk or `full-multi-stage-review` work, dispatch a separate reviewer subagent instead of self-review — see `plan-document-reviewer-prompt.md` in this skill's directory.
147
-
148
- ## Execution Handoff
149
-
150
- After saving the plan, offer execution choice:
151
-
152
- **"Plan complete and saved to `docs/plans/<filename>.md`. Three execution options:**
153
-
154
- **1. Direct / Pragmatic (default for clear bounded work)** - I implement in this session, run targeted checks, and report verified/unverified scope
155
-
156
- **2. Inline Execution** - Execute tasks in this session using executing-plans, with checkpoints where useful
157
-
158
- **3. Subagent-Driven** - Dispatch bounded subagents only where delegation or review budget genuinely adds value
159
-
160
- **Which approach?"**
161
-
162
- **If Direct / Pragmatic chosen:**
163
- - Execute directly in the main session.
164
- - Use targeted tests/checks and explicit verified/unverified handoff.
165
- - Do not spawn reviewers unless risk changes.
166
-
167
- **If Inline Execution chosen:**
168
- - **REQUIRED SUB-SKILL:** Use superpowers:executing-plans.
169
- - Batch execution with checkpoints for review.
170
-
171
- **If Subagent-Driven chosen:**
172
- - **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development.
173
- - Select an adaptive review budget; do not default to spec review + quality review + final review for every task.