agentleFS
sebas8824sebas8824/sdd-harness/.claude/skills/subagent-driven-development/SKILL.md

subagent-driven-development

Skill1 starsChanged 3 months agoMITView on GitHub

Use when executing an approved implementation plan task by task — selects the smallest risk-matched review pipeline, and governs how findings are verified, fixed, and closed.

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 19 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 5 projects that use this

  • math-incSkill

    pokemon-player

    Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.

    Also in 5 projects that use this

  • +3 more from Leodorareluctant259
  • +2 more from math-inc

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before acting on any reviewer finding, verify it against the source.

    line 20
  2. Distinctive:

    When a confirmed finding may repeat across comparable artifacts, classify it as cross-cutting and scan the full comparable population …

    line 32
  3. Very specific:

    No row permits zero reviewers: If the surface has no matching specialist, fall back to code-reviewer — never read a missing specialist as …

    line 45
  4. Distinctive:

    Every implementation PR still needs independent review.

    line 48
  5. Very specific:

    Use the configured roles in .claude/agents/.

    line 52
  6. Distinctive:

    Check the source; report back when the finding is wrong rather than "fixing" it.

    line 92

“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Subagent-Driven Development

Execute planned work with the repository's configured reviewer roles. Select the smallest review pipeline that covers the task's risk; agent count is not itself a quality metric.

This skill is project-owned. The reviewer roles in .claude/agents/ are the source of review policy, and harnesses without subagents read that directory as portable role prompts. Lifting this skill into another repository is a manual pass that re-points those references.

Core principle: one writer at a time + independent, risk-matched review after a stable implementation = high quality without duplicate context loading or repeated verification.

Evidence and review selection (mandatory)

Before acting on any reviewer finding, verify it against the source. A finding whose test still passes with the alleged bug is itself a finding about test coverage, not proof that the code is wrong.

Fix the problem the reviewer found, not the remedy they proposed. A finding's diagnosis is usually right and its prescribed scope usually is not. Restate the failure in your own words, then choose the narrowest change that removes it — a remedy applied wider than the problem trades one defect for another, and the second one arrives with a passing test. Typical shape: a reviewer correctly finds stale state outliving the condition that produced it and proposes clearing it on the next success; clearing on every success then lets unrelated concurrent work erase that state before it is read. What satisfies both is scoping the state to whatever produced it. A fix for a finding is still a fix — it owes the same red-green proof as any other change.

When a confirmed finding may repeat across comparable artifacts, classify it as cross-cutting and scan the full comparable population before closing it. Record the scan predicate and whether every match was fixed, deferred with a target, or intentionally excluded with a reason; a comment anchor is not the scope boundary.

Classify the task before selecting reviewers:

Task riskRequired workflow
Narrow, local UI/client/docs change with no security, persistence, public-contract, or cross-module effectOne implementation pass; targeted checks; one independent configured reviewer matched to the surface.
A change confined to one module in the primary languageOne implementation pass; targeted checks; principal-engineer review. Add code-reviewer when it also affects a public boundary or a non-language concern.
Security/auth, public API or contract, persistence/migration, tenancy, concurrency, cross-module architecture, or a broad refactorOne implementation pass; targeted checks; the relevant configured quality reviewers, security-engineer included. Use code-reviewer in spec-compliance mode when broad or ambiguous acceptance criteria make a separate pass useful.

No row permits zero reviewers. If the surface has no matching specialist, fall back to code-reviewer — never read a missing specialist as licence to skip the review.

Every implementation PR still needs independent review. A finding that changes behavior must have a focused re-review and a test that fails without the fix. Do not re-run the complete pipeline for documentation-only or mechanical follow-ups unless their scope changed.

Use the configured roles in .claude/agents/; do not invent a reviewer role. Give each selected agent the exact task, the applicable invariants, the diff base, and the verification evidence.

When to use

flowchart TD
    plan{Approved implementation plan?}
    independent{Tasks mostly independent?}
    sameSession{Stay in this session?}
    sdd[Use subagent-driven-development]
    worktree[Use a separate worktree or session per strand]
    manual[Plan or brainstorm first]

    plan -->|yes| independent
    plan -->|no| manual
    independent -->|yes| sameSession
    independent -->|no — tightly coupled| manual
    sameSession -->|yes| sdd
    sameSession -->|no — parallel session| worktree

The loop, per task

  1. Implement one task from the plan. One writer, no parallel edits to the same surface.
  2. Focused checks — the narrowest commands that prove this task. Not the full gate yet.
  3. Review — one independent, risk-matched role, given the diff base and the invariants.
  4. Fix — verified findings only, narrowest change, red-green proof, focused re-review if behaviour moved.
  5. Commit — one isolated commit, message referencing ADR-NNNN where a sensitive path is touched.

Then the next task. The full clean gate runs once, in the last task, along with the record: ADR, roadmap tick, DEFERRED.md rows, regenerated contracts.

Anti-patterns

  • Reviewing an unstable implementation. Findings land on code that is about to change; the pass is wasted and the second pass is treated as optional.
  • Adding reviewers to feel safer. Three roles reporting the same finding is three contexts loaded for one defect. Match the role to the surface.
  • Acting on a finding without verifying it. Reviewers report plausible defects that do not exist. Check the source; report back when the finding is wrong rather than "fixing" it.
  • Closing a cross-cutting finding at its anchor. The comment marks where it was noticed, not where it stops.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.