| name | coordination |
| description | Multi-agent coordination for parallel plan execution with the coordinate and coord_output tools. |
Coordination Skill
Multi-agent coordination for parallel task execution using the two-track architecture:
plan tool: Create specs from prose/PRDs (interview → scout → elaborate → structure)
coordinate tool: Execute TASK-XX format specs (validate → dispatch → execute → review)
YOU HAVE THE coordinate AND plan TOOLS AVAILABLE.
Two-Track Architecture
┌─────────────────────────────────────────────────────────────────┐
│ PLAN TOOL (create specs) COORDINATE TOOL (execute) │
│ ───────────────────────── ─────────────────────────── │
│ prose/PRD → interview TASK-XX spec → validate │
│ → scout → dispatch │
│ → elaborate → workers │
│ → structure → review │
│ → spec.md ─────────────────────────→ │
└─────────────────────────────────────────────────────────────────┘
When to Use Each Tool
Use plan when:
- User has prose, PRD, or requirements to convert into a spec
- User says "plan", "create a spec", "help me design"
- Input is NOT already in TASK-XX format
Use coordinate when:
- User has a valid TASK-XX format spec
- User says "implement", "execute", "run", "coordinate"
- The file already contains
## TASK-XX: sections
Coordinate Tool
IMPORTANT: The coordinate tool now requires a valid TASK-XX format spec. It will NOT auto-convert prose or PRDs.
coordinate({ plan: "./spec.md" })
Parameters
coordinate({
plan: string,
agents: number | string[],
reviewCycles: number | false,
supervisor: boolean | object,
costLimit: number,
async: boolean,
maxFixCycles: number,
validate: boolean,
checkTests: boolean,
coordinator: string | { model: string },
worker: string | { model: string },
reviewer: string | { model: string },
})
Examples
coordinate({ plan: "./spec.md" })
coordinate({ plan: "./spec.md", agents: 8 })
coordinate({ plan: "./spec.md", async: true })
coordinate({ plan: "./spec.md", reviewCycles: false })
coordinate({
plan: "./spec.md",
worker: "claude-sonnet-4-20250514"
})
Pipeline Phases (coordinate)
- Validate — Checks spec is valid TASK-XX format
- Dispatch — Assigns tasks to workers respecting dependencies
- Workers — Execute tasks in parallel with self-review
- Review — Code reviewer checks all changes
- Fixes — Workers fix any issues found
- Complete — Final summary
Plan Tool
Creates TASK-XX specs from prose, PRDs, or requirements through an interactive flow.
plan({ input: "./requirements.md" })
plan({ input: "Add user authentication with JWT tokens" })
plan({ continue: "./spec.md" })
plan({ input: "./prd.md", skipInterview: true })
Parameters
plan({
input: string,
continue: string,
skipInterview: boolean,
skipScout: boolean,
maxInterviewRounds: number,
output: string,
format: "markdown" | "json",
model: string,
scoutModel: string,
})
Pipeline Phases (plan)
- Interview — Gather requirements interactively (can skip with Ctrl+D or timeout)
- Scout — Analyze codebase structure and patterns
- Elaborate — Expand requirements with codebase context
- Structure — Convert to TASK-XX format spec
- Output — Save spec to file
Required Spec Format (TASK-XX)
The coordinate tool requires this format:
# Project Title
Description of what we're building.
## TASK-01: Create auth types
Priority: P1
Files: src/types.ts (create)
Depends on: none
Acceptance: AuthCredentials and User interfaces exported
## TASK-02: Implement login endpoint
Priority: P1
Files: src/routes/auth.ts (create)
Depends on: TASK-01
Acceptance: POST /login returns JWT, tests pass
Required fields per task:
## TASK-XX: Title — Task ID and title
Priority: P0|P1|P2|P3 — Execution priority
Files: — Files to create/modify
Depends on: — Dependencies (or "none")
Acceptance: — Testable completion criteria
Typical Workflow
plan({ input: "./requirements.md" })
coordinate({ plan: "./specs/requirements-spec.md" })
Or if user already has a valid spec:
coordinate({ plan: "./valid-spec.md" })
Monitoring
During execution: TUI shows live progress with pipeline status, workers, events.
Async mode: Use /jobs command to open full dashboard:
- Pipeline status
- Task queue with dependencies
- Worker status with cost/duration
- Event stream
Output Retrieval
When worker output is truncated, use coord_output:
coord_output({ ids: ["worker-04ea"] })
coord_output({ ids: ["scout", "planner", "review"] })
coord_output({ ids: ["worker-04ea"], format: "stripped" })
DO NOT
- Don't pass prose to coordinate — Use
plan tool first to create a spec
- Don't manually write TASK-XX specs — Let
plan tool generate them
- Don't skip validation errors — Fix the spec or use
plan to create a valid one
Error Handling
If coordinate returns a validation error like:
Invalid spec format. The coordinate tool requires a valid TASK-XX format spec.
Errors:
- No valid TASK-XX format tasks found
Use the plan tool first:
plan({ input: "./your-file.md" })
coordinate({ plan: "./specs/your-file-spec.md" })