hero-mmt-kit 1.1.6 → 1.2.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.
- package/CHANGELOG.md +24 -0
- package/README.md +12 -10
- package/package.json +1 -1
- package/skills.manifest.json +6 -9
- package/src/integrations.cjs +7 -7
- package/src/skills.cjs +15 -6
- package/templates/CLAUDE.md.tmpl +26 -41
- package/templates/skills/NOTICE +25 -7
- package/templates/skills/brainstorming/SKILL.md +7 -7
- package/templates/skills/executing-plans/SKILL.md +1 -1
- package/templates/skills/hero-coding/SKILL.md +147 -69
- package/templates/skills/hero-mr-review/SKILL.md +3 -3
- package/templates/skills/hero-planning/SKILL.md +281 -59
- package/templates/skills/hero-report/SKILL.md +5 -2
- package/templates/skills/hero-reviewing/SKILL.md +322 -69
- package/templates/skills/hero-strict/SKILL.md +4 -4
- package/templates/skills/hero-unit-test/SKILL.md +128 -78
- package/templates/skills/subagent-driven-development/SKILL.md +14 -3
- package/templates/skills/subagent-driven-development/code-quality-reviewer-prompt.md +34 -34
- package/templates/skills/subagent-driven-development/scripts/task-brief.sh +1 -1
- package/templates/skills/using-hero/SKILL.md +22 -19
- package/templates/skills/receiving-code-review/SKILL.md +0 -213
- package/templates/skills/requesting-code-review/SKILL.md +0 -108
- package/templates/skills/requesting-code-review/code-reviewer.md +0 -168
- package/templates/skills/writing-plans/SKILL.md +0 -173
- package/templates/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
|
@@ -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.
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Plan Document Reviewer Prompt Template
|
|
2
|
-
|
|
3
|
-
Use this template when dispatching a plan document reviewer subagent.
|
|
4
|
-
|
|
5
|
-
**Purpose:** Verify the plan is complete, matches the spec, and has proper task decomposition.
|
|
6
|
-
|
|
7
|
-
**Dispatch after:** The complete plan is written.
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
Task tool (general-purpose):
|
|
11
|
-
description: "Review plan document"
|
|
12
|
-
prompt: |
|
|
13
|
-
You are a plan document reviewer. Verify this plan is complete and ready for implementation.
|
|
14
|
-
|
|
15
|
-
**Plan to review:** [PLAN_FILE_PATH]
|
|
16
|
-
**Spec for reference:** [SPEC_FILE_PATH]
|
|
17
|
-
|
|
18
|
-
## What to Check
|
|
19
|
-
|
|
20
|
-
| Category | What to Look For |
|
|
21
|
-
|----------|------------------|
|
|
22
|
-
| Completeness | TODOs, placeholders, incomplete tasks, missing steps |
|
|
23
|
-
| Spec Alignment | Plan covers spec requirements, no major scope creep |
|
|
24
|
-
| Task Decomposition | Tasks have clear boundaries, steps are actionable |
|
|
25
|
-
| Buildability | Could an engineer follow this plan without getting stuck? |
|
|
26
|
-
|
|
27
|
-
## Calibration
|
|
28
|
-
|
|
29
|
-
**Only flag issues that would cause real problems during implementation.**
|
|
30
|
-
An implementer building the wrong thing or getting stuck is an issue.
|
|
31
|
-
Minor wording, stylistic preferences, and "nice to have" suggestions are not.
|
|
32
|
-
|
|
33
|
-
Approve unless there are serious gaps — missing requirements from the spec,
|
|
34
|
-
contradictory steps, placeholder content, or tasks so vague they can't be acted on.
|
|
35
|
-
|
|
36
|
-
## Output Format
|
|
37
|
-
|
|
38
|
-
## Plan Review
|
|
39
|
-
|
|
40
|
-
**Status:** Approved | Issues Found
|
|
41
|
-
|
|
42
|
-
**Issues (if any):**
|
|
43
|
-
- [Task X, Step Y]: [specific issue] - [why it matters for implementation]
|
|
44
|
-
|
|
45
|
-
**Recommendations (advisory, do not block approval):**
|
|
46
|
-
- [suggestions for improvement]
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**Reviewer returns:** Status, Issues (if any), Recommendations
|