
task-coordination-strategies
โ 37,559by wshobson ยท part of wshobson/agents
Decompose complex tasks, design dependency graphs, and coordinate multi-agent work with proper task descriptions and workload balancing. Use this skill when breaking down work for agent teams, managing task dependencies, or monitoring team progress.
This is the playbook your agent receives when the skill activates โ you don't need to read it to use the skill, but it's here to audit before installing.
Task Coordination Strategies
Strategies for decomposing complex tasks into parallelizable units, designing dependency graphs, writing effective task descriptions, and monitoring workload across agent teams.
When to Use This Skill
- Breaking down a complex task for parallel execution
- Designing task dependency relationships (blockedBy/blocks)
- Writing task descriptions with clear acceptance criteria
- Monitoring and rebalancing workload across teammates
- Identifying the critical path in a multi-task workflow
Task Decomposition Strategies
By Layer
Split work by architectural layer:
- Frontend components
- Backend API endpoints
- Database migrations/models
- Test suites
Best for: Full-stack features, vertical slices
By Component
Split work by functional component:
- Authentication module
- User profile module
- Notification module
Best for: Microservices, modular architectures
By Concern
Split work by cross-cutting concern:
- Security review
- Performance review
- Architecture review
Best for: Code reviews, audits
By File Ownership
Split work by file/directory boundaries:
src/components/โ Implementer 1src/api/โ Implementer 2src/utils/โ Implementer 3
Best for: Parallel implementation, conflict avoidance
Dependency Graph Design
Principles
- Minimize chain depth โ Prefer wide, shallow graphs over deep chains
- Identify the critical path โ The longest chain determines minimum completion time
- Use blockedBy sparingly โ Only add dependencies that are truly required
- Avoid circular dependencies โ Task A blocks B blocks A is a deadlock
Patterns
Independent (Best parallelism):
Task A โโ
Task B โโผโโ Integration
Task C โโSequential (Necessary dependencies):
Task A โ Task B โ Task CDiamond (Mixed):
โโ Task B โโ
Task A โโค โโ Task D
โโ Task C โโUsing blockedBy/blocks
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 #2Task Description Best Practices
Every task should include:
- Objective โ What needs to be accomplished (1-2 sentences)
- Owned Files โ Explicit list of files/directories this teammate may modify
- Requirements โ Specific deliverables or behaviors expected
- Interface Contracts โ How this work connects to other teammates' work
- Acceptance Criteria โ How to verify the task is done correctly
- Scope Boundaries โ What is explicitly out of scope
Template
## 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)
## 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 limitingWorkload Monitoring
Indicators of Imbalance
| 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 |
Rebalancing Steps
- Call
TaskListto assess current state - Identify idle or overloaded teammates
- Use
TaskUpdateto reassign tasks - Use
SendMessageto notify affected teammates - Monitor for improved throughput
npx skills add https://github.com/wshobson/agents --skill task-coordination-strategiesRun this in your project โ your agent picks the skill up automatically.
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)
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