task-coordination-strategies
它能做什么
这个工具帮助你把大型复杂任务拆分成更小、更容易管理的部分。它还会梳理这些部分之间的联系,以及谁该做什么,确保工作在团队中公平、高效地分配。
适用场景
- ✓把大型项目拆分成小步骤时。
- ✓确定各项任务的先后顺序时。
- ✓在多个人或多个 AI 之间分配工作时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/agent-teams/skills/task-coordination-strategies/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把网站的开发拆分成几个小步骤,并说明它们之间的依赖关系。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析主要任务,并将其拆分为子任务。它会生成一张“地图”,显示哪些子任务依赖于其他子任务,以及应该如何分配工作,让大家能够协作而不互相干扰。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 C
Diamond (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 #2
Task 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)
## 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
Workload 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
常见问题
什么是“依赖关系”?
依赖关系就像一条规则,规定某项任务必须等另一项任务完成后才能开始。例如,墙没砌好之前,就不能刷墙漆。
什么是“工作量均衡”?
就是确保工作在团队成员之间平均分配,不让任何人负担过重,从而加快工作进度。
我怎么知道工作分配是否合理?
这个工具可以帮你发现某人的工作量是否过大,或者是否存在瓶颈(即任务因等待其他人而停滞)。如有必要,它还会建议如何重新分配任务。
详情
作者的原始描述
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.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6630
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …