Structured messaging protocols for agent team communication

Team communication protocols

by wshobson · MIT license · ★ 39,857 on GitHub · v1.0.2 · updated Sep 21

Team communication protocols cover

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,…

---
name: team-communication-protocols
description: 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 orchestrating a graceful team shutdown after all tasks are complete, or when debugging why teammates are not coordinating correctly at integration points.
version: 1.0.2
---

# 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

Overview

Protocols for effective communication between agent teammates, including message type selection, plan approval workflows, shutdown procedures, and common anti-patterns to avoid.

Manual install (npx, ZIP)
Claude Codenpx skills add wshobson/agents --skill team-communication-protocols -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/wshobson/agents/tar.gz/4236bb91f839 \ | tar -xz -C ~/.claude/skills --strip-components=4 agents-4236bb91f839/plugins/agent-teams/skills/team-communication-protocols
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/3072d1a210d63e100b47/team-communication-protocols.zip" -OutFile "$env:TEMP\team-communication-protocols.zip"; Expand-Archive "$env:TEMP\team-communication-protocols.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md7.2 KB
  • references/1 file · 2.1 KB
Read the files here
wshobson/4236bb92 files
Shared references2SKILL.md reads these from elsewhere in the repo. Not in the ZIP.Get them on GitHub ↗
SKILL.md
Show the full text181 lines

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:

  1. Teammate creates a plan using read-only exploration tools
  2. Teammate calls ExitPlanMode which sends a plan_approval_request to the lead
  3. Lead reviews the plan
  4. 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
  1. Lead sends shutdown_request to each teammate
  2. Teammate receives request as a JSON message with type: "shutdown_request"
  3. Teammate responds with shutdown_response:
    • approve: true — Teammate saves state and exits
    • approve: false + reason — Teammate continues working
  4. Lead handles rejections — Wait for teammate to finish, then retry
  5. After all teammates shut down — Call TeamDelete to 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"
    }
  ]
}

Always use name for messaging and task assignment. Never use agentId, role names, or unsuffixed aliases directly. If a teammate was spawned as team-lead-2, send to team-lead-2, not team-lead.

Troubleshooting

A teammate is not responding to messages. Check the teammate's task status. If it is idle, it may have completed its task and is waiting to be assigned new work or shut down. If it is still active, it may be mid-execution and will process messages once the current operation finishes.

A teammate says it cannot see SendMessage. Check the teammate agent's tools: frontmatter. Agent Teams communication tools such as SendMessage, TaskList, TaskGet, and TaskUpdate must be listed explicitly when an agent uses a restricted tool allowlist.

The lead is sending broadcasts for every status update. This is a common anti-pattern. Broadcasts are expensive — each one sends N messages. Use direct messages (type: "message") for point-to-point updates. Reserve broadcasts for critical shared-resource changes like an updated interface contract.

A teammate rejected a shutdown request unexpectedly. The teammate is still working. Check the rejection reason in the shutdown_response content field, wait for the work to finish, then retry. Never force-terminate a teammate that has unsaved work.

A plan_approval_request arrived but the request_id is missing. The teammate called ExitPlanMode without the required request context. Have the teammate re-enter plan mode, complete exploration, and call ExitPlanMode again. The request_id is generated automatically by the plan mode system.

Two teammates are waiting on each other and neither is making progress. This is a deadlock: both are blocked waiting for the other to finish first. The lead should send a direct message to one teammate with a stub or partial result so it can unblock and proceed.

