Use when executing implementation plans with independent tasks in the current session
Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
graph TD
A{{"Have implementation plan?"}} -->|yes| B{{"Tasks mostly independent?"}};
A -->|no| F["Manual execution or brainstorm first"];
B -->|yes| C{{"Stay in this session?"}};
B -->|no - tightly coupled| F;
C -->|yes| D["subagent-driven-development"];
C -->|no - parallel session| E["executing-plans"];
classDef endnode fill:#f9f;
classDef decision fill:#ddf;
classDef process fill:#e6f2ff;
class A,B,C decision;
class D,E,F process;
vs. Executing Plans (parallel session):
graph TD
Start["Read plan with execution strategy"];
CheckStrategy{{"Plan has merge/parallel strategy?"}};
ApplyMerge["Apply merge: combine tasks per group"];
ApplyParallel["Apply parallel: dispatch independent groups"];
Sequential["Sequential execution per merged group"];
MoreTasks{{"More task groups remain?"}};
FinalReview["Dispatch final code reviewer"];
Superpower["Use superpowers:finishing-a-development-branch"]:::greenNode;
Start --> CheckStrategy;
CheckStrategy -->|yes, merge| ApplyMerge;
CheckStrategy -->|yes, parallel| ApplyParallel;
CheckStrategy -->|no| Sequential;
ApplyMerge --> Sequential;
ApplyParallel --> MoreTasks;
Sequential --> MoreTasks;
MoreTasks -->|yes| Sequential;
MoreTasks -->|no| FinalReview;
FinalReview --> Superpower;
classDef endnode fill:#f9f;
classDef decision fill:#ddf;
classDef process fill:#e6f2ff;
classDef greenNode fill:lightgreen;
class CheckStrategy,MoreTasks decision;
class Start,ApplyMerge,ApplyParallel,Sequential,FinalReview process;
class Superpower endnode;
Execution strategy from plan:
dispatching-parallel-agentsInject terminology and format conventions from design doc:
./implementer-prompt.md - Dispatch implementer subagent./spec-reviewer-prompt.md - Dispatch spec compliance reviewer subagent./code-quality-reviewer-prompt.md - Dispatch code quality reviewer subagentYou: I'm using Subagent-Driven Development to execute this plan.
[Read plan file once: docs/plans/feature-plan.md]
[Extract all 5 tasks with full text and context]
[Create TodoWrite with all tasks]
Task 1: Hook installation script
[Get Task 1 text and context (already extracted)]
[Dispatch implementation subagent with full task text + context]
Implementer: "Before I begin - should the hook be installed at user or system level?"
You: "User level (~/.config/superpowers/hooks/)"
Implementer: "Got it. Implementing now..."
[Later] Implementer:
- Implemented install-hook command
- Added tests, 5/5 passing
- Self-review: Found I missed --force flag, added it
- Committed
[Dispatch spec compliance reviewer]
Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
[Get git SHAs, dispatch code quality reviewer]
Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
[Mark Task 1 complete]
Task 2: Recovery modes
[Get Task 2 text and context (already extracted)]
[Dispatch implementation subagent with full task text + context]
Implementer: [No questions, proceeds]
Implementer:
- Added verify/repair modes
- 8/8 tests passing
- Self-review: All good
- Committed
[Dispatch spec compliance reviewer]
Spec reviewer: ❌ Issues:
- Missing: Progress reporting (spec says "report every 100 items")
- Extra: Added --json flag (not requested)
[Implementer fixes issues]
Implementer: Removed --json flag, added progress reporting
[Spec reviewer reviews again]
Spec reviewer: ✅ Spec compliant now
[Dispatch code quality reviewer]
Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
[Implementer fixes]
Implementer: Extracted PROGRESS_INTERVAL constant
[Code reviewer reviews again]
Code reviewer: ✅ Approved
[Mark Task 2 complete]
...
[After all tasks]
[Dispatch final code-reviewer]
Final reviewer: All requirements met, ready to merge
Done!
vs. Manual execution:
vs. Executing Plans:
Efficiency gains:
Quality gates:
Cost:
Never:
If subagent asks questions:
If reviewer finds issues:
If subagent fails task:
Required workflow skills:
Parallel execution (when tasks are independent):
Subagents should use:
Alternative workflow:
npx skills add Ts-sound/subagent-driven-development下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer