team-communication-protocols
它能做什么
这个工具帮助你设置 AI 团队成员之间的沟通方式。它会教你选择合适的消息类型(发给某个同事还是群发给全体成员),如何批准工作计划,以及如何让团队成员正确地停止工作。
适用场景
- ✓组建新的 AI 团队并设定沟通规则时。
- ✓决定是给某个特定同事发消息,还是群发给整个团队时。
- ✓团队负责人需要在成员开始工作前批准其工作计划时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/agent-teams/skills/team-communication-protocols/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该如何为我的新机器人团队设置沟通方式?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会提供消息示例,并说明何时使用每种类型。它还会详细介绍计划审批流程,以及如何请团队成员停止工作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Team Communication Protocols
Protocols for effective communication between agent teammates, including message type selection, plan approval workflows, shutdown procedures, and common anti-patterns to avoid.
When to Use This Skill
- Establishing communication norms for a new team
- Choosing between message types (message, broadcast, shutdown_request)
- Handling plan approval workflows
- Managing graceful team shutdown
- Discovering teammate identities and capabilities
Message Type Selection
message (Direct Message) — Default Choice
Send to a single specific teammate:
{
"type": "message",
"recipient": "implementer-1",
"content": "Your API endpoint is ready. You can now build the frontend form.",
"summary": "API endpoint ready for frontend"
}
Use for: Task updates, coordination, questions, integration notifications.
broadcast — Use Sparingly
Send to ALL teammates simultaneously:
{
"type": "broadcast",
"content": "Critical: shared types file has been updated. Pull latest before continuing.",
"summary": "Shared types updated"
}
Use ONLY for: Critical blockers affecting everyone, major changes to shared resources.
Why sparingly?: Each broadcast sends N separate messages (one per teammate), consuming API resources proportional to team size.
shutdown_request — Graceful Termination
Request a teammate to shut down:
{
"type": "shutdown_request",
"recipient": "reviewer-1",
"content": "Review complete, shutting down team."
}
The teammate responds with shutdown_response (approve or reject with reason).
Communication Anti-Patterns
| Anti-Pattern | Problem | Better Approach |
|---|---|---|
| Broadcasting routine updates | Wastes resources, noise | Direct message to affected teammate |
| Sending JSON status messages | Not designed for structured data | Use TaskUpdate to update task status |
| Not communicating at integration points | Teammates build against stale interfaces | Message when your interface is ready |
| Micromanaging via messages | Overwhelms teammates, slows work | Check in at milestones, not every step |
| Using UUIDs instead of names | Hard to read, error-prone | Always use teammate names |
| Ignoring idle teammates | Wasted capacity | Assign new work or shut down |
Plan Approval Workflow
When a teammate is spawned with plan_mode_required:
- Teammate creates a plan using read-only exploration tools
- Teammate calls
ExitPlanModewhich sends aplan_approval_requestto the lead - Lead reviews the plan
- Lead responds with
plan_approval_response:
Approve:
{
"type": "plan_approval_response",
"request_id": "abc-123",
"recipient": "implementer-1",
"approve": true
}
Reject with feedback:
{
"type": "plan_approval_response",
"request_id": "abc-123",
"recipient": "implementer-1",
"approve": false,
"content": "Please add error handling for the API calls"
}
Shutdown Protocol
Graceful Shutdown Sequence
- Lead sends shutdown_request to each teammate
- Teammate receives request as a JSON message with
type: "shutdown_request" - Teammate responds with
shutdown_response:approve: true— Teammate saves state and exitsapprove: false+ reason — Teammate continues working
- Lead handles rejections — Wait for teammate to finish, then retry
- After all teammates shut down — Call
TeamDeleteto remove team resources
Handling Rejections
If a teammate rejects shutdown:
- Check their reason (usually "still working on task")
- Wait for their current task to complete
- Retry shutdown request
- If urgent, user can force shutdown
Teammate Discovery
Find team members by reading the config file:
Location: ~/.claude/teams/{team-name}/config.json
Structure:
{
"members": [
{
"name": "security-reviewer",
"agentId": "uuid-here",
"agentType": "team-reviewer"
},
{
"name": "perf-reviewer",
"agentId": "uuid-here",
"agentType": "team-reviewer"
}
]
}
…
常见问题
什么时候应该群发消息(broadcast)?
“群发”只适用于影响所有人的重要通知,比如对共享文件进行关键修改。日常更新则应直接发消息给相关的同事。
负责人如何批准团队成员的计划?
团队成员先发送审批请求。负责人审阅后,回复批准或拒绝,必要时附上理由。
我怎么知道同事的名字,以便发送消息?
成员名字可以在配置文件中找到。发送消息时,请始终使用文件中列出的名字,而不是 ID 或其他标识符。
详情
作者的原始描述
Structured messaging protocols for agent team communication including message type selection, plan approval, shutdown procedures, and anti-patterns to avoid. Use this skill when establishing communication norms for a newly spawned team, when deciding whether to send a direct message or a broadcast, when a team-lead needs to review and approve an implementer's plan before work begins, when orchestr
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6631
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …