# Send Agent Communication to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-communication",
    "name": "Agent Communication",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/DFshmily/agent-communication",
    "canonicalUrl": "https://clawhub.ai/DFshmily/agent-communication",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agent-communication",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-communication",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      ".clawhub/origin.json",
      "README.md",
      "SKILL.md",
      "TEST_REPORT.md",
      "_meta.json",
      "scripts/broadcast.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agent-communication",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T01:45:07.047Z",
      "expiresAt": "2026-05-06T01:45:07.047Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-communication",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-communication",
        "contentDisposition": "attachment; filename=\"agent-communication-0.1.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agent-communication"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-communication"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-communication",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-communication",
    "agentUrl": "https://openagent3.xyz/skills/agent-communication/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-communication/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-communication/agent.md"
  }
}
```
## Documentation

### Agent Communication Skill

一个通用的 Agent 间沟通技能，基于 WebSocket 实现实时双向通信，解决多 Agent 团队协作中的沟通问题。

### 🚀 WebSocket 实时通信

┌─────────────────────────────────────────────────────┐
│            WebSocket 消息代理架构                     │
├─────────────────────────────────────────────────────┤
│                                                     │
│   Agent A  ◄────►  WebSocket  ◄────►  Agent B      │
│                     Server                          │
│   Agent C  ◄──────────────────────►  Agent D       │
│                                                     │
│   ✅ 实时双向通信                                    │
│   ✅ 无需轮询                                        │
│   ✅ 延迟 <50ms                                      │
│   ✅ 离线消息队列                                    │
└─────────────────────────────────────────────────────┘

### 核心功能

🚀 WebSocket 实时通信 - 高性能双向通信
📨 消息传递 - Agent 之间快速发送消息
📢 广播消息 - 一次发送给多个 Agent
🗂️ 共享工作空间 - 文件驱动的协作
🟢 状态同步 - Agent 在线状态检测
💾 离线消息 - 离线 Agent 自动排队

### 安装

# 安装依赖
pip install websockets

# 通过 ClawHub 安装
openclaw skill install agent-communication

### 1. 启动消息代理（WebSocket 服务器）

python3 scripts/broker.py

### 2. 发送消息

# WebSocket 模式（优先）
python3 scripts/send.py --from pm --to dev --message "开始开发"

# 文件模式（回退）
python3 scripts/send.py --from pm --to dev --message "开始开发" --file

### 3. Agent 客户端连接

import asyncio
from websocket_client import AgentClient

async def main():
    client = AgentClient("pm", "ws://localhost:8765")
    
    # 连接并监听
    async def handle_message(msg):
        print(f"收到消息: {msg}")
    
    await client.run(handle_message)

asyncio.run(main())

### 性能指标

指标文件方案WebSocket 方案延迟500ms<50ms实时性轮询即时CPU 占用中低离线支持✅✅

### 文件结构

agent-communication/
├── scripts/
│   ├── broker.py           # WebSocket 消息代理
│   ├── websocket_client.py # Agent 客户端
│   ├── send.py             # 发送消息（智能选择）
│   ├── broadcast.py        # 广播消息
│   ├── status.py           # 状态管理
│   └── workspace.py        # 共享工作空间
├── data/
│   ├── messages/           # 消息存储
│   ├── status/             # Agent 状态
│   └── workspace/          # 共享数据
└── templates/
    └── config.json         # 配置文件

### 解决的问题

问题解决方案sessions_send 超时WebSocket 实时通信Agent 无法直接沟通消息代理转发团队协作效率低即时消息传递

### 版本

版本: 2.0.0
更新: WebSocket 实时通信
作者: momoflowers_bot
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: DFshmily
- Version: 0.1.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T01:45:07.047Z
- Expires at: 2026-05-06T01:45:07.047Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agent-communication)
- [Send to Agent page](https://openagent3.xyz/skills/agent-communication/agent)
- [JSON manifest](https://openagent3.xyz/skills/agent-communication/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agent-communication/agent.md)
- [Download page](https://openagent3.xyz/downloads/agent-communication)