/dmi-superpowers:subagent-driven-developmentfrom dmi-superpowers
Use when executing a written implementation plan (TSP) whose tasks are independent, in the current session. For ad-hoc fan-out with no plan behind it, use dispatching-parallel-agents instead.
Ships in dmi-superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Execute TSP by dispatching a fresh implementer subagent per task, a task review (spec compliance + code quality) after each, and a broad whole-branch review at the end.
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 + task review (spec + quality) + broad final review = high quality, fast iteration
See examples.md for narration-style guidance.
Continuous execution: Do not pause to check in with your human partner between tasks. Execute all tasks from the TSP without stopping. The only reasons to stop are: BLOCKED status you cannot resolve, ambiguity that genuinely prevents progress, or all tasks complete. "Should I continue?" prompts and progress summaries waste their time — they asked you to execute the TSP, so execute it.
See examples.md for the decision diagram on when to use this skill vs. executing-plans vs. manual execution.
See examples.md for the full per-task workflow diagram.
See examples.md for the Pre-Flight TSP Review scan-for-conflicts step.
See examples.md for model-tier selection guidance across implementer and reviewer roles.
Resolve SDD_SCRIPTS to this installed skill's absolute scripts directory.
Run helpers from the target worktree, not the plugin directory: they use
the current Git repository to locate the plan's records. Resolve PLAN_FILE
against that target worktree.
Implementer subagents report one of four statuses. Handle each appropriately:
DONE: Generate the review package (bash "$SDD_SCRIPTS/review-package" PLAN_FILE BASE HEAD — stdout is the file path; BASE is the commit you recorded before dispatching the implementer — never HEAD~1, which silently drops all but the last commit of a multi-commit task), then dispatch the task reviewer with that path. A rejected range is a finding to investigate, not a clean review.
See examples.md for handling DONE_WITH_CONCERNS.
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.
The task reviewer may report "⚠️ Cannot verify from diff" items — requirements that live in unchanged code or span tasks. These do not block the rest of the review, but you must resolve each one yourself before marking the task complete: you hold the TSP and cross-task context the reviewer lacks. If you confirm an item is a real gap, treat it as a failed spec review — send it back to the implementer and re-review.
Keep the implementer's identity in the plan ledger. A fix round is one repair and its re-review. Resume that implementer with the open findings and named covering tests; when resuming is unavailable, give a fresh worker the task brief, existing report, and findings. A worker that is stuck needs new context, a smaller task, or a capability escalation, not the same request repeated.
Record FIX_BASE as the revision the reviewer last saw. Review the new
FIX_BASE..HEAD package against the open findings and check for breakage caused
by the fix, including affected callers. Carry unrelated observations to the
final review; do not reopen unchanged code as a new full task review. Existing
test evidence for unchanged code remains usable; changed code needs new evidence.
After each round, record:
Task N: fix round R/3 | commits | addressed findings | open findings | test evidence
After three unsuccessful rounds, stop automatic fix dispatches. Keep the task blocked/incomplete, record the remaining findings and attempted fixes, and present the next proposed approach to your human partner. Resume only with a resolved blocker or a new agreed approach; record that decision before a new bounded attempt. A retry limit never makes an unresolved Critical/Important finding complete, and dependent tasks stay blocked. Minor observations are recorded for final review rather than extending this loop.
Apply the same bound to final-review repairs, grouping substantive findings into one fix dispatch per round. Preserve every unresolved finding in the handoff; do not present the branch as ready to merge while any remain.
Per-task reviews are task-scoped gates. The broad review happens once, at the final whole-branch review. When you fill a reviewer template:
bash "$SDD_SCRIPTS/review-package" PLAN_FILE BASE HEAD and pass the reviewer the file path
it prints (or, without bash: git log --oneline, git diff --stat,
and git diff -U10 for the range, redirected to one uniquely named
file). The output never enters your own context, and the reviewer sees
the commit list, stat summary, and full diff with context in one Read
call. Use the BASE you recorded before dispatching the implementer —
never HEAD~1, which silently truncates multi-commit tasks.bash "$SDD_SCRIPTS/review-package" PLAN_FILE MERGE_BASE HEAD (MERGE_BASE = the commit the
branch started from, e.g. git merge-base main HEAD) and include the
printed path in the final review dispatch, so the final reviewer reads
one file instead of re-deriving the branch diff with git commands.See examples.md for why artifacts are handed over as files rather than pasted. Hand artifacts over as files:
bash "$SDD_SCRIPTS/task-brief" PLAN_FILE N — it extracts the task's full text to a
uniquely named file and prints the path. Compose the dispatch so the
brief stays the single source of requirements. Your dispatch should
contain: (1) one line on where this task fits in the project; (2) the
brief path, introduced as "read this first — it is your requirements,
with the exact values to use verbatim"; (3) interfaces and decisions
from earlier tasks that the brief cannot know; (4) your resolution of
any ambiguity you noticed in the brief; (5) the report-file path and
report contract. Exact values (numbers, magic strings, signatures, test
cases) appear only in the brief.Conversation memory does not survive compaction. In real sessions, controllers that lost their place have re-dispatched entire completed task sequences — the single most expensive failure observed. Track progress in a ledger file, not only in todos.
bash "$SDD_SCRIPTS/sdd-workspace" PLAN_FILE from the
target worktree. Its stdout is this plan's workspace path. Read the plan-path
identity there and use only <workspace>/progress.md; other plans and the
old shared .superpowers/sdd/progress.md are not this plan's record.Task N: complete (commits <base7>..<head7>, review clean).git log over your own recollection.git clean -fdx will destroy the ledger (it's git-ignored scratch); if
that happens, recover from git log.See examples.md for a full worked example of two tasks executed end-to-end.
See examples.md for the rationale vs. manual execution and vs. Executing Plans, efficiency gains, quality gates, and cost.
Never:
scripts/task-brief — instead)bash "$SDD_SCRIPTS/review-package" PLAN_FILE BASE HEAD) and name the printed path in the
promptgit log) after any compaction or resumeIf subagent asks questions:
If reviewer finds issues:
If subagent fails task:
See examples.md for related-skill cross-references (required workflow skills, subagent skills, and the alternative executing-plans workflow).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hundredbillion/dmi_superpowers --plugin dmi-superpowers30 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./creating-a-pull-requestUse when opening, creating, or writing a pull request, pushing a branch for review, or running gh pr create - covers the PR title, body, and evidence so the description reads for both a non-developer and a developer.