.cursor/skills/superpowers/subagent-driven-development/SKILL.md
Execute implementation plans with a fresh subagent per task, spec review then code-quality review; includes capture rules for reviewer feedback. Controllers must run superpowers-subagents-final-check before branch closeout. Repo copy with prompt templates in this folder.
npx skillsauth add denerose/VeganMealPlanner subagent-driven-developmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Repo copy: This skill lives at
.cursor/skills/subagent-driven-development/alongsideimplementer-prompt.md,spec-reviewer-prompt.md, andcode-quality-reviewer-prompt.md. Descended from Cursor Superpowers; edit here for project-specific changes (the IDE plugin cache may differ).
When a plan or ticket calls for “tests README”, coverage maps, or testing documentation: extend TESTING.md at the repo root. Do not add README.md under tests/** or src/** unless the human explicitly requested that file path. Planners and implementers must follow Cursor rule documentation-no-ad-hoc-readmes-tests-src.mdc.
Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
Why subagents: You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
digraph when_to_use {
"Have implementation plan?" [shape=diamond];
"Tasks mostly independent?" [shape=diamond];
"Stay in this session?" [shape=diamond];
"subagent-driven-development" [shape=box];
"executing-plans" [shape=box];
"Manual execution or brainstorm first" [shape=box];
"Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
"Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
"Tasks mostly independent?" -> "Stay in this session?" [label="yes"];
"Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
"Stay in this session?" -> "subagent-driven-development" [label="yes"];
"Stay in this session?" -> "executing-plans" [label="no - parallel session"];
}
vs. Executing Plans (parallel session):
digraph process {
rankdir=TB;
subgraph cluster_per_task {
label="Per Task";
"Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
"Implementer subagent asks questions?" [shape=diamond];
"Answer questions, provide context" [shape=box];
"Implementer subagent implements, tests, commits, self-reviews" [shape=box];
"Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
"Spec reviewer subagent confirms code matches spec?" [shape=diamond];
"Implementer subagent fixes spec gaps" [shape=box];
"Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [shape=box];
"Code quality reviewer subagent approves?" [shape=diamond];
"Implementer subagent fixes quality issues" [shape=box];
"Mark task complete in TodoWrite" [shape=box];
}
"Read plan, extract all tasks with full text, note context, create TodoWrite" [shape=box];
"More tasks remain?" [shape=diamond];
"Dispatch final code reviewer subagent for entire implementation" [shape=box];
"Run superpowers-subagents-final-check (see .cursor/skills/superpowers/superpowers-subagents-final-check/SKILL.md)" [shape=box];
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
"Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer subagent (./implementer-prompt.md)";
"Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
"Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
"Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
"Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
"Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
"Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
"Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
"Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
"Spec reviewer subagent confirms code matches spec?" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="yes"];
"Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" -> "Code quality reviewer subagent approves?";
"Code quality reviewer subagent approves?" -> "Implementer subagent fixes quality issues" [label="no"];
"Implementer subagent fixes quality issues" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="re-review"];
"Code quality reviewer subagent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
"Mark task complete in TodoWrite" -> "More tasks remain?";
"More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
"More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
"Dispatch final code reviewer subagent for entire implementation" -> "Run superpowers-subagents-final-check (see .cursor/skills/superpowers/superpowers-subagents-final-check/SKILL.md)";
"Run superpowers-subagents-final-check (see .cursor/skills/superpowers/superpowers-subagents-final-check/SKILL.md)" -> "Use superpowers:finishing-a-development-branch";
}
Use the least powerful model that can handle each role to conserve cost and increase speed.
Mechanical implementation tasks (isolated functions, clear specs, 1-2 files): use a fast, cheap model. Most implementation tasks are mechanical when the plan is well-specified.
Integration and judgment tasks (multi-file coordination, pattern matching, debugging): use a standard model.
Architecture, design, and review tasks: use the most capable available model.
Task complexity signals:
Implementer subagents report one of four statuses. Handle each appropriately:
DONE: Proceed to spec compliance review.
DONE_WITH_CONCERNS: The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., "this file is getting large"), note them and proceed to review.
NEEDS_CONTEXT: The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
BLOCKED: The implementer cannot complete the task. Assess the blocker:
Never ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
Before superpowers:finishing-a-development-branch (merge / PR / “done”), the controller must read and follow superpowers-subagents-final-check: .cursor/skills/superpowers/superpowers-subagents-final-check/SKILL.md.
That closeout reconciles all spec and code-quality reviewer output from the run, applies trivial fixes where appropriate, and vom news tickets for useful follow-ups so nothing valuable is only mentioned in chat.
Skipping this step is not optional for subagent-driven runs in this repo.
The controller (main session) must not treat “Approved” or “approve with follow-ups” as permission to drop reviewer output. Feedback is only useful if it is acted on or explicitly recorded before the task is marked complete or the session moves on.
After each code quality review (including the optional final full-implementation reviewer), do this before Mark task complete in TodoWrite or before claiming the branch done:
| Reviewer severity | Required controller action |
|-------------------|----------------------------|
| Critical | Implementer fixes and reviewer re-reviews until resolved. Do not complete the task with open Critical items. |
| Important | Fix in the current task or create a tracked follow-up (e.g. VOM ticket, issue tracker, or dated note in the implementation plan). Do not silently ignore—either merge the fix into this task or point to where the debt lives. |
| Minor / suggestion | Fix if the cost is low; otherwise ensure it is captured in the end-of-run superpowers-subagents-final-check (prefer vom new per that skill). Do not treat chat-only “we’ll do it later” as sufficient. |
Minimum artifact: Per task, a short note is fine; before branch closeout, superpowers-subagents-final-check produces the durable closeout: fixed / new ticket (id) / skipped (reason).
Pair with: superpowers-subagents-final-check (required end of run) and superpowers:verification-before-completion — final checks should include “no unrecorded Important review items” and “no useful Minor/suggestion left only in transcript.”
Repo verification: Prefer bun run check (or ./scripts/check.sh) for routine passes (format, lint, typecheck, unit tests). Use bun run check-all / ./scripts/check-all.sh only when integration tests were updated or unit tests alone cannot fully validate the change—it requires Postgres and is slower.
Reviewers: The code-quality reviewer prompt instructs subagents to create VOM tickets (or output VOM ticket drafts) for Minor items and non-blocking suggestions — see code-quality-reviewer-prompt.md. The spec reviewer prompt does the same for optional, non-blocking observations — see spec-reviewer-prompt.md.
Paths are relative to this skill folder (.cursor/skills/subagent-driven-development/):
./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 once: docs/superpowers/plans/feature-plan.md]
[Extract all 5 tasks with full text and context]
[Create TodoWrite with all tasks]
Task 1: Hook installation script
[Get Task 1 text and context (already extracted)]
[Dispatch implementation subagent with full task text + context]
Implementer: "Before I begin - should the hook be installed at user or system level?"
You: "User level (~/.config/superpowers/hooks/)"
Implementer: "Got it. Implementing now..."
[Later] Implementer:
- Implemented install-hook command
- Added tests, 5/5 passing
- Self-review: Found I missed --force flag, added it
- Committed
[Dispatch spec compliance reviewer]
Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
[Get git SHAs, dispatch code quality reviewer]
Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
[Mark Task 1 complete]
Task 2: Recovery modes
[Get Task 2 text and context (already extracted)]
[Dispatch implementation subagent with full task text + context]
Implementer: [No questions, proceeds]
Implementer:
- Added verify/repair modes
- 8/8 tests passing
- Self-review: All good
- Committed
[Dispatch spec compliance reviewer]
Spec reviewer: ❌ Issues:
- Missing: Progress reporting (spec says "report every 100 items")
- Extra: Added --json flag (not requested)
[Implementer fixes issues]
Implementer: Removed --json flag, added progress reporting
[Spec reviewer reviews again]
Spec reviewer: ✅ Spec compliant now
[Dispatch code quality reviewer]
Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
[Implementer fixes]
Implementer: Extracted PROGRESS_INTERVAL constant
[Code reviewer reviews again]
Code reviewer: ✅ Approved
[Mark Task 2 complete]
...
[After all tasks]
[Dispatch final code-reviewer]
Final reviewer: All requirements met, ready to merge
[Read and run superpowers-subagents-final-check: reconcile reviewer feedback, vom new for follow-ups, report table]
Done! (then superpowers:finishing-a-development-branch)
vs. Manual execution:
vs. Executing Plans:
Efficiency gains:
Quality gates:
Cost:
Never:
If subagent asks questions:
If reviewer finds issues:
If subagent fails task:
Required workflow skills:
.cursor/skills/superpowers/superpowers-subagents-final-check/SKILL.md) - REQUIRED: run after all tasks (and after optional final branch reviewer), before superpowers:finishing-a-development-branch, to ticket reviewer follow-ups and close review debtSubagents should use:
Alternative workflow:
This repo: Pair with prisma-delegate-migrate (.cursor/skills/prisma-delegate-migrate/SKILL.md) when a task touches prisma/schema.prisma — implementer hands off bunx prisma migrate dev to the host.
testing
Guide for continuing work on a VOM ticket - reminds agents to claim and check guidance before starting.
data-ai
Move VOM tickets with state done or deleted into tickets/done or tickets/deleted to keep the main list tidy.
testing
Review recent work for friction and pain points. Create or update tickets for issues that made the agent's job harder. Focus on project-specific improvements only.
tools
Reviews, amends, and improves a VOM implementation plan for a ticket in plan-needs-review using only the vom CLI for claims, guidance, comments, and state transitions; edits plan markdown under plans/ only. Use when the user wants a plan approved (moved to plan-approved), wants plan-needs-review handled end-to-end, or invokes plan review with extra notes or constraints in the prompt.