Multi-agent coordination pattern for Claude Code acting as Project Manager...
This skill enables Claude Code to operate as a project manager that coordinates multiple background agents to complete features. Claude Code should NEVER implement code directlyβonly dispatch, verify, and track progress.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β COORDINATOR (Claude Code / Opus) β
β β
β 1. Read task-list.json β
β 2. Find next eligible task (pending + deps complete) β
β 3. Spawn background agent with minimal context β
β 4. Wait for completion β
β 5. Run verification β
β 6. Update progress-report.md β
β 7. Repeat β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββΌββββββββββββββββββββ
βΌ βΌ βΌ
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β TypeScript β β Swift β β SQL β
β Agent β β Agent β β Agent β
β (Sonnet) β β (Sonnet) β β (Sonnet) β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
See resources/task-list.schema.json for full schema.
{
"id": 9,
"title": "Fix BUG-001: Blackout Dates",
"status": "pending",
"execution_mode": "delegate",
"agent_type": "ascent-typescript-agent",
"depends_on": [1],
"files_to_modify": ["src/constraints/availability.ts"],
"test_file": "tests/unit/blackoutDates.test.ts",
"context_doc": "investigation-reports/bug-001-blackout-dates.md",
"verification_cmd": "npm test -- --grep 'blackout'"
}
| Field | Purpose |
|---|---|
status |
"pending", "in_progress", "complete", "failed" |
execution_mode |
"delegate" (spawn agent), "human" (skip), "coordinator" (do yourself) |
agent_type |
Which specialized agent to spawn |
depends_on |
Task IDs that must be complete first |
context_doc |
Path to investigation report or spec (agent reads this) |
verification_cmd |
Command to run after agent completes |
Keep it lean. See resources/progress-report.example.md.
# Progress: [Feature Name]
Updated: 2025-12-28 14:30
## Status: Batch 2 - P0 Fixes
## Completed
- [x] Task 1-8: Investigation (Batch 1)
## In Progress
- [ ] Task 9: Blackout Dates - in_progress (agent spawned 14:25)
## Up Next
- Task 10: Commitments
## Blockers
None
When spawning a background agent, provide a minimal prompt:
Task 9: Fix BUG-001 - Blackout Dates
Context: Read investigation-reports/bug-001-blackout-dates.md
Files to modify:
- packages/engine/src/core/constraints/availability.ts
- packages/engine/src/core/types.ts
Test file to create:
- packages/engine/tests/unit/blackoutDates.test.ts
Approach: TDD - write failing tests first, then implement fix
When done, run: npm test -- --grep 'blackout'
DO NOT include:
Agent completes
β
βΌ
Run verification_cmd
β
ββββ PASS βββ Update status="complete", update progress-report.md
β
ββββ FAIL βββ Check error, decide:
- Retry with same agent
- Spawn different agent
- Flag for human review
Tasks can be organized into batches for parallel/sequential execution:
"execution_strategy": {
"batches": [
{"ids": [1,2,3], "parallel": true, "name": "Investigation"},
{"ids": [4,5], "parallel": false, "name": "Critical Fixes"}
]
}
parallel: true β Spawn all agents at onceparallel: false β Wait for each to complete before nextAll artifacts belong in the feature folder. Structure:
features/1-in-progress/[feature-name]/
βββ feature-brief.md # Source of truth
βββ task-list.json # Agent-readable tasks
βββ progress.md # Human-readable status
βββ investigation-reports/ # Context gathering outputs
β βββ bug-001-[short-name].md
βββ verification-reports/ # Test/review outputs
βββ integration-test-results.md
Pattern: [task-id]-[type]-[short-name].md
| Artifact Type | Pattern | Example |
|---|---|---|
| Investigation | task-[id]-investigation-[topic].md |
task-03-investigation-rest-days.md |
| Implementation notes | task-[id]-notes-[topic].md |
task-09-notes-blackout-fix.md |
| Verification | task-[id]-verification-[scope].md |
task-17-verification-integration.md |
| Review | task-[id]-review-[type].md |
task-15-review-code.md |
Be extremely token efficient when creating artifacts:
When artifacts are created, add to progress:
## Artifacts
- Task 3: [investigation-reports/task-03-investigation-rest-days.md]
- Task 17: [verification-reports/task-17-verification-integration.md]
resources/task-list.schema.json - JSON schema for validationresources/task-list.example.json - Minimal working exampleresources/progress-report.example.md - Lean format template