From agent-teams
Decompose complex tasks into parallelizable units, design dependency graphs, and coordinate multi-agent work with workload balancing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-teams:task-coordination-strategiesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Strategies for decomposing complex tasks into parallelizable units, designing dependency graphs, writing effective task descriptions, and monitoring workload across agent teams.
Strategies for decomposing complex tasks into parallelizable units, designing dependency graphs, writing effective task descriptions, and monitoring workload across agent teams.
Split work by architectural layer:
Best for: Full-stack features, vertical slices.
Caveat: "By Layer" is a form of problem-centric decomposition (planner / coder / tester roles in disguise). It works when the layers genuinely have isolable contexts; it fails when teammates end up handing context back and forth at every layer boundary. Default to By File Ownership or By Component when context can be cleanly partitioned. Use "By Layer" only when context isolation per layer is real, not aspirational. Reference: docs/references/agent-teams-best-practices.md § When to use a team.
Split work by functional component:
Best for: Microservices, modular architectures
Split work by cross-cutting concern:
Best for: Code reviews, audits
Split work by file/directory boundaries:
src/components/ -- Implementer 1src/api/ -- Implementer 2src/utils/ -- Implementer 3Best for: Parallel implementation, conflict avoidance
Independent (Best parallelism):
Task A --+
Task B --+--> Integration
Task C --+
Sequential (Necessary dependencies):
Task A --> Task B --> Task C
Diamond (Mixed):
+-> Task B --+
Task A -+ +--> Task D
+-> Task C --+
TaskCreate: { subject: "Build API endpoints" } -> Task #1
TaskCreate: { subject: "Build frontend components" } -> Task #2
TaskCreate: { subject: "Integration testing" } -> Task #3
TaskUpdate: { taskId: "3", addBlockedBy: ["1", "2"] } -> #3 waits for #1 and #2
Every task should include:
TaskUpdate(completed) BEFORE messaging the lead." Tasks left in in_progress block dependent work.## Objective
Build the user authentication API endpoints.
## Owned Files
- src/api/auth.ts
- src/api/middleware/auth-middleware.ts
- src/types/auth.ts (shared -- read only, do not modify)
## Requirements
- POST /api/login -- accepts email/password, returns JWT
- POST /api/register -- creates new user, returns JWT
- GET /api/me -- returns current user profile (requires auth)
## Interface Contract
- Import User type from src/types/auth.ts (owned by implementer-1)
- Export AuthResponse type for frontend consumption
## Acceptance Criteria
- All endpoints return proper HTTP status codes
- JWT tokens expire after 24 hours
- Passwords are hashed with bcrypt
## Out of Scope
- OAuth/social login
- Password reset flow
- Rate limiting
| Signal | Meaning | Action |
|---|---|---|
| Teammate idle, others busy | Uneven distribution | Reassign pending tasks |
| Teammate stuck on one task | Possible blocker | Check in, offer help |
| All tasks blocked | Dependency issue | Resolve critical path first |
| One teammate has 3x others | Overloaded | Split tasks or reassign |
TaskList to assess current stateTaskUpdate to reassign tasksSendMessage to notify affected teammatesTo enforce rules at task-level boundaries without babysitting, wire the native team hooks:
TaskCreated -- exit code 2 blocks task creation. Use to enforce that every task description includes ownership and acceptance criteria.TaskCompleted -- exit code 2 blocks completion. Use to gate lint / type-check / test before a task closes.TeammateIdle -- exit code 2 returns the teammate to work with feedback. Use when a teammate marks itself idle but the work is not actually finished.Hooks turn "trust and hope" into "trust and verify" without inflating spawn prompts. Reference: docs/references/agent-teams-best-practices.md § Hooks for quality gates.
npx claudepluginhub acaprino/claude-code-daodan --plugin agent-teamsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.