subagent-dev
Use when executing implementation plans with independent tasks in the current session - dispatches fresh subagent for each task with code review between tasks, enabling fast iteration with quality gates
What this skill does
# 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)
## Efficiency Targets
| Complexity | Target Tool Uses | Target Tokens |
|------------|------------------|---------------|
| TRIVIAL | 2-3 | <3k |
| SIMPLE | 4-6 | <8k |
| MODERATE | 8-15 | <20k |
| COMPLEX | No hard limit | Reasonable |
**Why this matters:** A "Remove orphaned file" task should NOT use 11 tools and 27k tokens.
## The Process
### Step 0: Verify Isolation Context
Before loading plan:
1. Check current git context:
```bash
git branch --show-current
git worktree list
```
2. **If on main/master without worktree:**
Use AskUserQuestion:
```
Question: "You're on the main branch. Subagents should work in an isolated worktree to protect main."
Header: "Isolation"
Options:
- "Set up worktree": Create isolated workspace first (recommended)
- "Continue on main": I understand the risk, proceed anyway
```
3. **If "Set up worktree":** Use workflow:git-worktrees skill first
4. **If "Continue on main":** Proceed with warning logged
5. **If already in worktree or feature branch:** Proceed normally
### 1. Load Plan
Read plan file, create TodoWrite with:
- All tasks from the plan
- **MANDATORY FINAL TODO:** "Complete development (finish-branch)" - this ensures finish-branch is invoked after all tasks complete
### 2. Execute Task with Subagent
Check task **Complexity** tag before dispatching:
#### TRIVIAL Tasks
**Do NOT dispatch a subagent.** Execute directly as parent agent:
1. Read task from plan
2. Execute the change (Bash, Edit, Write as needed)
3. Verify with `git diff`
4. Commit
5. Mark complete
**Rationale:** Subagent overhead (context loading, skill loading) exceeds task value.
#### SIMPLE Tasks
**Dispatch lightweight subagent:**
```
Task tool (general-purpose):
model: haiku
description: "Implement Task N: [task name]"
prompt: |
You are implementing Task N from [plan-file]. This is a SIMPLE task.
Work efficiently:
1. Read the task
2. If modifying code: write a simple test first
3. Make the change
4. Verify tests pass
5. Commit
6. Report back briefly
EFFICIENCY TARGET: 4-6 tool uses maximum.
Skip skill loading unless absolutely necessary.
ANTI-PATTERNS TO AVOID:
- Reading files not mentioned in task
- Using Glob/Grep to "verify" obvious facts
- Loading skills you don't need
- Re-reading the plan file multiple times
Work from: [directory]
```
#### MODERATE Tasks
**Dispatch standard subagent:**
```
Task tool (general-purpose):
model: sonnet
description: "Implement Task N: [task name]"
prompt: |
You are implementing Task N from [plan-file].
Read that task carefully. Your job is to:
1. Use core:tdd skill - write failing test FIRST, then implement
2. Implement exactly what the task specifies
3. Use core:verification skill - verify all tests pass
4. Commit your work
5. Report back
EFFICIENCY TARGET: 8-15 tool uses.
ANTI-PATTERNS TO AVOID:
- Reading files not mentioned in task
- Using Glob/Grep to "verify" obvious facts
- Loading skills you don't need
- Re-reading the plan file multiple times
Work from: [directory]
Report: What you implemented, test results, files changed
```
#### COMPLEX Tasks
**Dispatch thorough subagent:**
```
Task tool (general-purpose):
model: sonnet
description: "Implement Task N: [task name]"
prompt: |
You are implementing Task N from [plan-file]. This is a COMPLEX task.
Read that task carefully. Your job is to:
1. Use core:tdd skill - write failing test FIRST, then implement
2. Implement exactly what the task specifies
3. Use core:verification skill - verify all tests pass with actual output
4. Consider edge cases and error handling
5. Commit your work
6. Report back thoroughly
IMPORTANT:
- You MUST use core:tdd. Write the test first, see it fail.
- You MUST use core:verification before reporting completion.
Work from: [directory]
Report: What you implemented, what you tested, test results (with output),
files changed, any issues or concerns
```
**Subagent reports back** with summary of work.
**Note:** Subagents implement individual tasks only. The parent (you) handles finish-branch after ALL tasks complete.
### 3. Review Subagent's Work
**Review strategy based on task complexity:**
#### TRIVIAL tasks
No review needed - parent already verified git diff during execution.
#### SIMPLE tasks
Parent reviews subagent report + git diff. No code-reviewer dispatch.
```bash
git diff --stat [BASE_SHA]..[HEAD_SHA]
```
Check: Does the change match the task? Any unintended changes?
#### MODERATE tasks
**Dispatch code-reviewer subagent:**
Use template at `plugins/methodology/review/templates/code-reviewer-dispatch.md`.
```
Task tool (review:code-reviewer):
description: "Review Task N implementation"
prompt: |
Review the implementation against requirements.
## Context
- **What Was Implemented:** [from subagent's report]
- **Requirements/Plan:** Task N from [plan-file]
- **Description:** [task summary]
## Git Range
- **Base:** [commit before task]
- **Head:** [current commit]
First run: git diff --stat [BASE_SHA]..[HEAD_SHA]
Then review against plugins/methodology/review/references/code-review-standards.md
```
#### COMPLEX tasks
**Dispatch thorough code-reviewer subagent** with model: opus for critical analysis.
**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:
1. Mark the "Complete development (finish-branch)" todo as **in_progress**
2. Announce: "I'm using the finish-branch skill to complete this work."
3. **REQUIRED:** Use `Skill("workflow:finish-branch")`
4. Follow that skill to verify tests, present options, execute choice
5. Mark the "Complete development (finish-branch)" todo as **completed**
**This step is NOT optional.** The mandatory final todo ensures this step is visible throughout execution.
## Example Workflow
```
You: I'm using Subagent-Driven Development to execute this plan.
[Check git context: on main branch, no worktree]
[AskUserQuestion: "You're on the main branch. Subagents should work in an isolated worktree to protect main."]
User: "Set up worktree"
[Use workflow:git-worktrees skill to create feature/my-feature worktree]
[Load plan, create TodoWrite with tasks + "Complete development (finish-branch)"]
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 TRelated in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.