subagent-driven-development
Skill22 starsChanged 9 months agoMITView on GitHub
Execute a multi-task implementation plan by dispatching one fresh subagent per task with isolated context, then applying a two-stage review (spec compliance and code quality) before advancing. Use when you have a written plan with 3+ tasks, when tasks would otherwise cause context bleed, when you need reproducible per-task output, or when review gates are non-negotiable. Covers per-task briefing templates, the two-stage review rubric, structured hand-off between dependent tasks, and anti-patterns like shared long-context drift and skipped reviews. Complements dispatching-parallel-agents (for fan-out work) and executing-plans. Triggers: 'execute this plan', 'work through these tasks', 'dispatch per task', 'one-task-at-a-time', 'review-gated implementation'.
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 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.
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 repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- api-designSkill
- cicdSkill
- clean-architectureSkill
- database-designSkill
- debuggingSkill
- design-patternsSkill
- dispatching-parallel-agentsSkill
- git-workflowSkill
- microservicesSkill
- performanceSkill
- refactoringSkill
- scrumSkill
- securitySkill
- solidSkill
- testingSkill
- verification-before-completionSkill
- composer-dependenciesSkill
- finishing-branchSkill
- php-upgradeSkill
- ticket-deliverySkill
- worktree-opsSkill
- architectSkill
- backend-devSkill
- frontend-devSkill
- product-managerSkill
- project-managerSkill
- qa-engineerSkill
- scrum-masterSkill
- agent-creatorSkill
- agentic-rules-writerSkill
- agent-teamsSkill
- brainstormingSkill
- dispatching-agent-teamsSkill
- image-annotateSkill
- plugin-creatorSkill
- pr-message-writerSkill
- report-writerSkill
- stakeholder-update-writerSkill
- ticket-writerSkill
- using-ecosystemSkill
- web-screenshotSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 17 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 145 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Never paste the full plan into the subagent - only the current task brief
- Distinctive: line 66
Never let the subagent inherit the orchestrator's conversation history
- Distinctive: line 82
Verify that the output matches the brief's acceptance criteria.
- Distinctive: line 85
Every acceptance criterion from the brief is satisfied
- Distinctive: line 86
No out-of-scope changes were introduced
- Distinctive: line 89
No unrelated regressions in the test suite
- Distinctive: line 91
If Stage 1 fails: return specific findings to the subagent with the failing criteria.
- Distinctive: line 102
No code smells (duplication, long methods, feature envy)
- Distinctive: line 107
If Stage 2 fails: return prioritized findings.
- Distinctive: line 121
Never accept with known open issues.
- Distinctive: line 169
When tasks have sequential dependencies, the orchestrator must pass structured state from task N to task N+1.
- Distinctive: line 202
Before advancing from one task to the next:
- Distinctive: line 218
One agent, one task: Never reuse a subagent across tasks.
- Distinctive: line 222
Stage 1 before Stage 2: Do not review code quality on an implementation that does not meet its specification.
- Distinctive: line 224
Brief is the contract: If it is not in the brief, the subagent is not responsible for it.
- Distinctive: line 226
Cap fix attempts at two: If the subagent cannot resolve an issue after two rounds of feedback, the task scope is wrong or the agent lacks …
- Distinctive: line 232
Fail fast on blockers: When a subagent reports blocked status, address it immediately.
“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
An orchestration pattern for executing multi-task implementation plans by dispatching one fresh subagent per task, reviewing each task through two gates (spec compliance, then code quality), and advancing only after both gates pass. The orchestrator stays lean - it coordinates, briefs, reviews, and hands off. It never implements.
Core Principles
| Principle | Meaning |
| One fresh agent per task | Each task gets a new subagent with curated context. No inherited conversation history, no accumulated drift. The agent sees only what the brief provides. |
| Two-stage review | Every task passes through spec compliance (does it match the brief?) and then code quality (is it correct, clean, and tested?). Both must pass before advancing. |
| Structured hand-offs | When task N produces artifacts that task N+1 needs, pass a compressed summary (diff, test manifest, notes) - never raw conversation history. |
| Orchestrator stays lean | The orchestrator reads the plan, dispatches agents, reviews output, and decides next steps. It does not implement, debug, or accumulate working-memory bloat. |
| Fail fast, fix forward | When a review gate fails, return specific feedback to the subagent for a focused fix cycle. After two failed fix attempts, re-scope or escalate - do not loop indefinitely. |
When to Use
| Situation | Why this pattern fits |
| Written plan with 3+ sequential tasks | Each task benefits from isolated execution and a review checkpoint |
| Tasks that build on each other (feature branches, migrations) | Structured hand-offs prevent context corruption between steps |
| Long implementation sessions that risk context exhaustion | Fresh agents per task keep each execution window small and precise |
| Quality-sensitive work requiring audit trails | Two-stage review produces documented accept/reject decisions per task |
| Delegating to less capable models for mechanical work | Tight briefs and review gates compensate for reduced reasoning capacity |
When NOT to Use
| Situation | Better alternative |
| Single task or trivial change | Direct execution - the overhead of briefing and review is not justified |
| Fully independent tasks with no ordering dependency | dispatching-parallel-agents - fan them out simultaneously |
| Exploratory or research work with unclear scope | Manual iteration - you need to discover the shape before you can brief it |
| Tasks that require deep shared state across every step | Single long-running session with periodic checkpoints |
| Fewer than 3 tasks | Execute directly and self-review - the ceremony exceeds the value |
The Loop
Execute one task at a time through this seven-phase cycle. The orchestrator drives each phase.
Phase 1: Brief the Subagent
Compose a task brief containing everything the subagent needs to execute independently. The brief is the subagent's entire world - anything not in the brief does not exist for it.
Include:
- Task identifier and goal (one sentence)
- Input artifacts (file paths, interface signatures, test fixtures)
- Context from prior tasks (hand-off summary, not full history)
- Acceptance criteria (observable, testable conditions)
- Out-of-scope boundaries (what the agent must NOT touch)
- Failure handling instructions (what to do when stuck)
See Task Brief Template for the full structure.
Phase 2: Dispatch with Isolation
Launch the subagent with a fresh context window. Provide the brief as the initial prompt. If the platform supports worktree isolation, use it - the subagent should not be able to corrupt the main working tree.
Key rules:
- Never paste the full plan into the subagent - only the current task brief
- Never let the subagent inherit the orchestrator's conversation history
- Preload only the skills the subagent needs for this specific task
Phase 3: Receive Artifacts
The subagent completes work and reports back with one of four statuses:
| Status | Orchestrator action |
| Done | Proceed to Stage 1 review |
| Done with concerns | Read concerns, assess whether they affect correctness or scope, then proceed to review |
| Needs context | Provide the missing information and re-dispatch (do NOT guess on the subagent's behalf) |
| Blocked | Assess the blocker - provide context, re-scope the task, or escalate to a human |
Phase 4: Stage 1 Review - Spec Compliance
Verify that the output matches the brief's acceptance criteria. This is a mechanical check: does the artifact do what was asked?
Checklist:
- Every acceptance criterion from the brief is satisfied
- No out-of-scope changes were introduced
- Files modified match the expected scope
- Tests exist for the specified behavior
- No unrelated regressions in the test suite
If Stage 1 fails: return specific findings to the subagent with the failing criteria. The subagent fixes and resubmits. After two failed attempts, re-scope the task or escalate.
See Review Rubric for the full spec compliance checklist.
Phase 5: Stage 2 Review - Code Quality
Once spec compliance passes, evaluate the quality of the implementation. This is a judgment call: is the code correct, clean, and maintainable?
Checklist:
- Correctness beyond the spec (edge cases, error handling, concurrency)
- Code style and conventions match the project
- No code smells (duplication, long methods, feature envy)
- Security considerations addressed (input validation, injection prevention)
- Performance is reasonable (no N+1 queries, no unbounded allocations)
- Tests are meaningful (behavior-focused, not implementation-coupled)
If Stage 2 fails: return prioritized findings. Critical issues must be fixed. Suggestions can be deferred if the orchestrator judges them non-blocking.
See Review Rubric for the full quality checklist.
Phase 6: Decide
The orchestrator makes one of three decisions:
| Decision | When | Action |
| Accept | Both review stages pass | Mark task complete, proceed to hand-off |
| Return with feedback | Review found fixable issues | Send specific feedback, subagent fixes and resubmits for re-review |
| Abort | Task is fundamentally mis-scoped or blocked | Stop, re-plan the task, or escalate to a human |
Never accept with known open issues. Never defer critical findings to "clean up later."
Phase 7: Hand Off to Next Task
Prepare the hand-off summary for the next task's brief. Include only what the next subagent needs:
- What changed (files modified, interfaces added)
- What was tested (test names, coverage scope)
- Decisions made during implementation that affect downstream tasks
- Any deviations from the original plan
See Handoff Patterns for structured hand-off formats.
Task Brief
A task brief is the contract between the orchestrator and the subagent. It must be self-contained - the subagent should be able to execute the task using only the brief and the codebase, with no additional conversation.
Essential sections:
- Task ID and goal - what to accomplish in one sentence
- Inputs - file paths, interface contracts, test fixtures
- Context - relevant decisions from prior tasks (hand-off summary)
- Acceptance criteria - observable conditions that define "done"
- Out of scope - explicit boundaries on what NOT to change
- Failure handling - what to do when stuck (report back, do not guess)
See Task Brief Template for the complete template with examples.
Two-Stage Review Rubric
The two stages serve different purposes and must not be combined or skipped:
| Stage | Purpose | Character |
| Stage 1: Spec Compliance | Does the output match the brief? | Mechanical - checkable against acceptance criteria |
| Stage 2: Code Quality | Is the implementation well-crafted? | Judgmental - requires expertise and context |
Stage 1 must pass before Stage 2 begins. There is no value in reviewing code quality on an implementation that does not meet its specification.
See Review Rubric for the detailed rubric with severity levels.
Handoff Patterns
When tasks have sequential dependencies, the orchestrator must pass structured state from task N to task N+1. The goal is minimal, precise context - not a dump of everything that happened.
Three formats, chosen by dependency depth:
| Format | When to use | Contents |
| Diff summary | Light dependency (new file, new interface) | Changed files, added signatures, test names |
| Decision log | Design choices affect downstream tasks | Decisions made, alternatives rejected, rationale |
| Full hand-off | Deep dependency (task N+1 modifies what task N created) | Diff summary + decision log + architectural notes |
See Handoff Patterns for templates and examples.
Anti-Patterns
| Anti-Pattern | Why it fails | Fix |
| Shared long context | Accumulated conversation history causes drift, hallucination, and contradictions | One fresh agent per task with curated brief |
| Skipped review gates | Errors compound across tasks, discovered late when fixing is expensive | Both stages are mandatory - no exceptions |
| "Looks fine" reviews | Without a rubric, reviews are superficial and miss systematic issues | Use the structured rubric for both stages |
| Oversized tasks | Tasks too large for a single agent to hold in context, leading to partial or incorrect output | Split until each task fits comfortably in one execution window |
| Pasting the full plan | Subagent is overwhelmed with irrelevant context from other tasks | Provide only the current task brief and hand-off summary |
| Infinite fix loops | Subagent cannot resolve an issue after repeated attempts, wasting tokens and time | Cap at two fix attempts, then re-scope or escalate |
| Skipping hand-offs | Next subagent lacks critical context from the previous task, leading to inconsistencies | Always produce a hand-off summary, even when dependency seems light |
| Orchestrator implements | Orchestrator starts writing code instead of delegating, accumulating context bloat | The orchestrator coordinates. Subagents implement. No exceptions. |
See Anti-Patterns for detailed analysis and recovery strategies.
Quality Checklist
Before advancing from one task to the next:
- Task brief was self-contained (subagent did not ask for plan-level context)
- Subagent executed with fresh context (no inherited history)
- Stage 1 review confirmed all acceptance criteria are met
- Stage 2 review confirmed code quality standards are satisfied
- All critical and warning findings are resolved (not deferred)
- Tests pass - both new tests and the full existing suite
- Hand-off summary is prepared for the next task
- No out-of-scope changes were introduced
- Orchestrator context remains lean (no implementation details accumulated)
Critical Rules
- One agent, one task. Never reuse a subagent across tasks. Fresh context prevents drift and ensures each task is evaluated on its own merits.
- Both review stages are mandatory. Spec compliance and code quality serve different purposes. Skipping either one allows a different class of defect to pass through.
- Stage 1 before Stage 2. Do not review code quality on an implementation that does not meet its specification. Fix the spec gap first.
- Brief is the contract. If it is not in the brief, the subagent is not responsible for it. Write complete briefs.
- Cap fix attempts at two. If the subagent cannot resolve an issue after two rounds of feedback, the task scope is wrong or the agent lacks capability. Re-scope or escalate.
- Orchestrator never implements. The moment the orchestrator starts writing code, it accumulates context that degrades its coordination ability. Delegate everything.
- Hand-off summaries, not history dumps. Pass compressed, structured state between tasks. The next subagent needs decisions and artifacts, not a transcript of what happened.
- Fail fast on blockers. When a subagent reports blocked status, address it immediately. Do not queue it for later or hope the next task will unblock it.
- Scope discipline. Each task should be completable in a single agent session. If it requires multiple sessions, it is too large - split it.
- Audit trail. Record the accept/reject decision for each review stage on each task. This is your implementation log.
Reference Files
| Reference | Contents |
| Task Brief Template | Complete template for per-task subagent briefs with field descriptions and examples |
| Review Rubric | Two-stage review rubric with checklists, severity levels, and decision criteria |
| Handoff Patterns | Structured formats for passing state between dependent tasks |
| Anti-Patterns | Detailed analysis of common failures with detection signals and recovery strategies |
Integration with Other Skills
| Situation | Recommended Skill |
| Creating the plan this skill executes | writing-plans |
| Tasks are fully independent - parallelize instead of sequencing | dispatching-parallel-agents |
| Stage 2 review technique and structured feedback | requesting-code-review |
| Verifying task output with evidence before accepting | verification-before-completion |
| Implementing a task using TDD inside the subagent | testing / design-patterns |
| Natural dispatch target for implementation tasks | implementer agent |
| Natural dispatch target for review tasks | reviewer agent |
| Completing the branch after all tasks pass | finishing-branch |
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.

