MUST invoke when executing implementation plans with Phases.
Executes multi-phase implementation plans by dispatching fresh subagents per phase, with automated spec and code quality reviews after each phase. Use this to systematically build complex features while maintaining context efficiency and quality gates.
/plugin marketplace add astrosteveo/harness/plugin install astrosteveo-harness@astrosteveo/harnessThis skill inherits all available tools. When active, it can use any tool Claude has access to.
code-quality-reviewer-prompt.mdimplementer-prompt.mdspec-reviewer-prompt.mdExecute plan by dispatching fresh subagent per Phase, with spec + code quality review after each Phase completes.
Core principle: Fresh subagent per Phase + two-stage review (spec then quality) = high quality, context-efficient execution
Modes:
Use this skill when you have a .harness/*/plan.md to execute.
| Factor | Autonomous | Checkpoints |
|---|---|---|
| Human stops | None | After each Phase |
| Reviews | Automated (subagents) | Automated + human approval |
| Speed | Fastest | Medium |
| Best for | Independent Phases, trust process | Complex/risky changes, want oversight |
Read the plan file exactly once. Extract and cache:
1. Header (Goal, Architecture, Tech Stack) → ~10-20 lines
2. Phase boundaries → list of (start_line, end_line) for each phase
3. Phase content → extracted text for each phase (~100-250 lines each)
DO NOT re-read the plan file for each phase. Parse once, dispatch many.
Create TodoWrite with Phases (not individual tasks)
For each Phase:
↓
Mark Phase as in_progress
↓
Dispatch implementer with:
- Plan header summary (Goal + Architecture only, ~20 lines)
- THIS Phase content only (~100-250 lines)
- NOT the entire plan
↓
Subagent executes all Tasks in Phase using TDD
(commits after each Task within the Phase)
↓
Subagent completes, returns summary
↓
Dispatch spec reviewer with:
- Phase requirements (from cached phase content)
- Implementer's report
↓
[If issues] Dispatch fix subagent → re-review
↓
Dispatch code quality reviewer
↓
[If issues] Dispatch fix subagent → re-review
↓
Mark Phase complete in TodoWrite
↓
Create phase completion commit with trailer:
git commit --allow-empty -m "feat: complete Phase N - [Phase name]
phase(N): complete"
↓
[If checkpoint mode] Report to user, wait for approval
↓
Next Phase (use cached content, no re-reading)
↓
All Phases complete → harness:finishing-a-development-branch
| Action | Context Cost | Approach |
|---|---|---|
| Parse plan | ~1000 lines once | Read file once at start |
| Each phase dispatch | ~300 lines | Header summary + phase content only |
| Spec review | ~200 lines | Requirements + report only |
| Quality review | ~100 lines | Minimal context |
Total context per phase: ~300-400 lines (not 1000+)
Anti-pattern: Re-reading entire plan
| Bad Practice | Cost | Fix |
|---|---|---|
| Read plan for each phase | O(n²) context | Parse once, cache phases |
| Pass full plan to subagent | Wastes ~700 lines | Pass header + phase only |
| Subagent reads plan file | Duplicate parsing | Controller provides content |
phase(N): complete trailer./implementer-prompt.md - Dispatch implementer subagent./spec-reviewer-prompt.md - Dispatch spec compliance reviewer subagent./code-quality-reviewer-prompt.md - Dispatch code quality reviewer subagentYou: I'm using Subagent-Driven Development to execute this plan.
[Read plan file: .harness/004-world-design/plan.md]
[Extract all 6 Phases with full content]
[Create TodoWrite with 6 Phase items]
Phase 1: Camera System (3 tasks)
[Mark Phase 1 as in_progress]
[Dispatch implementer subagent with full Phase 1 content]
Implementer: "Before I begin - should camera lerp be configurable?"
You: "Use 0.08 for now, we can make it configurable later"
Implementer: "Got it. Implementing Phase 1..."
[Later] Implementer:
- Task 1.1: Camera follow - done, committed
- Task 1.2: Zoom levels - done, committed
- Task 1.3: Parallax fix - done, committed
- All tests passing
- Phase 1 complete
[Dispatch spec reviewer for Phase 1]
Spec reviewer: ✅ All 3 tasks meet spec requirements
[Dispatch code quality reviewer for Phase 1]
Code reviewer: ✅ Clean implementation, approved
[Mark Phase 1 complete]
[If checkpoint mode: "Phase 1 complete. Continue to Phase 2?"]
Phase 2: World Expansion (2 tasks)
...continues same pattern...
When checkpoint mode is ON, pause after each Phase completes (after code quality review passes):
Report format:
✅ Phase N complete: [Phase name]
**What was implemented:**
- Task N.1: [summary]
- Task N.2: [summary]
- [Files modified]
**Verification:**
- Tests: [passing/failing]
- Spec review: ✅ Approved
- Code quality: ✅ Approved
**Commits:** [list of commit SHAs from this Phase]
---
Ready to proceed to Phase N+1: [Next phase name]?
[Continue / Pause / Adjust]
User responses:
When to use checkpoint mode:
When to skip checkpoints (autonomous mode):
When plans contain both independent and dependent Phases:
Note: Within a Phase, tasks are executed sequentially by the same subagent. Phase-level is the dispatch boundary.
vs. Manual execution:
vs. Batch Review (executing-plans):
Efficiency gains:
Quality gates:
Cost:
After each Phase completes (reviews passed), create a commit with the phase completion trailer:
git commit --allow-empty -m "feat: complete Phase N - [Phase name]
phase(N): complete"
Format requirements:
phase(N): complete where N is the phase numberIf user chooses to abandon a plan:
git commit --allow-empty -m "chore: abandon [feature-name] plan
plan: abandoned
Reason: [explanation]"
This stops the session start hook from prompting about this plan.
Never:
If subagent asks questions:
If reviewer finds issues:
If subagent fails Phase:
STOP executing immediately when:
Ask for clarification rather than guessing.
Signs a plan is invalid:
What to do:
Adapt vs Re-plan:
Subagents should use:
After all Phases complete:
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.