subagent-driven-development
Skill18 starsChanged 7 months agoMITView on GitHub
Use when you need to execute a written implementation plan in the current conversation by assigning mostly independent tasks to fresh implementation-capable subagents with two-stage reviews, including Chinese requests such as “每个任务派子代理做”“子代理驱动开发”“按任务拆给子代理实现”. Do not use when the environment lacks real implementation-capable subagents, the tasks are tightly coupled, or executing-plans is the safer path.
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, native-mcp and 8 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
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
braxtonROSE4Skillfind-nearby
Find nearby places (restaurants, cafes, bars, pharmacies, etc.) using OpenStreetMap. Works with coordinates, addresses, cities, zip codes, or Telegram location pins. No API keys needed.
Also in 3 projects that use this
c-reichertSkillfinishing-a-branch
Use when implementation is complete and all tests pass — guides branch completion by presenting structured options for merge, PR, or cleanup.
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 repository37 other files it gives its agents.
- a11y-debuggingSkill
- agent-blueprint-architectSkill
- brainstormingSkill
- chart-visualizationSkill
- chinese-copywritingSkill
- chinese-git-workflowSkill
- chrome-devtoolsSkill
- creating-trae-rulesSkill
- debug-optimize-lcpSkill
- discovering-subagent-capabilitiesSkill
- dispatching-parallel-agentsSkill
- everything-searchSkill
- executing-plansSkill
- find-docsSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- gh-cliSkill
- git-commitSkill
- image-manipulation-python-magickSkill
- memory-kernelSkill
- memory-leak-debuggingSkill
- mineru-to-mdSkill
- model-config-lookupSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- self-improvementSkill
- skill-creatorSkill
- skill-language-policySkill
- skill-stability-reviewSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- troubleshootingSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- visual-brainstormingSkill
- workflow-runnerSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. 0 are common, 13 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 145 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use a fresh subagent for each task to avoid context pollution.
- Distinctive: line 15
If any review fails, the implementation subagent must fix the issue before re-review.
- Very specific: line 17
Use this skill only if the current environment genuinely supports implementation-capable subagents (can read context, edit code, run …
- Very specific: line 46
No written plan: Do not schedule subagents.
- Very specific: line 47
Cannot confirm implementation subagents exist: Use discovering-subagent-capabilities to check the subagent_type enum.
- Very specific: line 48
Tasks lack independence: Stop the subagent approach, explain why, and fallback to executing-plans.
- Distinctive: line 57
Read the plan, extracting the full task text, dependencies, and local context for each task.
- Very specific: line 58
Create a TodoWrite list, advancing only one task at a time.
- Distinctive: line 60
If any step fails, return to the corresponding fix step.
- Very specific: line 61
After all tasks are completed, run verification-before-completion to independently verify the delivery before summarizing and wrapping up.
- Very specific: line 63
If the environment requirements are not met during execution or task independence was misjudged, stop the subagent path immediately and …
- Very specific: line 67
Every task must follow this fixed loop.
- Very specific: line 78
If NEEDS_CONTEXT -> gather the missing context and fire a new Task with the original task + supplementary context.
- Distinctive: line 79
If the implementation phase is ready, the controller performs a two-stage self-review: spec compliance first, then code quality.
- Very specific: line 81
Only after both passes pass can the task be marked completed in TodoWrite.
- Very specific: line 84
Only one task can be in_progress at a time.
- Distinctive: line 85
Only one implementation subagent handles the current task at a time.
- Very specific: line 98
Do not ignore NEEDS_CONTEXT or BLOCKED.
- Distinctive: line 99
Do not blindly retry the same task without changes.
- Distinctive: line 100
If the issue is missing context, supply it and re-dispatch.
- Distinctive: line 101
If the task is too large or the plan has gaps, split or fix the plan before continuing.
- Very specific: line 102
If the task repeatedly fails, context bloats endlessly, or the loop cannot close stably, stop this skill and switch to executing-plans.
- Distinctive: line 117
After each task, the controller must hold this structured information:
- Distinctive: line 154
If execution is incomplete, do not use "子代理驱动执行已完成。" to mask the state.
- Distinctive: line 160
Spec Review Fails: After the implementer fixes it, it must undergo spec review again.
- Distinctive: line 161
Code Quality Review Fails: After the implementer fixes it, it must undergo code quality review again.
- Very specific: line 162
Repeated Task Failures or Context Bloat: Stop the subagent path, explain the situation to the user, invoke self-improvement to record why …
“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
Overview
Execute a plan by assigning a fresh implementation-capable subagent for each task, enforcing a two-stage review after every task: first checking spec compliance, then code quality.
Three core principles:
- Use a fresh subagent for each task to avoid context pollution.
- Advance only one task at a time; do not dispatch implementation work in parallel.
- If any review fails, the implementation subagent must fix the issue before re-review.
Use this skill only if the current environment genuinely supports implementation-capable subagents (can read context, edit code, run validations, and return results). Otherwise, fallback to executing-plans.
Use This Skill
- A written implementation plan exists, and tasks are mostly independent.
- The current environment supports subagents capable of implementing code safely through an "implement -> review -> fix" loop.
- You want to reduce cross-task pollution via context isolation and enforce two-stage review gates.
Do Not Use
- Requirements are still fuzzy or no written plan exists; use
brainstormingorwriting-plansfirst. - The current environment only has search/review subagents, lacking true implementation subagents.
- Tasks are tightly coupled and require continuous shared context; inline sequential execution is safer, so switch to
executing-plans.
Input Contract
Required inputs:
- A readable written implementation plan.
- A task list clear enough to judge boundaries and independence.
- Confirmation that implementation-capable subagents exist in the current environment.
Optional but highly recommended inputs:
- Plan file path.
- Current branch or workspace context.
- Architectural context, dependencies, and constraints relevant to each task.
- Whether the user requires commits after tasks are completed.
- Context Payload from upstream skill (e.g.,
writing-plans,systematic-debugging): When handed off from an upstream skill, read the[Context Payload]block from the conversation. Distribute relevant fields (e.g.,Affected Components,Residual Risk,Fix Guidance) into each task's context before dispatching to subagents.
Missing input handling:
- No written plan: Do not schedule subagents; switch to
writing-plans. - Cannot confirm implementation subagents exist: Use
discovering-subagent-capabilitiesto check thesubagent_typeenum. If no implementation-capable subagent is listed, do not risk it; fallback toexecuting-plans. - Tasks lack independence: Stop the subagent approach, explain why, and fallback to
executing-plans. - Missing local context but tasks are fixable: Supply the context first, then dispatch. Do not force the implementer to blindly read the entire plan file.
Execution Protocol
Execute in the following order without skipping steps:
- Pre-flight: Discover Available Subagents: Use
discovering-subagent-capabilitiesto read the Task tool'ssubagent_typeenum. Read each subagent's description and match against the implementation needs (e.g., code writing, code review, MATLAB execution). The enum is dynamic — do not assume a fixed set of agent names. If no implementation-capable subagent is available, fallback toexecuting-plansimmediately. - Confirm the environment supports implementation subagents and tasks are mostly independent.
- Read the plan, extracting the full task text, dependencies, and local context for each task.
- Create a
TodoWritelist, advancing only one task at a time. - For the current task, run the fixed loop: implement -> spec review -> code quality review.
- If any step fails, return to the corresponding fix step. Do not carry unresolved issues into the next task.
- After all tasks are completed, run
verification-before-completionto independently verify the delivery before summarizing and wrapping up. The verification must include re-running tests and reviewing the actual diff — do not solely rely on the subagent's verbal report.
If the environment requirements are not met during execution or task independence was misjudged, stop the subagent path immediately and fallback to executing-plans.
Single Task Loop
Every task must follow this fixed loop. Each iteration dispatches a fresh Task call — subagents are stateless and cannot be re-queried mid-conversation. The full instruction must be in the query parameter each time.
Fast-Track Assessment (T-Shirt Sizing):
- Low Risk (S): Pure documentation, simple style tweaks, or single-line isolated fixes.
- Fast-Track Flow: Implementer works -> Controller does a combined quick self-review -> Validate -> Done. (Skip independent Spec/Quality reviewer agents).
- Normal Risk (M/L): Feature logic, cross-file changes, or architectural updates.
- Standard Flow: Implementer -> Controller self-review (spec compliance first, then code quality) -> Validate -> Done.
Standard Flow Steps:
- Dispatch implementer: Fire a single
Taskcall withsubagent_typematching the implementation need. Thedescriptionshould be a short label (3-5 chars), thequerymust contain the full task text and all necessary context. The subagent returns exactly once — you cannot follow up with additional questions. - Receive result: The implementation subagent returns a structured state (
DONE,DONE_WITH_CONCERNS,NEEDS_CONTEXT,BLOCKED). - If
NEEDS_CONTEXT-> gather the missing context and fire a newTaskwith the original task + supplementary context. - If the implementation phase is ready, the controller performs a two-stage self-review: spec compliance first, then code quality.
- Spec compliance and code quality are reviewed sequentially by the same controller — these are two distinct review passes, not two independent reviewers.
- Only after both passes pass can the task be marked completed in
TodoWrite.
Sequential constraints:
- Only one task can be
in_progressat a time. - Only one implementation subagent handles the current task at a time.
- Code quality review cannot start before spec review passes.
- Cannot advance to the next task if any review has unresolved issues.
State and Block Rules
The implementer is only allowed to return four states:
DONE: Implementation complete, ready for spec review.DONE_WITH_CONCERNS: Implementation complete but with concerns. Read the concerns before deciding whether to proceed to spec review.NEEDS_CONTEXT: Missing context. Gather the context and re-dispatch the current task.BLOCKED: Task cannot continue. Must alter context, split the task, upgrade capabilities, or fallback.
Handling rules:
- Do not ignore
NEEDS_CONTEXTorBLOCKED. - Do not blindly retry the same task without changes.
- If the issue is missing context, supply it and re-dispatch.
- If the task is too large or the plan has gaps, split or fix the plan before continuing.
- If the task repeatedly fails, context bloats endlessly, or the loop cannot close stably, stop this skill and switch to
executing-plans.
Red Lines
- Starting implementation on
main/masterwithout explicit user permission. - Dispatching multiple implementation subagents in parallel.
- Skipping spec compliance or code quality reviews.
- Using implementer self-review as a substitute for formal review.
- Starting code quality review before spec compliance passes.
- Forcing the implementer to read the plan file instead of providing the full task text.
- Ignoring issues raised by the implementer or reviewer.
- Marking a task complete when any review loop remains open.
Output Contract
After each task, the controller must hold this structured information:
- Original Intent.
- Task number and name.
- Implementer state.
- Spec review conclusion.
- Code quality review conclusion.
- Test/validation results.
- Modified files.
- Unresolved issues or accepted risks.
The final reply must use this fixed skeleton:
子代理驱动执行已完成。
**Plan:** `<plan-path>`
**Original Intent:** `<intent-summary>`
**Execution Conclusion:** `Fully Completed` | `Partially Completed` | `Blocked`
**Task Progress:** `<completed>/<total>`
**Task Results:**
- Task N: `Passed` | `Blocked` | `Needs Fix`
**Review Results:**
- Spec Compliance: [Passed / Issue Summary]
- Code Quality: [Passed / Issue Summary]
**Validation Results:**
- [Tests / lint / build / manual checks]
**Blocks or Risks:**
- [If none, write `- None`]
**Next Steps:**
- [Continue fixing / Switch to executing-plans / Await user decision / Run verification-before-completion, then proceed to commit or branch wrap-up]If execution is incomplete, do not use "子代理驱动执行已完成。" to mask the state. Explicitly state which task is stuck, at which phase, and why.
Failure Handling
- Implementer returns
NEEDS_CONTEXT: Supply context and re-dispatch the same task. Do not enter review. - Implementer returns
BLOCKED: Determine if it is a context, capability, or plan defect. Do not retry without changes. - Spec Review Fails: After the implementer fixes it, it must undergo spec review again. Do not jump to code quality review.
- Code Quality Review Fails: After the implementer fixes it, it must undergo code quality review again.
- Repeated Task Failures or Context Bloat: Stop the subagent path, explain the situation to the user, invoke
self-improvementto record why subagent-driven-development failed for this task type (e.g., task too large, insufficient context isolation, capability gap), and suggest switching toexecuting-plans. - Environment Cannot Support Loop: Fallback immediately. Do not pretend subagents are viable.
Integration
writing-plans: Upstream — the plan is generated by writing-plans before subagent execution begins.executing-plans: Downstream fallback — when subagent-driven-development fails repeatedly or tasks are too tightly coupled, fall back to sequential execution.verification-before-completion: Downstream — after all tasks are completed, verify evidence before claiming done.using-git-worktrees: Adjacent — subagent tasks can run inside isolated worktrees for context separation.discovering-subagent-capabilities: Upstream — before dispatching, use this skill to verify which implementation-capable subagent types are available.
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.

