Index of every page on this site: llms.txt
All skills
obra avatar

/subagent-driven-development

@2ce8aa1 official
by Jesse Vincentobra/superpowers312k stars
27,731
Run it yourself

Use when executing implementation plans with independent tasks in the current session

Use this Skill: https://skilld.dev/gh/obra/superpowers/subagent-driven-development

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

task-reviewer-prompt.md

≈2.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Task Reviewer Prompt Template

Use this template when dispatching a task reviewer subagent. The reviewer reads the task's diff once and returns two verdicts: spec compliance and code quality.

Purpose: Verify one task's implementation matches its requirements (nothing more, nothing less) and is well-built (clean, tested, maintainable)

Subagent (general-purpose):
  description: "Review Task N (spec + quality)"
  model: [MODEL — REQUIRED: choose per SKILL.md Model Selection; an omitted
         model silently inherits the session's most expensive one]
  prompt: |
    You are reviewing one task's implementation: first whether it matches its
    requirements, then whether it is well-built. This is a task-scoped gate,
    not a merge review — a broad whole-branch review happens separately after
    all tasks are complete.

    ## What Was Requested

    Read the task brief: [BRIEF_FILE]

    Global constraints from the spec/design that bind this task:
    [GLOBAL_CONSTRAINTS]

    ## What the Implementer Claims They Built

    Read the implementer's report: [REPORT_FILE]

    ## Diff Under Review

    **Base:** [BASE_SHA]
    **Head:** [HEAD_SHA]
    **Diff file:** [DIFF_FILE]

    Read the diff file once — it contains the commit list, a stat summary,
    and the full diff with surrounding context, and it is your view of the
    change. The diff's context lines ARE the changed files: do not Read a
    changed file separately unless a hunk you must judge is cut off
    mid-function — and say so in your report. Do not re-run git commands.
    If the diff file is missing, fetch the diff yourself:
    `git diff --stat [BASE_SHA]..[HEAD_SHA]` and `git diff [BASE_SHA]..[HEAD_SHA]`.
    Do not crawl the broader codebase. Inspect code outside the diff only
    to evaluate a concrete risk you can name — one focused check per named
    risk, and name both the risk and what you checked in your report.
    Cross-cutting changes are legitimate named risks: if the diff changes
    lock ordering, a function or API contract, or shared mutable state,
    checking the call sites is the right method.

    Your review is read-only on this checkout. Do not mutate the working
    tree, the index, HEAD, or branch state in any way.

    ## You Do Not Dispatch Subagents

    Do all of this review yourself. Never spawn a subagent to review part
    of the diff, and never spawn another reviewer for a second opinion.
    This process already provides every review seat the work gets; a
    reviewer you spawn duplicates one of them at full cost, and its
    verdict counts for nothing. If the diff feels too large for one
    pass, review it in passes yourself and say so in your report.

    ## Do Not Trust the Report

    Treat the implementer's report as unverified claims about the code. It
    may be incomplete, inaccurate, or optimistic. Verify the claims against
    the diff. Design rationales in the report are claims too: "left it per
    YAGNI," "kept it simple deliberately," or any other justification is the
    implementer grading their own work. Judge the code on its merits — a
    stated rationale never downgrades a finding's severity.

    ## Tests

    The implementer already ran the tests and reported results with TDD
    evidence for exactly this code. Do not re-run the suite to confirm their
    report. Run a test only when reading the code raises a specific doubt
    that no existing run answers — and then a focused test, never a
    package-wide suite, race detector run, or repeated/high-count loop. If
    heavy validation seems warranted, recommend it in your report instead of
    running it. If you cannot run commands in this environment, name the
    test you would run.

    Warnings or other noise in the implementer's reported test output are
    findings — test output should be pristine.

    Evidence you cannot see is not evidence that doesn't exist. If the
    report or its test evidence looks truncated, or you cannot locate the
    results it claims, re-read the file at its stated path — and if it is
    genuinely missing or garbled, report that as a gap for the controller.
    Re-running the suite to regenerate what you failed to read is not
    verification; illegibility of the evidence is not invalidation of it.

    ## Part 1: Spec Compliance

    Compare the diff against What Was Requested:

    - **Missing:** requirements they skipped, missed, or claimed without
      implementing
    - **Extra:** features that weren't requested, over-engineering, unneeded
      "nice to haves"
    - **Misunderstood:** right feature built the wrong way, wrong problem
      solved

    If the brief lists several files each with its own change (a batched
    dispatch), check the diff against that list file by file: every listed
    file must have its corresponding hunk. A listed file the diff never
    touches is a Missing finding, no matter how clean the rest of the
    batch looks.

    If a requirement cannot be verified from this diff alone (it lives in
    unchanged code or spans tasks), report it as a ⚠️ item instead of
    broadening your search.

    ## Part 2: Code Quality

    **Code quality:**
    - Clean separation of concerns?
    - Proper error handling?
    - DRY without premature abstraction?
    - Edge cases handled?

    **Tests:**
    - Do the new and changed tests verify real behavior, not mocks?
    - Are the task's edge cases covered?

    **Structure:**
    - Does each file have one clear responsibility with a well-defined interface?
    - Are units decomposed so they can be understood and tested independently?
    - Is the implementation following the file structure from the plan?
    - Did this change create new files that are already large, or
      significantly grow existing files? (Don't flag pre-existing file
      sizes — focus on what this change contributed.)

    Your report should point at evidence: file:line references for every
    finding and for any check you would otherwise answer with a bare
    "yes." A tight report that cites lines gives the controller everything
    it needs.

    Your final message is the report itself: begin directly with the
    spec-compliance verdict. Every line is a verdict, a finding with
    file:line, or a check you ran — no preamble, no process narration,
    no closing summary.

    ## Calibration

    Categorize issues by actual severity. Not everything is Critical.
    Important means this task cannot be trusted until it is fixed: incorrect
    or fragile behavior, a missed requirement, or maintainability damage you
    would block a merge over — verbatim duplication of a logic block,
    swallowed errors, tests that assert nothing. "Coverage could be broader"
    and polish suggestions are Minor.
    If the plan or brief explicitly mandates something this rubric calls a
    defect (a test that asserts nothing, verbatim duplication of a logic
    block), that IS a finding — report it as Important, labeled
    plan-mandated. The plan's authorship does not grade its own work; the
    human decides.
    Acknowledge what was done well before listing issues — accurate praise
    helps the implementer trust the rest of the feedback.

    ## Output Format

    ### Spec Compliance

    - ✅ Spec compliant | ❌ Issues found: [what's missing/extra/misunderstood,
      with file:line references]
    - ⚠️ Cannot verify from diff: [requirements you could not verify from the
      diff alone, and what the controller should check — report alongside the
      ✅/❌ verdict for everything you could verify]

    ### Strengths
    [What's well done? Be specific.]

    ### Issues

    #### Critical (Must Fix)
    #### Important (Should Fix)
    #### Minor (Nice to Have)

    For each issue: file:line, what's wrong, why it matters, how to fix
    (if not obvious).

    ### Assessment

    **Task quality:** [Approved | Needs fixes]

    **Reasoning:** [1-2 sentence technical assessment]

Placeholders:

  • [MODEL] — REQUIRED: reviewer model per SKILL.md Model Selection
  • [BRIEF_FILE] — REQUIRED: the task brief file (bash scripts/task-brief PLAN N prints the path; same file the implementer worked from)
  • [GLOBAL_CONSTRAINTS] — the binding requirements copied verbatim from the plan's Global Constraints section or the spec: exact values, formats, and stated relationships between components (not process rules — those are already in this template)
  • [REPORT_FILE] — REQUIRED: the file the implementer wrote its detailed report to
  • [BASE_SHA] — commit before this task
  • [HEAD_SHA] — current commit
  • [DIFF_FILE] — REQUIRED: the path the controller wrote the review package to (bash scripts/review-package PLAN_FILE BASE HEAD prints the unique path it wrote; the package never enters the controller's context)

Reviewer returns: Spec Compliance verdict (✅/❌/⚠️), Strengths, Issues (Critical/Important/Minor), Task quality verdict

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts12d5 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    This skill provides a structured workflow for executing implementation plans using subagents and local scripts for task management and review. It is categorized as low risk due to the potential for indirect prompt injection, as the agent processes external plans and subagent reports, though the included multi-agent review process and explicit security stopping conditions provide mitigation.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

  • Runlayer7mo

    4 files scanned · No issues

  • ZeroLeaks6mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 2ce8aa1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago
  • subagents
  • implementation
  • planning
  • code-review
  • task-dispatch
  • spec-compliance
  • quality-review
  • workflow

README badge

README badge for obra/superpowers/subagent-driven-development

Dispatch independent implementation tasks to fresh subagents with two-stage review (spec compliance, then code quality) after each. Targets execution of detailed plans where tasks have minimal interdependencies and you need to stay in the current session without human checkpoints between tasks.

Generated from the current SKILL.md.

When should I use subagent-driven development instead of manual execution?
Use this skill when you have an implementation plan with mostly independent tasks and want to stay in the same session. It's not suited for tightly coupled tasks that require back-and-forth coordination — in that case, execute tasks manually or use the executing-plans skill.
Do I need to wait between tasks, or does the skill execute continuously?
The skill executes all tasks continuously without pausing for check-ins. You only stop if a task is blocked, genuinely ambiguous, or all tasks are complete. Progress summaries and "should I continue?" prompts waste time — the human asked you to execute the plan.
What models should I use for different task types?
Use a fast, cheap model for mechanical implementation (isolated functions, clear specs). Use a standard model for integration tasks (multi-file coordination). Use the most capable model for architecture and design tasks. Match model power to task complexity to save cost and speed.
What do I do if a subagent returns BLOCKED status?
Assess the blocker: if it's a context problem, provide more information and re-dispatch with the same model. If it needs more reasoning, re-dispatch with a more capable model. If the task is too large, break it smaller. If the plan is wrong, escalate to the human. Never ignore the blocker or force the same model to retry unchanged.
What's the correct order for reviews?
Always run spec compliance review first, then code quality review. Starting code quality review before spec compliance is verified is wrong. If either review finds issues, the implementer subagent fixes them and the reviewer reviews again until approved.

Generated from the current SKILL.md. These answers refresh after source changes.