1---
2name: team-communication-protocols
3description: 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 orchestrating a graceful team shutdown after all tasks are complete, or when debugging why teammates are not coordinating correctly at integration points.
4version: 1.0.2
5---
6 
7# Team Communication Protocols
8 
9Protocols for effective communication between agent teammates, including message type selection, plan approval workflows, shutdown procedures, and common anti-patterns to avoid.
10 
11## When to Use This Skill
12 
13- Establishing communication norms for a new team
14- Choosing between message types (message, broadcast, shutdown_request)
15- Handling plan approval workflows
16- Managing graceful team shutdown
17- Discovering teammate identities and capabilities
18 
19## Message Type Selection
20 
21### `message` (Direct Message) — Default Choice
22 
23Send to a single specific teammate:
24 
25```json
26{
27 "type": "message",
28 "recipient": "implementer-1",
29 "content": "Your API endpoint is ready. You can now build the frontend form.",
30 "summary": "API endpoint ready for frontend"
31}
32```
33 
34**Use for**: Task updates, coordination, questions, integration notifications.
35 
36### `broadcast` — Use Sparingly
37 
38Send to ALL teammates simultaneously:
39 
40```json
41{
42 "type": "broadcast",
43 "content": "Critical: shared types file has been updated. Pull latest before continuing.",
44 "summary": "Shared types updated"
45}
46```
47 
48**Use ONLY for**: Critical blockers affecting everyone, major changes to shared resources.
49 
50**Why sparingly?**: Each broadcast sends N separate messages (one per teammate), consuming API resources proportional to team size.
51 
52### `shutdown_request` — Graceful Termination
53 
54Request a teammate to shut down:
55 
56```json
57{
58 "type": "shutdown_request",
59 "recipient": "reviewer-1",
60 "content": "Review complete, shutting down team."
61}
62```
63 
64The teammate responds with `shutdown_response` (approve or reject with reason).
65 
66## Communication Anti-Patterns
67 
68| Anti-Pattern | Problem | Better Approach |
69| --------------------------------------- | ---------------------------------------- | -------------------------------------- |
70| Broadcasting routine updates | Wastes resources, noise | Direct message to affected teammate |
71| Sending JSON status messages | Not designed for structured data | Use TaskUpdate to update task status |
72| Not communicating at integration points | Teammates build against stale interfaces | Message when your interface is ready |
73| Micromanaging via messages | Overwhelms teammates, slows work | Check in at milestones, not every step |
74| Using UUIDs instead of names | Hard to read, error-prone | Always use teammate names |
75| Ignoring idle teammates | Wasted capacity | Assign new work or shut down |
76 
77## Plan Approval Workflow
78 
79When a teammate is spawned with `plan_mode_required`:
80 
811. Teammate creates a plan using read-only exploration tools
822. Teammate calls `ExitPlanMode` which sends a `plan_approval_request` to the lead
833. Lead reviews the plan
844. Lead responds with `plan_approval_response`:
85 
86**Approve**:
87 
88```json
89{
90 "type": "plan_approval_response",
91 "request_id": "abc-123",
92 "recipient": "implementer-1",
93 "approve": true
94}
95```
96 
97**Reject with feedback**:
98 
99```json
100{
101 "type": "plan_approval_response",
102 "request_id": "abc-123",
103 "recipient": "implementer-1",
104 "approve": false,
105 "content": "Please add error handling for the API calls"
106}
107```
108 
109## Shutdown Protocol
110 
111### Graceful Shutdown Sequence
112 
1131. **Lead sends shutdown_request** to each teammate
1142. **Teammate receives request** as a JSON message with `type: "shutdown_request"`
1153. **Teammate responds** with `shutdown_response`:
116 - `approve: true` — Teammate saves state and exits
117 - `approve: false` + reason — Teammate continues working
1184. **Lead handles rejections** — Wait for teammate to finish, then retry
1195. **After all teammates shut down** — Call `TeamDelete` to remove team resources
120 
121### Handling Rejections
122 
123If a teammate rejects shutdown:
124 
125- Check their reason (usually "still working on task")
126- Wait for their current task to complete
127- Retry shutdown request
128- If urgent, user can force shutdown
129 
130## Teammate Discovery
131 
132Find team members by reading the config file:
133 
134**Location**: `~/.claude/teams/{team-name}/config.json`
135 
136**Structure**:
137 
138```json
139{
140 "members": [
141 {
142 "name": "security-reviewer",
143 "agentId": "uuid-here",
144 "agentType": "team-reviewer"
145 },
146 {
147 "name": "perf-reviewer",
148 "agentId": "uuid-here",
149 "agentType": "team-reviewer"
150 }
151 ]
152}
153```
154 
155**Always use `name`** for messaging and task assignment. Never use `agentId`, role names, or unsuffixed aliases directly. If a teammate was spawned as `team-lead-2`, send to `team-lead-2`, not `team-lead`.
156 
157## Troubleshooting
158 
159**A teammate is not responding to messages.**
160Check the teammate's task status. If it is idle, it may have completed its task and is waiting to be assigned new work or shut down. If it is still active, it may be mid-execution and will process messages once the current operation finishes.
161 
162**A teammate says it cannot see SendMessage.**
163Check the teammate agent's `tools:` frontmatter. Agent Teams communication tools such as `SendMessage`, `TaskList`, `TaskGet`, and `TaskUpdate` must be listed explicitly when an agent uses a restricted tool allowlist.
164 
165**The lead is sending broadcasts for every status update.**
166This is a common anti-pattern. Broadcasts are expensive — each one sends N messages. Use direct messages (`type: "message"`) for point-to-point updates. Reserve broadcasts for critical shared-resource changes like an updated interface contract.
167 
168**A teammate rejected a shutdown request unexpectedly.**
169The teammate is still working. Check the rejection reason in the `shutdown_response` content field, wait for the work to finish, then retry. Never force-terminate a teammate that has unsaved work.
170 
171**A plan_approval_request arrived but the request_id is missing.**
172The teammate called `ExitPlanMode` without the required request context. Have the teammate re-enter plan mode, complete exploration, and call `ExitPlanMode` again. The `request_id` is generated automatically by the plan mode system.
173 
174**Two teammates are waiting on each other and neither is making progress.**
175This is a deadlock: both are blocked waiting for the other to finish first. The lead should send a direct message to one teammate with a stub or partial result so it can unblock and proceed.
176 
177## Related Skills
178 
179- [team-composition-patterns](../team-composition-patterns/SKILL.md) — Select agent types and team size before establishing communication norms
180- [parallel-feature-development](../parallel-feature-development/SKILL.md) — Use communication protocols to coordinate integration handoffs between parallel implementers
181 
View all files on GitHub →

