team-communication-protocols by wshobson/agents
npx skills add https://github.com/wshobson/agents --skill team-communication-protocols用于智能体团队成员之间高效沟通的协议,包括消息类型选择、计划审批流程、关闭程序以及需要避免的常见反模式。
message(直接消息)— 默认选择发送给单个特定队友:
{
"type": "message",
"recipient": "implementer-1",
"content": "Your API endpoint is ready. You can now build the frontend form.",
"summary": "API endpoint ready for frontend"
}
用于:任务更新、协调、问题、集成通知。
broadcast — 谨慎使用同时发送给所有队友:
{
"type": "broadcast",
"content": "Critical: shared types file has been updated. Pull latest before continuing.",
"summary": "Shared types updated"
}
:影响每个人的关键阻塞问题、共享资源的重大变更。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
为何要谨慎?:每次广播会发送 N 条独立消息(每个队友一条),消耗的 API 资源与团队规模成正比。
shutdown_request — 优雅终止请求队友关闭:
{
"type": "shutdown_request",
"recipient": "reviewer-1",
"content": "Review complete, shutting down team."
}
队友会以 shutdown_response 响应(批准或附理由拒绝)。
| 反模式 | 问题 | 更好的方法 |
|---|---|---|
| 广播常规更新 | 浪费资源,造成干扰 | 直接消息给受影响的队友 |
| 发送 JSON 状态消息 | 并非为结构化数据设计 | 使用 TaskUpdate 来更新任务状态 |
| 在集成点不沟通 | 队友基于过时的接口进行构建 | 在你的接口就绪时发送消息 |
| 通过消息进行微观管理 | 使队友不堪重负,拖慢工作 | 在里程碑节点检查,而不是每一步 |
| 使用 UUID 而非名称 | 难以阅读,容易出错 | 始终使用队友名称 |
| 忽略空闲队友 | 浪费容量 | 分配新工作或关闭 |
当队友以 plan_mode_required 模式生成时:
ExitPlanMode,这会向负责人发送 plan_approval_requestplan_approval_response 响应:批准:
{
"type": "plan_approval_response",
"request_id": "abc-123",
"recipient": "implementer-1",
"approve": true
}
拒绝并附反馈:
{
"type": "plan_approval_response",
"request_id": "abc-123",
"recipient": "implementer-1",
"approve": false,
"content": "Please add error handling for the API calls"
}
type: "shutdown_request" 的 JSON 消息shutdown_response 响应:
approve: true — 队友保存状态并退出approve: false + 原因 — 队友继续工作Teammate 清理如果队友拒绝关闭:
通过读取配置文件查找团队成员:
位置:~/.claude/teams/{team-name}/config.json
结构:
{
"members": [
{
"name": "security-reviewer",
"agentId": "uuid-here",
"agentType": "team-reviewer"
},
{
"name": "perf-reviewer",
"agentId": "uuid-here",
"agentType": "team-reviewer"
}
]
}
始终使用 name 进行消息传递和任务分配。切勿直接使用 agentId。
每周安装量
2.4K
代码仓库
GitHub 星标
32.2K
首次出现
2026年2月5日
安全审计
安装于
gemini-cli1.9K
opencode1.9K
codex1.9K
claude-code1.8K
cursor1.8K
github-copilot1.7K
Protocols for effective communication between agent teammates, including message type selection, plan approval workflows, shutdown procedures, and common anti-patterns to avoid.
message (Direct Message) — Default ChoiceSend 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 SparinglySend 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 TerminationRequest 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).
| 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 |
When a teammate is spawned with plan_mode_required:
ExitPlanMode which sends a plan_approval_request to the leadplan_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"
}
type: "shutdown_request"shutdown_response:
approve: true — Teammate saves state and exitsapprove: false + reason — Teammate continues workingTeammate cleanupIf a teammate rejects shutdown:
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"
}
]
}
Always usename for messaging and task assignment. Never use agentId directly.
Weekly Installs
2.4K
Repository
GitHub Stars
32.2K
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli1.9K
opencode1.9K
codex1.9K
claude-code1.8K
cursor1.8K
github-copilot1.7K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI代码审查工具 - 自动化安全漏洞检测与代码质量分析 | 支持多领域检查清单
1,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装