subagent-driven-development
Skill1 starsChanged 4 months agoMITView on GitHub
Runs an approved plan's tasks through fresh subagents: one implementer per task, a reviewer on its diff, and a bounded fix loop, with the controller keeping every decision. Use when an approved plan is about to be built by dispatched workers rather than in this session, when the user asks for subagents or workers to do the building, or when the user replies choosing delegated mode. Skip a lone task with no plan directory.
153 other projects use a version of this.
Adopted by
Most recently taken up by
- LayneChai/superpowers-dshtheir own version, first seen Oct 3, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- lsy041015/orchestratheir own version, first seen Oct 2, 2026
- Wenaixi/dsh-superpowertheir own version, first seen Oct 1, 2026
Used with
Projects with it also use diagnosing-superpowers, workflow-runner and 9 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.
obraSkilldiagnosing-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 6 projects that use this
MorningStar0709Skillworkflow-runner
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
Also in 5 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 4 projects that use this
AlexAI-MCPSkillnative-mcp
MCP server integration in Claude Code — add servers to .mcp.json, configure transports, and use their tools natively.
Also in 5 projects that use this
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
- +1 more from shibit-net
Other versions153 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 153
- obra/superpowers★ 314ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- openai/plugins★ 7.3ksame name
- NeoLabHQ/context-engineering-kit★ 1.7ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- coco-research/coco★ 437same name
- Ibrahim-3d/orchestrator-supaconductor★ 380same name
- graniet/kheish★ 221same name
- KbWen/agentic-os★ 206same name
- totvs/engpro-advpl-tlpp-skills★ 138same name
143 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- writing-specsSkill
- clarifying-intentSkill
- dispatching-parallel-agentsSkill
- handoffSkill
- mapping-the-codebaseSkill
- prototypingSkill
- using-git-worktreesSkill
- using-sdlc-skillsSkill
- viewing-artifactsSkill
- writing-skillsSkill
- yagniSkill
- finishing-a-branchSkill
- release-readinessSkill
- architecture-decisionsSkill
- coding-standardsSkill
- data-modelSkill
- migration-strategySkill
- reviewing-plansSkill
- system-architectureSkill
- ui-ux-designSkill
- writing-plansSkill
- executing-plansSkill
- test-driven-developmentSkill
- complexity-auditSkill
- containing-an-incidentSkill
- debuggingSkill
- diagnosing-a-sessionSkill
- post-mortemSkill
- refactor-architectureSkill
- define-goalsSkill
- feasibility-checkSkill
- scopingSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-auditsSkill
- verification-before-completionSkill
- verification-strategySkill
- visual-ui-verificationSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 145 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Run bash scripts/plan-version.sh on the plan directory before reading the External decision ledger, a ledger (append-only).
- Distinctive: line 42
No such row, a later row closed the version, or the script fails → stop and name the missing version, the row that closed it, or the …
- Very specific: line 45
No mode in that row → ask assets/mode-question.md before any workspace action, and stop.
- Very specific: line 74
Check the plan contract before the first dispatch: every Consumes names an earlier task's exact Produces.
- Very specific: line 86
Read Integration cadence: plan end (default) or per task.
- Very specific: line 126
Write the dispatch row before dispatching: task ID, attempt, base revision, evaluator identity, tier.
- Very specific: line 148
Read the diff yourself against the task, then REQUIRED SUB-SKILL: invoke verification-before-completion on the result revision: the task's …
“Common” is measured: kept by at least 6 in 10 of the 145 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.
Files
Subagent-Driven Development
You are the controller. Fresh workers build and review one task, or one approved wave, at a time; you hold the plan, the ledger, and every decision they may not take. This skill never decides what happens to the branch.
When to use
- An approved plan is about to be built by dispatched workers rather than here: the user asked for workers, or answered the execution-mode question with delegated.
- Skip building the tasks in this session —
executing-plansowns that — and a lone task with no plan directory. - Skip a plan whose index holds phases or shards: its queues, leases, and
capacity envelope run inline through
executing-plans, never through a slim brief. Its row says delegated → Step 1.5 first.
Available scripts
scripts/plan-version.sh— prints the plan's version.scripts/sdd-workspace.sh— opens the plan-scoped ledger and re-checks that it still binds to the plan. Run it before the first dispatch, and again after every compaction.scripts/task-brief.sh— renders a role brief from a task file, and refuses one with a script slot left unfilled. Run it for every dispatch.scripts/review-package.sh— assembles one task's diff and file list for a reviewer. Run it when an implementer reports.
Step 1: Verify approval and mode
- Run
bash scripts/plan-version.shon the plan directory before reading theExternal decision ledger, a ledger (append-only). Read every row for this index whoseIdentityis the printed version, in ledger order. The last of them must be the row whoseBound evidencenames theApproval ruleowner's approval; a later row that rejects, cancels, or supersedes this version closes it. The index cannot approve itself. - No such row, a later row closed the version, or the script fails → stop and name the missing version, the row that closed it, or the script's error; never substitute a version read from the index.
- No mode in that row → ask
assets/mode-question.mdbefore any workspace action, and stop. A request for workers made before approval is not the answer; rendering the question collects it. mode: inlinein that row → stop;executing-plansowns it, and only the user's direct answer changes the mode.mode: delegatedon an index with phases or shards → this skill cannot run it andexecuting-planswill not: ask theApproval ruleowner for a direct inline answer, append it as a new approved row for this version in the shapewriting-plansStep 4.5 gives, withmode: inline, and stop. The last row's mode is the one 1.1 reads.
Step 2: Open the run
- Record the approved plan directory by absolute path; read the plan only there.
- REQUIRED SUB-SKILL: invoke
using-git-worktrees. One worktree holds the whole plan; a worker writes inside it, or inside the wave worktree the controller cut for it from that worktree's HEAD. Never hand a worker the shared checkout. Open the ledger:
bash scripts/sdd-workspace.sh --plan {{plan-dir}}Line 1 is the plan's identity. After a compaction, read the ledger before anything else and re-check it with
--check: the ledger, not your memory of the conversation, is where the run resumes. It is this run's execution ledger; the decision ledger stays where the index points.- Check the plan contract before the first dispatch: every
Consumesnames an earlier task's exactProduces; everyDepends onnames a task that is not cancelled; no task edits its own judge unless its approvedEvaluator identity/ownerpermits the exact change;Implementation disciplinesis filled; a UI task'sApplicable visual referencesmatch the index'sSelected visual referencesfield for field, and each freshness evaluator runs now. Any failure → report the field and task; dispatch nothing under an invalid contract. - High-risk task: blocked until its migration and assurance contracts are approved and their entry gates passed. Report it; dispatch nothing for it.
- Scan for conflicts. List the files each task claims, and write every pair claiming the same file into the ledger as an ordering.
- Read
Integration cadence:plan end(default) orper task. It decides Step 5.6.
Step 3: Rule, don't stall
A worker that asks a question gets an answer and a ledger row, not a pause. Stop and ask the user only when the next act would be:
- irreversible — data, history, or something already published;
- security-sensitive — secrets, credentials, permissions, a trust boundary;
- effective outside the worktree;
- or the plan is broken on every path you can see, not merely the first one.
Everything else is a ruling. Write it in the ledger with its reason and carry it into the next brief, so the next worker inherits the decision instead of re-litigating it. A change to what was approved — scope, interface, evaluator, ownership, mode — is never a ruling: write the proposed successor, ask for reapproval, end the turn.
Step 4: Dispatch one task
- Take the next task whose dependencies are done.
waves: yeson the approval row → take every ready task that passes the independence test ofdispatching-parallel-agentsStep 1. Before each dispatch row, cut that task a branch and worktree from the plan worktree's HEAD yourself under the plan worktree's commit authority;using-git-worktreesrun by the worker would reuse yours. Dispatch them together through its Step 2; sequence a failing pair. - Batch tasks into one dispatch only when they are small and the same shape — same kind of file, same act.
- Fill
assets/implementer.mdwhen dispatching an implementer — every input a file path the worker opens for itself, the task contract pasted and nothing else — rendering it withbash scripts/task-brief.sh, which insertsassets/implementer-report.mdbefore dispatch. - Set the tier explicitly, from the Model selection table in
dispatching-parallel-agents. - Bind the role to a runtime: where the harness exposes a named agent whose contract covers the role, dispatch that agent with the role brief; otherwise dispatch a general subagent with the role prompt. Name mappings belong in the adapters, never here.
- Write the dispatch row before dispatching: task ID, attempt, base
revision, evaluator identity, tier. Then dispatch per
dispatching-parallel-agentsStep 2 — it owns the receipt, the not-dispatched rule, and cancellation.
Step 5: Review the diff, then fix
- Build the package with
bash scripts/review-package.sh, then fillassets/task-reviewer.mdwhen the implementer reports, rendering it withbash scripts/task-brief.sh, which insertsassets/task-reviewer-report.mdbefore dispatch. - Findings open a fix round. Rounds 1 to 3 go back to the same implementer, which still holds the task. Rounds 4 and 5 go to a fresh implementer one tier up, briefed from the findings file — it has read nothing.
- Fill
assets/re-reviewer.mdwhen a fix round returns, so the second look judges the fix and its blast radius rather than the task again, rendering it withbash scripts/task-brief.sh, which insertsassets/re-reviewer-report.mdbefore dispatch. - Five rounds without convergence trips the breaker. Stop dispatching, write the adjudication in the ledger — the finding, what each round changed, why it did not converge — and then either decide it yourself under Step 3 or hand the user that row. Never open a sixth round.
- Read the diff yourself against the task, then REQUIRED SUB-SKILL: invoke
verification-before-completionon the result revision: the task'sEvaluator, everyVCONFrow,visual-ui-verificationfor an integrated UI. A wave: once every unblocked wave diff has passed 5.1 to 5.4, merge those branches into the plan worktree (a blocked task's stays out) and run this on the merged HEAD before any wave task isdone; a red merged gate opens a fix round in the plan worktree on the task it names, then merge and gate again; the wave worktrees and branches are task-owned resources in the workspace record forfinishing-a-branch. Then record its state: done, done with concerns, blocked, or needs context. Mirror only the task row's checkbox and adjacent label. Do not change the index'sStatusheader or normalize it out of the plan's identity. per taskcadence only — REQUIRED SUB-SKILLS: invokerequesting-code-reviewon this task's revision, thenfinishing-a-branch. Return after it records its decision.- Go to Step 4 with the next ready task. Do not report, ask, or pause at
done. Every taskdone, orcancelled/supersededwith its approved ledger decision → Step 6. No ready task can advance, or a high-risk entry gate has not passed → report the unresolved states and their blockers, end the turn.
Step 6: Finish the plan
In the worktree from Step 2, in order:
- REQUIRED SUB-SKILL: invoke
verification-before-completionon the integrated revision (per task: the base after the last integration): the index'sAcceptancecheck plus every done task's evaluator. Worker reports are claims; this is the evidence. - REQUIRED SUB-SKILL: invoke
requesting-code-reviewon the whole branch, once, and let it drive a single fix wave. - REQUIRED SUB-SKILL: invoke
finishing-a-branchwith the workspace record from Step 2. It asks the integration question and executes the answer. Run no push, PR, merge, or delete here. - Close with "Rulings I made": every ruling in the ledger, one line each.
| Thought | Reality |
| "Every worker returned DONE, so the plan is done" | DONE is a claim per task. The plan is done after Acceptance, review, and the integration decision — three skills you have not invoked yet. |
| "The reviewer subagent passed it, so review is covered" | That reviewed one task's diff against its contract. The branch review is a separate gate on the integrated state. |
Gotchas
- A worker's status is not a verdict on the task — reproduced whenever a
DONEarrives with a diff that edits a file the brief never named. Read the diff yourself; that is what Step 5.5 is for. - A fresh implementer in round 4 has read nothing. "Fix the findings" names a file it does not have; give it the findings path and the task path.
- A worker that dispatches its own workers returns a diff nobody reconciled and receipts you never held. Every brief here prohibits subdispatch; keep it.
- The controller never edits, so
test-driven-developmentandyagniload in the implementer, where the brief requires them; loading them here proves nothing about the worker's session.
Stopping and resuming
- Remaining work will not fit this session: finish the current ledger row,
then invoke
handoff. - On resume, rerun
bash scripts/plan-version.shand re-read the latest decision ledger row for the printed version before--checkon the run ledger: the run ledger detects an amended plan, not a row that closed the version.
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
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.