Details

Version
1.0.2
Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 39,857
Checked
Source
wshobson/agents ↗
Creator
wshobson · 179 listings
View creator

Similar skills

See all →
SkillTests in real browsers via Chrome DevTools MCPBrowser testing with devtoolsaddyosmani/agent-skills · by addyosmaniTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.★ 98.7k GitHub starsMCPThis MCP server attempts to exercise all the featuresEverything MCP Servermodelcontextprotocol/servers · by modelcontextprotocolThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test…★ 90.5k GitHub starsMCPA Model Context Protocol server that provides web contentFetch MCP Servermodelcontextprotocol/servers · by modelcontextprotocolA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content…★ 90.5k GitHub starsMCPNode.js server implementing Model Context ProtocolFilesystem MCP Servermodelcontextprotocol/servers · by modelcontextprotocolNode.js server implementing Model Context Protocol (MCP) for filesystem operations.★ 90.5k GitHub starsSkillAbout libraries, frameworks, API referencesContext7 MCPupstash/context7 · by upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.★ 62.3k GitHub starsSkillUses Chrome DevTools via MCP for efficient debuggingChromeDevTools/chrome-devtools-mcp · by ChromeDevToolsUses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).★ 52.4k GitHub stars

More from wshobson

SkillMaster C/.NET backend development patterns for buildingwshobson/agents · by wshobsonMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.★ 39.9k GitHub starsSkillImplement WCAG 2.2 compliant interfaces with mobileAccessibility compliancewshobson/agents · by wshobsonImplement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.★ 39.9k GitHub starsSkillMaster Material Design 3 and Jetpack Compose patternsAndroid Mobile Designwshobson/agents · by wshobsonMaster Material Design 3 and Jetpack Compose patterns for building native Android apps. Use when designing Android interfaces, implementing Compose UI, or following Google's Material Design guidelines.★ 39.9k GitHub starsSkillMigrate from AngularJS to Angular using hybrid modeAngular migrationwshobson/agents · by wshobsonMigrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or modernizing legacy Angular code.★ 39.9k GitHub starsSkillUnderstand anti-reversing, obfuscationAnti reversing techniqueswshobson/agents · by wshobsonUnderstand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques, when implementing anti-debugging protections for CTF challenges, when reverse engineering packed binaries, or when building security research tools that need to detect virtualized environments.★ 39.9k GitHub starsSkillBuild production Apache Airflow DAGs with best practicesApache Airflow DAG Patternswshobson/agents · by wshobsonBuild production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.★ 39.9k GitHub stars