with one click
subagent-development
// Executes plans via fresh subagents per task with two-stage review (spec → quality). Triggers: subagent execution, execute plan, fresh agent per task, spec compliance review.
// Executes plans via fresh subagents per task with two-stage review (spec → quality). Triggers: subagent execution, execute plan, fresh agent per task, spec compliance review.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | subagent-development |
| description | Executes plans via fresh subagents per task with two-stage review (spec → quality). Triggers: subagent execution, execute plan, fresh agent per task, spec compliance review. |
| user-invocable | true |
| effort | high |
| argument-hint | [plan file or task description] |
| allowed-tools | Read, Write, Edit, Grep, Glob, Bash, Agent, TaskCreate, TaskList, TaskUpdate, TaskGet |
$ARGUMENTS
Execute implementation plans by dispatching fresh subagents per task, then running a two-stage review gate: spec compliance first, code quality second. Fresh context per subagent prevents accumulated confusion. Two-stage review catches different failure modes: spec review catches wrong behavior, quality review catches bad structure.
/subagent-development [plan file or task description]
| Property | Benefit |
|---|---|
| Fresh subagent per task | No accumulated context drift or confusion |
| Spec review first | Catches wrong behavior before quality review wastes time on wrong code |
| Quality review second | Catches structural issues after behavior is confirmed correct |
| Sequential tasks | No merge conflicts, each task builds on verified previous work |
Read plan
|
v
Extract ordered task list
|
v
For each task:
|
+---> [1] Dispatch IMPLEMENTER subagent
| |
| v
| Handle status (see Status Protocol)
| |
| v
+---> [2] Dispatch SPEC REVIEWER subagent
| |
| v
| APPROVED? --no--> fix issues, re-review
| |
| yes
| |
| v
+---> [3] Dispatch QUALITY REVIEWER subagent
| |
| v
| Critical issues? --yes--> fix, re-review
| |
| no
| v
| Mark task complete
|
v
Next task (or done)
Read the plan file. Extract:
Present the task list to the user. Wait for approval before proceeding.
For each task in order:
Before dispatching the implementer, gather:
Use the Agent tool with the implementer prompt template.
Select model based on task complexity:
| Task Type | Model | Examples |
|---|---|---|
| Mechanical | Cheapest available | Rename, move, config change, 1-2 files with clear spec |
| Integration | Standard | Wire up existing components, add endpoint using established patterns |
| Design/Complex | Most capable | New architecture, complex algorithms, cross-cutting concerns |
The implementer reports one of four statuses:
| Status | Handling |
|---|---|
| DONE | Proceed to spec review |
| DONE_WITH_CONCERNS | Read concerns. If they relate to correctness or scope violations, address them before review. If observational only (style preference, future improvement), note them and proceed to spec review |
| NEEDS_CONTEXT | Provide the missing context the implementer identified. Re-dispatch with the same task plus the additional context |
| BLOCKED | Assess the blocker. Context problem: re-dispatch with better context. Task too complex for selected model: re-dispatch with more capable model. Plan is wrong or ambiguous: escalate to user for clarification |
Use the Agent tool with the spec reviewer prompt template.
The spec reviewer checks:
If APPROVED: proceed to quality review.
If issues found: fix the issues (re-dispatch implementer with specific fix instructions or fix inline if trivial), then re-run spec review. Do not proceed to quality review until spec review passes.
Use the Agent tool with the quality reviewer prompt template.
The quality reviewer categorizes findings:
| Category | Action |
|---|---|
| Critical | Must fix before proceeding. Re-dispatch implementer or fix inline |
| Important | Should fix. Fix now unless time-boxed, then document for follow-up |
| Suggestions | Nice to have. Note for future improvement, do not block progress |
After fixing any Critical issues, re-run quality review to confirm.
Record:
After all tasks complete, produce:
## Subagent Development Report
### Plan
[Plan file or description]
### Tasks Completed
| # | Task | Files Modified | Status | Notes |
|---|------|---------------|--------|-------|
| 1 | ... | ... | Done | ... |
| 2 | ... | ... | Done | ... |
### Deferred Items
- [Any "Important" or "Suggestion" issues not addressed]
### Verification
- [ ] All tasks implemented
- [ ] All spec reviews passed
- [ ] All quality reviews passed (no Critical issues remaining)
- [ ] Tests pass
Before dispatching each subagent, assess the task:
Is the task mechanical (rename, config, boilerplate)?
--> Use cheapest model
Does the task integrate existing patterns (1-3 files)?
--> Use standard model
Does the task require design decisions or span 4+ files?
--> Use most capable model
Is it a review task?
--> Always use most capable model (reviews catch what implementers miss)
Spec compliance review MUST pass BEFORE quality review starts.
Rationale: quality-reviewing code that does the wrong thing wastes everyone's time. Confirm the code does what was asked first, then confirm it does it well.
If you observe any of these, stop and correct course:
[ ] Context gathered for this specific task
[ ] Implementer dispatched with correct model
[ ] Implementer status handled per protocol
[ ] Spec review passed (all requirements met, nothing extra, nothing missing)
[ ] Quality review passed (no Critical issues)
[ ] Task marked complete with file list and notes