This skill should be used when coordinating agents, delegating tasks to specialists, or when "dispatch agents", "which agent", or "multi-agent" are mentioned.
Orchestrate outfitter subagents by matching tasks to the right agent + skill combinations.
For complex multi-agent tasks, start with the Plan subagent to research and design the orchestration strategy before execution.
Complex task arrives
ā
āāāŗ Plan subagent (research stage)
ā āāāŗ Explore codebase, gather context
ā āāāŗ Identify which agents and skills needed
ā āāāŗ Design execution sequence (sequential, parallel, or hybrid)
ā āāāŗ Return orchestration plan
ā
āāāŗ Execute plan (dispatch agents per plan)
Plan subagent benefits:
When to use Plan subagent:
For long-running orchestration, load the context-management skill. It teaches:
Key principle: Main conversation context is precious. Delegate exploration and research to subagents ā only their summaries return, keeping main context lean.
Coordination uses roles (what function is needed) mapped to agents (who fulfills it). This allows substitution when better-suited agents are available.
| Role | Agent | Purpose |
|---|---|---|
| coding | engineer | Build, implement, fix, refactor |
| reviewing | reviewer | Evaluate code, PRs, architecture, security |
| research | analyst | Investigate, research, explore |
| debugging | debugger | Diagnose issues, trace problems |
| testing | tester | Validate, prove, verify behavior |
| challenging | skeptic | Challenge complexity, question assumptions |
| specialist | specialist | Domain expertise (CI/CD, design, accessibility, etc.) |
| patterns | analyst | Extract reusable patterns from work |
Additional agents may be available in your environment (user-defined, plugin-provided, or built-in). When dispatching:
Examples of role substitution:
senior-engineer, developer, engineersecurity-auditor, code-reviewer, reviewerresearch-engineer, docs-librarian, analystcicd-expert, design-agent, accessibility-auditor, bun-expertRoute by role, then select the best available agent for that role:
User request arrives
ā
āāāŗ "build/implement/fix/refactor" āāāŗ coding role
ā
āāāŗ "review/critique/audit" āāāŗ reviewing role
ā
āāāŗ "investigate/research/explore" āāāŗ research role
ā
āāāŗ "debug/diagnose/trace" āāāŗ debugging role
ā
āāāŗ "test/validate/prove" āāāŗ testing role
ā
āāāŗ "simplify/challenge/is this overkill" āāāŗ challenging role
ā
āāāŗ "deploy/configure/CI/design/a11y" āāāŗ specialist role
ā
āāāŗ "capture this workflow/make reusable" āāāŗ patterns role
One agent completes, passes to next:
research (investigate) ā coding (implement) ā reviewing (verify) ā testing (validate)
Use when: Clear stages, each requires different expertise.
Multiple agents work simultaneously using run_in_background: true:
āāāŗ reviewing (code quality)
ā
task āāā¼āāŗ research (impact analysis)
ā
āāāŗ testing (regression tests)
Use when: Independent concerns, time-sensitive, comprehensive coverage needed.
Build ā challenge ā refine:
coding (propose) āā challenging (evaluate) ā coding (refine)
Use when: Complex architecture, preventing over-engineering, high-stakes decisions.
Narrow down, then fix:
research (scope) ā debugging (root cause) ā coding (fix) ā testing (verify)
Use when: Bug reports, production issues, unclear symptoms.
| Task | Skills |
|---|---|
| New feature | software-craft, tdd |
| Bug fix | debugging ā software-craft |
| Refactor | software-craft + simplify |
| API endpoint | hono-dev, software-craft |
| React component | react-dev, software-craft |
| AI feature | ai-sdk, software-craft |
| Task | Skills |
|---|---|
| PR review | code-review |
| Architecture review | architecture |
| Performance audit | performance |
| Security audit | security |
| Pre-merge check | code-review + scenarios |
| Task | Skills |
|---|---|
| Codebase exploration | codebase-recon |
| Research question | research |
| Unclear requirements | pathfinding |
| Status report | status, report-findings |
| Task | Skills |
|---|---|
| Feature validation | scenarios |
| TDD implementation | tdd |
| Integration testing | scenarios |
Run agents asynchronously for parallel work:
{
"description": "Security review",
"prompt": "Review auth module for vulnerabilities",
"subagent_type": "outfitter:reviewer",
"run_in_background": true
}
Retrieve results with TaskOutput:
{
"task_id": "agent-abc123",
"block": true
}
Sequence agents for complex workflows ā each agent's output informs the next:
research agent ā "Found 3 auth patterns in use"
ā
coding agent ā "Implementing refresh token flow using pattern A"
ā
reviewing agent ā "Verified implementation, found 1 issue"
ā
coding agent ā "Fixed issue, ready for merge"
Pass context explicitly between agents via prompt.
Continue long-running work across invocations:
{
"description": "Continue security analysis",
"prompt": "Now examine session management",
"subagent_type": "outfitter:reviewer",
"resume": "agent-abc123"
}
Agent preserves full context from previous execution.
Use cases:
Override model for specific needs:
{
"subagent_type": "outfitter:analyst",
"model": "haiku" // Fast, cheap for exploration
}
CLAUDE.md before applying defaultsWhen agents face implementation choices:
These principles apply across all roles. Agents should surface decisions to the orchestrator when trade-offs are significant.
Orchestrators and agents should:
Progress format:
āāāāāāāāāā [1/5] research: Exploring auth patterns
āāāāāāāāāā [2/5] coding: Implementing refresh token flow
CRITICAL: Subagents MUST NOT perform git operations (commit, push, branch creation) when running in parallel.
Only the orchestrator handles git state. Subagents write code to the filesystem and report completion.
For detailed workflows and recovery procedures, see the source-control plugin:
source-control:multi-agent-vcs ā Full orchestrator-only workflow patternssource-control:graphite-stacks ā Graphite-specific commands and recovery"I need to build X" ā coding role + TDD skills
"Review this PR" ā reviewing role + code-review
"Why is this broken?" ā debugging role + debugging
"Is this approach overkill?" ā challenging role + simplify
"Prove this works" ā testing role + scenarios
"What's the codebase doing?" ā research role + codebase-recon
"Deploy to production" ā specialist role + domain skills
"Make this workflow reusable" ā patterns role + codify