首页/AI 智能体编排协作/Subagent-Driven Development
S

Subagent-Driven Development

by @obrav
4.2(120)

此技能通过为每个任务分派一个全新的子智能体,并在任务之间进行代码审查,来执行实施计划。该 Skill 确保了高质量的迭代开发,通过持续的质量门控和无上下文污染的子智能体工作流,显著提升了开发效率和代码质量,适用于需要连续进展和质量保障的独立任务执行场景。

agent-orchestrationmulti-agent-systemscode-reviewtask-automationdevelopment-workflowGitHub
安装方式
git clone https://github.com/obra/superpowers-skills.git
compare_arrows

Before / After 效果对比

1 组
使用前

开发者在没有此技能时,手动执行开发任务容易引入上下文污染,导致错误率高,且问题往往在后期才被发现,延长了迭代周期,降低了整体开发效率和代码质量。

使用后

此技能通过为每个任务分派独立的子智能体并进行即时代码审查,显著降低了开发过程中的错误率,并能快速发现并修复问题,从而大幅缩短迭代周期,提升了代码质量和开发效率。

SKILL.md

Subagent-Driven Development

Execute plan by dispatching fresh subagent per task, with code review after each.

Core principle: Fresh subagent per task + review between tasks = high quality, fast iteration

Overview

vs. Executing Plans (parallel session):

  • Same session (no context switch)
  • Fresh subagent per task (no context pollution)
  • Code review after each task (catch issues early)
  • Faster iteration (no human-in-loop between tasks)

When to use:

  • Staying in this session
  • Tasks are mostly independent
  • Want continuous progress with quality gates

When NOT to use:

  • Need to review plan first (use executing-plans)
  • Tasks are tightly coupled (manual execution better)
  • Plan needs revision (brainstorm first)

The Process

1. Load Plan

Read plan file, create TodoWrite with all tasks.

2. Execute Task with Subagent

For each task:

Dispatch fresh subagent:

Task tool (general-purpose):
  description: "Implement Task N: [task name]"
  prompt: |
    You are implementing Task N from [plan-file].

    Read that task carefully. Your job is to:
    1. Implement exactly what the task specifies
    2. Write tests (following TDD if task says to)
    3. Verify implementation works
    4. Commit your work
    5. Report back

    Work from: [directory]

    Report: What you implemented, what you tested, test results, files changed, any issues

Subagent reports back with summary of work.

3. Review Subagent's Work

Dispatch code-reviewer subagent:

Task tool (code-reviewer):
  Use template at skills/collaboration/requesting-code-review/code-reviewer.md

  WHAT_WAS_IMPLEMENTED: [from subagent's report]
  PLAN_OR_REQUIREMENTS: Task N from [plan-file]
  BASE_SHA: [commit before task]
  HEAD_SHA: [current commit]
  DESCRIPTION: [task summary]

Code reviewer returns: Strengths, Issues (Critical/Important/Minor), Assessment

4. Apply Review Feedback

If issues found:

  • Fix Critical issues immediately
  • Fix Important issues before next task
  • Note Minor issues

Dispatch follow-up subagent if needed:

"Fix issues from code review: [list issues]"

5. Mark Complete, Next Task

  • Mark task as completed in TodoWrite
  • Move to next task
  • Repeat steps 2-5

6. Final Review

After all tasks complete, dispatch final code-reviewer:

  • Reviews entire implementation
  • Checks all plan requirements met
  • Validates overall architecture

7. Complete Development

After final review passes:

  • Announce: "I'm using the Finishing a Development Branch skill to complete this work."
  • Switch to skills/collaboration/finishing-a-development-branch
  • Follow that skill to verify tests, present options, execute choice

Example Workflow

You: I'm using Subagent-Driven Development to execute this plan.

[Load plan, create TodoWrite]

Task 1: Hook installation script

[Dispatch implementation subagent]
Subagent: Implemented install-hook with tests, 5/5 passing

[Get git SHAs, dispatch code-reviewer]
Reviewer: Strengths: Good test coverage. Issues: None. Ready.

[Mark Task 1 complete]

Task 2: Recovery modes

[Dispatch implementation subagent]
Subagent: Added verify/repair, 8/8 tests passing

[Dispatch code-reviewer]
Reviewer: Strengths: Solid. Issues (Important): Missing progress reporting

[Dispatch fix subagent]
Fix subagent: Added progress every 100 conversations

[Verify fix, mark Task 2 complete]

...

[After all tasks]
[Dispatch final code-reviewer]
Final reviewer: All requirements met, ready to merge

Done!

Advantages

vs. Manual execution:

  • Subagents follow TDD naturally
  • Fresh context per task (no confusion)
  • Parallel-safe (subagents don't interfere)

vs. Executing Plans:

  • Same session (no handoff)
  • Continuous progress (no waiting)
  • Review checkpoints automatic

Cost:

  • More subagent invocations
  • But catches issues early (cheaper than debugging later)

Red Flags

Never:

  • Skip code review between tasks
  • Proceed with unfixed Critical issues
  • Dispatch multiple implementation subagents in parallel (conflicts)
  • Implement without reading plan task

If subagent fails task:

  • Dispatch fix subagent with specific instructions
  • Don't try to fix manually (context pollution)

Integration

Pairs with:

  • skills/collaboration/writing-plans (creates the plan)
  • skills/collaboration/requesting-code-review (review template)
  • skills/testing/test-driven-development (subagents follow this)

Alternative to:

  • skills/collaboration/executing-plans (parallel session)

See code-reviewer template: skills/collaboration/requesting-code-review/code-reviewer.md

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量520
评分4.2 / 5.0
版本
更新日期2026年6月19日
对比案例1 组

用户评分

4.2(120)
5
37%
4
43%
3
13%
2
5%
1
2%

为此 Skill 评分

0.0

兼容平台

🤖claude-code

时间线

创建2026年6月19日
最后更新2026年6月19日
🎁 Agent 知识卡片
调研问卷