| name | agent-coordination |
| version | 0.3.0 |
| category | agent |
| description | Coordinate multiple agents for software development across any language. Use this skill when running parallel execution of independent tasks, sequential chains with dependencies, swarm analysis from multiple perspectives, or iterative refinement loops — even if they just say "run these in parallel" or "coordinate agents". Not for goap-agent. |
| license | MIT |
Agent Coordination
Coordinate multiple agents efficiently for complex development tasks across any programming language.
Session Start Protocol: Identify parallelizable work and spawn task agents immediately at the start of a session, instead of doing everything sequentially.
When to Use
- User asks to run parallel execution of independent tasks
- Need to coordinate sequential chains with dependencies
- Planning swarm analysis or iterative refinement loops
- Even if they just say "run these in parallel" or "coordinate agents"
Quick Start
Choose your coordination strategy:
- Parallel - Independent tasks (no dependencies, concurrent execution)
- Sequential - Dependent tasks (A → B → C)
- Swarm - Multi-perspective analysis
- Hybrid - Multi-phase workflows
- Iterative - Progressive refinement
Available Agents
| Agent | Best For |
|---|
| code-reviewer | Quality assessment, standards |
| test-runner | Execute tests, verify functionality |
| feature-implementer | Build new capabilities |
| refactorer | Improve existing code |
| debugger | Diagnose and fix issues |
| security-auditor | Find vulnerabilities |
| performance-optimizer | Speed and efficiency |
| loop-agent | Orchestrate iterations |
Parallel Execution
When to Parallelize
Tasks are independent when:
- ✓ No data dependencies
- ✓ No resource conflicts
- ✓ No ordering requirements
- ✓ Failures are isolated
How to Launch
Critical: Use single message with multiple Task tool calls:
Single message:
- Task → Agent A
- Task → Agent B
- Task → Agent C
All start simultaneously.
Patterns
Homogeneous Parallel — Same agent type, different inputs:
├─ test-runner: Test module A
├─ test-runner: Test module B
└─ test-runner: Test module C
Heterogeneous Parallel — Different agent types:
├─ code-reviewer: Quality analysis
├─ test-runner: Test execution
└─ debugger: Performance profiling
Parallel with Convergence — Parallel execution → Single synthesis:
Phase 1: Parallel investigation
Phase 2: Synthesize findings
Synchronization Strategies
- Wait for All (AND): All must complete
- Wait for Any (OR): First success proceeds
- Wait for Threshold: N of M must complete
Error Handling
One failing doesn't stop others:
├─ Agent A: ✓ Success
├─ Agent B: ✗ Failed
└─ Agent C: ✓ Success
Collect A and C, report B failed
Strategies: Fail Fast, Best Effort, Retry Failed
Performance
Sequential = T1 + T2 + T3
Parallel = max(T1, T2, T3)
Speedup = Sequential / Parallel
Sequential Execution
For dependent tasks with quality gates between phases:
1. Swarm analysis (parallel agents gather insights)
2. Sequential execution (apply findings)
3. Parallel validation (verify results)
Common Patterns
Analysis + Execution:
1. Swarm analysis (parallel agents gather insights)
2. Sequential execution (apply findings)
3. Parallel validation (verify results)
Test-Driven Workflow:
1. test-runner: Run existing tests
2. feature-implementer: Add functionality
3. test-runner: Verify implementation
4. code-reviewer: Quality check
Performance Optimization:
Loop with performance-optimizer until:
- Metrics meet targets
- No more optimizations found
- Max iterations reached
Quality Gates
Between each phase, verify:
- Code compiles/parses correctly
- Tests pass with adequate coverage
- Security scans clean
- Performance acceptable
- No regressions introduced
Language Support
This coordination skill works with:
- Python (Django, Flask, FastAPI)
- JavaScript/TypeScript (Node.js, React, Vue)
- Java (Spring, Jakarta EE)
- Go (Gin, Echo)
- Rust (Actix, Rocket)
- C# (.NET, ASP.NET Core)
Native Capabilities vs. Custom Coordination
When running in Claude Code, native capabilities may replace custom patterns:
| This Skill's Pattern | Claude Code Native Equivalent | When to Use Native |
|---|
| Parallel (heterogeneous) | Sub-agents | Quick focused tasks needing noise isolation |
| Parallel (homogeneous) | Agent View | Multiple independent tasks to monitor |
| Swarm (peer coordination) | Agent Teams | Workers need to share findings during execution |
| Hybrid (multi-phase) | Dynamic Workflows | Reusable procedures with verification loops |
| Parallel branch edits | Worktrees | Multiple agents editing same files |
Rule of thumb: Use native capabilities when available in Claude Code. Fall back to
this skill's patterns for tool-agnostic runtimes (OpenCode, Gemini CLI, Qwen Code) or
when native capabilities don't match the coordination topology you need.
For detailed guidance, see agents-docs/AGENT_TEAMS_GUIDE.md.
See Also
goap-agent — Top-level orchestrator
delegate — Lightweight retrieval agent
implementer — Atomic code execution agent
Rationalizations
| Rationalization | Reality |
|---|
| "I'll just handle everything sequentially myself" | Parallel coordination reduces wall-clock time and leverages specialized agent strengths. |
| "Coordination overhead isn't worth it for small tasks" | Even small tasks benefit from quality gates and specialized validation that coordination provides. |
Red Flags
References
Voice & Context
- Default:
professional + blog
- Reference:
voice-profiles skill for definitions and auto-detection.