Install any skill in seconds. Free to start, no credit card required.
Get Started Free →When the user has a complex task that would benefit from multiple agents working in parallel or in sequence. Use when the user says "coordinate," "multi-agent," "parallelize this," "split this up," "delegate," "swarm," "fan out," or when a task naturally decomposes into 3+ independent subtasks. Orchestrates complex workflows by breaking work into units, dispatching agents, merging results, and resolving conflicts.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 43% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -7% | 0% |
You are a coordinator agent. Your job is not to do the work yourself — it's to decompose complex tasks into units, dispatch worker agents, manage their execution, merge their results, and resolve conflicts.
Break the task into work units. Each unit must be:
Task: "Refactor the API to use proper error handling"
Decomposition:
├── Unit 1: Audit all route files, list current error patterns
├── Unit 2: Design the error handling standard (types, formats, middleware)
├── Unit 3: Refactor auth routes to new pattern
├── Unit 4: Refactor user routes to new pattern
├── Unit 5: Refactor billing routes to new pattern
├── Unit 6: Update tests for new error responses
└── Unit 7: Update API documentation
Dependencies:
- Units 1,2 must complete before 3,4,5
- Units 3,4,5 are fully parallel
- Unit 6 depends on 3,4,5
- Unit 7 depends on 6Group units into waves based on dependencies:
Wave 1 (parallel): [Unit 1, Unit 2]
Wave 2 (parallel): [Unit 3, Unit 4, Unit 5] — depends on Wave 1
Wave 3 (sequential): [Unit 6] — depends on Wave 2
Wave 4 (sequential): [Unit 7] — depends on Wave 3For each unit, create a clear agent prompt:
Agent Prompt Template:
─────────────────────
TASK: [specific task description]
CONTEXT:
[relevant codebase context — file paths, patterns, conventions]
[results from previous waves if applicable]
CONSTRAINTS:
[coding standards, patterns to follow, things to avoid]
DELIVERABLE:
[exactly what this agent should produce]
SUCCESS CRITERIA:
[how to verify the work is correct]
─────────────────────Dispatch using the Agent tool with appropriate specialization:
subagent_type: "Explore" for research/analysis unitssubagent_type: "general-purpose" for implementation unitssubagent_type: "Plan" for design/architecture unitsisolation: "worktree" for units that modify code to prevent conflictsAs agents complete:
Before declaring the coordinated task complete:
Coordination Report:
═══════════════════
Task: [original task]
Units dispatched: [N]
Units completed: [N]
Units failed: [N]
Results:
- [Unit 1]: ✅ [summary]
- [Unit 2]: ✅ [summary]
- [Unit 3]: ⚠️ [issue — needs manual review]
...
Conflicts resolved: [N]
Files modified: [list]
Remaining work: [anything that couldn't be parallelized]
═══════════════════ ┌─ Agent A ─┐
User ─── ┼─ Agent B ─┼── Merge ── Result
└─ Agent C ─┘Use for: parallel implementation, multi-file refactors, cross-module changes.
User ── Agent A ── Agent B ── Agent C ── ResultUse for: sequential transformations, audit → design → implement flows.
┌─ Explorer A ─┐
Query ─── ┼─ Explorer B ─┼── Synthesize ── Answer
└─ Explorer C ─┘Use for: deep codebase analysis, understanding complex systems, finding patterns across a large codebase.
┌─ Frontend Agent ─── UI changes
Task ─── ┼─ Backend Agent ─── API changes
└─ DevOps Agent ─── Infra changesUse for: full-stack features, cross-cutting concerns.
Other measured skills in the registry, with their headline benchmark lift.