hyper-implement
Plan execution gate. Reads a plan, dispatches a fresh subagent per task, runs two reviews (spec compliance, then code quality) before marking each task complete. The hyperclaude-native equivalent of superpowers' subagent-driven-development — but using our own agents (implementer, verifier) and our own gate skills.
When to use
- User typed
/hyperclaude:hyper-implement [path].
- A multi-task plan exists (typically in
.hyperclaude/plans/) and you're about to execute it.
Skip when:
- The plan is one step — just do it directly.
- Tasks are tightly coupled and benefit from shared context.
- You're prototyping; reviews are overhead at this stage.
How to invoke
Invocation argument: $ARGUMENTS
Step 1 — Resolve the plan path
In priority order:
If $ARGUMENTS is non-empty, treat it as a path and use it.
Else, find the most recent plan via the Bash tool:
ls -1t .hyperclaude/plans/*.md 2>/dev/null | head -1
If nothing found, tell the user: "No plan file found. Write your plan to .hyperclaude/plans/<slug>.md first." Stop.
Step 2 — Parse and track
Read the plan with the Read tool. Extract every ## Task N: <title> section with its full text — files-to-create/modify, step-by-step checkboxes, verification commands, commit message.
Use TodoWrite to create a todo per task. Mark the first as in_progress.
Step 3 — Per-task loop
For EACH task in order:
Implementer. Dispatch via the Agent tool. Prefer subagent_type: hyperclaude:implementer. Prompt MUST include:
- The full task text (paste it; do not make the subagent re-read the plan file).
- Project context: where this fits, recent commits, base SHA before this task.
- Global constraints from the plan's preamble (zero deps, sandbox rules, no
commands/ directory, etc.).
- A self-review checklist before reporting back.
- Expected report format: status (DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT), files changed, test counts, commit SHA.
Spec compliance review. Once implementer reports DONE, dispatch a fresh general-purpose subagent (NOT the verifier — verifier runs tests, doesn't compare to spec). Prompt:
- The full task text.
- The implementer's report (verbatim).
- The git SHA range (
<base>..<head>).
- Instruction: read the actual code; don't trust the report. Look for missing requirements AND unrequested extras.
- Expected outcome: ✅ compliant, or ❌ with specific file:line issues.
If issues found → re-dispatch the implementer with the fix list → re-review. Loop until ✅.
Code quality review. After spec ✅, dispatch another fresh general-purpose subagent. Focus on:
- Clarity (names, decomposition, file responsibility).
- Test quality (do tests verify behavior, not types?).
- YAGNI (any unrequested abstractions or features?).
- Consistency with existing codebase style.
- Severity-tagged issues: Critical / Important / Minor.
Loop until reviewer approves (Minor-only is acceptable; Critical/Important must be fixed).
Verifier (optional, when applicable). If the task added tests or build steps, dispatch subagent_type: hyperclaude:verifier. Verifier runs node --test, bash scripts/test/smoke.sh, lint, etc. and reports PASS / PARTIAL / FAIL with verbatim output. Verifier never modifies files.
Mark task complete in TodoWrite. Move on.
Step 4 — Final pass
After all tasks:
- Run
bash scripts/test/smoke.sh (or whatever the plan defines as final acceptance) and confirm 0 failures.
- If
/hyperclaude:hyper-code-review is available, run it for a Codex-side review of the entire diff. Useful catch for cross-task issues.
- If the plan's final task includes a tag step (
git tag -a vX.Y.Z), do NOT push it; leave that to the user.
Rules
- Fresh subagent per task. Don't reuse implementer subagents across tasks — context pollution kills focus.
- Two reviews per task. Spec compliance FIRST (catches scope drift), then code quality (catches style/clarity). Skipping either means you'll ship bugs.
- Don't trust implementer self-reports. Reviewers must read the actual code.
- Fix loops are mandatory. Reviewer ❌ → implementer fixes → re-review. No "close enough."
- Continuous execution. Don't pause to ask the user between tasks — execute the whole plan. Stop only on BLOCKED, genuine ambiguity, or all tasks done.
- Never push. Tags and pushes are user actions. The skill creates them locally only if the plan says to.
Anti-patterns
- Using
verifier agent for code review. Wrong role — verifier runs tests, doesn't critique code.
- Skipping spec compliance review because "the plan was clear." It never is.
- Single subagent handling multiple tasks (the whole reason we don't do manual orchestration).
- Marking a task complete with reviewer issues still open.
- Following the implementer's own model selection. Pick model per task complexity at dispatch time:
- Mechanical (1-2 files, exact spec): haiku
- Standard (multi-file, integration): sonnet
- Architectural / judgment-heavy: opus
Reference
The v0.1 implementation history (d5754a2..461df61) was produced with this exact flow (under superpowers:subagent-driven-development at the time). 11 tasks, ~33 subagent dispatches, two real bugs caught by reviews before they hit main.
1---2name: hyper-implement3description: Execute a plan task-by-task using fresh subagents, with spec compliance + code quality reviews between tasks. Use when the user invokes /hyperclaude:hyper-implement, or when about to start a multi-task implementation from a plan in .hyperclaude/plans/. Skip for single-step trivia or fast prototyping.4---5
6# hyper-implement
7
8Plan execution gate. Reads a plan, dispatches a fresh subagent per task, runs two reviews (spec compliance, then code quality) before marking each task complete. The hyperclaude-native equivalent of superpowers' subagent-driven-development — but using our own agents (`implementer`, `verifier`) and our own gate skills.
9
10## When to use
11
12- User typed `/hyperclaude:hyper-implement [path]`.
13- A multi-task plan exists (typically in `.hyperclaude/plans/`) and you're about to execute it.
14
15Skip when:
16- The plan is one step — just do it directly.
17- Tasks are tightly coupled and benefit from shared context.
18- You're prototyping; reviews are overhead at this stage.
19
20## How to invoke
21
22**Invocation argument:** $ARGUMENTS
23
24### Step 1 — Resolve the plan path
25
26In priority order:
27
281. If $ARGUMENTS is non-empty, treat it as a path and use it.
292. Else, find the most recent plan via the Bash tool:
30
31 ```bash
32 ls -1t .hyperclaude/plans/*.md 2>/dev/null | head -1
33 ```
34
353. If nothing found, tell the user: "No plan file found. Write your plan to `.hyperclaude/plans/<slug>.md` first." Stop.
36
37### Step 2 — Parse and track
38
39Read the plan with the Read tool. Extract every `## Task N: <title>` section with its full text — files-to-create/modify, step-by-step checkboxes, verification commands, commit message.
40
41Use TodoWrite to create a todo per task. Mark the first as `in_progress`.
42
43### Step 3 — Per-task loop
44
45For EACH task in order:
46
471. **Implementer.** Dispatch via the Agent tool. Prefer `subagent_type: hyperclaude:implementer`. Prompt MUST include:
48 - The full task text (paste it; do not make the subagent re-read the plan file).
49 - Project context: where this fits, recent commits, base SHA before this task.
50 - Global constraints from the plan's preamble (zero deps, sandbox rules, no `commands/` directory, etc.).
51 - A self-review checklist before reporting back.
52 - Expected report format: status (DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT), files changed, test counts, commit SHA.
53
542. **Spec compliance review.** Once implementer reports DONE, dispatch a fresh **general-purpose** subagent (NOT the verifier — verifier runs tests, doesn't compare to spec). Prompt:
55 - The full task text.
56 - The implementer's report (verbatim).
57 - The git SHA range (`<base>..<head>`).
58 - Instruction: read the actual code; don't trust the report. Look for missing requirements AND unrequested extras.
59 - Expected outcome: ✅ compliant, or ❌ with specific file:line issues.
60
61 If issues found → re-dispatch the implementer with the fix list → re-review. Loop until ✅.
62
633. **Code quality review.** After spec ✅, dispatch another fresh general-purpose subagent. Focus on:
64 - Clarity (names, decomposition, file responsibility).
65 - Test quality (do tests verify behavior, not types?).
66 - YAGNI (any unrequested abstractions or features?).
67 - Consistency with existing codebase style.
68 - Severity-tagged issues: Critical / Important / Minor.
69
70 Loop until reviewer approves (Minor-only is acceptable; Critical/Important must be fixed).
71
724. **Verifier (optional, when applicable).** If the task added tests or build steps, dispatch `subagent_type: hyperclaude:verifier`. Verifier runs `node --test`, `bash scripts/test/smoke.sh`, lint, etc. and reports PASS / PARTIAL / FAIL with verbatim output. Verifier never modifies files.
73
745. **Mark task complete in TodoWrite.** Move on.
75
76### Step 4 — Final pass
77
78After all tasks:
79
80- Run `bash scripts/test/smoke.sh` (or whatever the plan defines as final acceptance) and confirm 0 failures.
81- If `/hyperclaude:hyper-code-review` is available, run it for a Codex-side review of the entire diff. Useful catch for cross-task issues.
82- If the plan's final task includes a tag step (`git tag -a vX.Y.Z`), do NOT push it; leave that to the user.
83
84## Rules
85
86- **Fresh subagent per task.** Don't reuse implementer subagents across tasks — context pollution kills focus.
87- **Two reviews per task.** Spec compliance FIRST (catches scope drift), then code quality (catches style/clarity). Skipping either means you'll ship bugs.
88- **Don't trust implementer self-reports.** Reviewers must read the actual code.
89- **Fix loops are mandatory.** Reviewer ❌ → implementer fixes → re-review. No "close enough."
90- **Continuous execution.** Don't pause to ask the user between tasks — execute the whole plan. Stop only on BLOCKED, genuine ambiguity, or all tasks done.
91- **Never push.** Tags and pushes are user actions. The skill creates them locally only if the plan says to.
92
93## Anti-patterns
94
95- Using `verifier` agent for code review. Wrong role — verifier runs tests, doesn't critique code.
96- Skipping spec compliance review because "the plan was clear." It never is.
97- Single subagent handling multiple tasks (the whole reason we don't do manual orchestration).
98- Marking a task complete with reviewer issues still open.
99- Following the implementer's own model selection. Pick model per task complexity at dispatch time:
100 - Mechanical (1-2 files, exact spec): haiku
101 - Standard (multi-file, integration): sonnet
102 - Architectural / judgment-heavy: opus
103
104## Reference
105
106The v0.1 implementation history (`d5754a2..461df61`) was produced with this exact flow (under superpowers:subagent-driven-development at the time). 11 tasks, ~33 subagent dispatches, two real bugs caught by reviews before they hit main.