bambu-studio-ai
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Agent Communication Skill
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install dfshmily/agent-communicationInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
一个通用的 Agent 间沟通技能,基于 WebSocket 实现实时双向通信,解决多 Agent 团队协作中的沟通问题。
┌─────────────────────────────────────────────────────┐
│ WebSocket 消息代理架构 │
├─────────────────────────────────────────────────────┤
│ │
│ Agent A ◄────► WebSocket ◄────► Agent B │
│ Server │
│ Agent C ◄──────────────────────► Agent D │
│ │
│ ✅ 实时双向通信 │
│ ✅ 无需轮询 │
│ ✅ 延迟 <50ms │
│ ✅ 离线消息队列 │
└─────────────────────────────────────────────────────┘
# 安装依赖
pip install websockets
# 通过 ClawHub 安装
openclaw skill install agent-communication
python3 scripts/broker.py
# WebSocket 模式(优先)
python3 scripts/send.py --from pm --to dev --message "开始开发"
# 文件模式(回退)
python3 scripts/send.py --from pm --to dev --message "开始开发" --file
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 方案 | |------|---------|------------...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
一个通用的 Agent间沟通技能,基于 WebSocket 实现实时双向通信
┌─────────────────────────────────────────────────────┐
│ WebSocket 消息代理架构 │
├─────────────────────────────────────────────────────┤
│ │
│ Agent A ◄────► WebSocket ◄────► Agent B │
│ Server │
│ Agent C ◄──────────────────────► Agent D │
│ │
│ ✅ 实时双向通信 │
│ ✅ 无需轮询 │
│ ✅ 延迟 <1ms │
│ ✅ 离线消息队列 │
└─────────────────────────────────────────────────────┘
| 问题 | 解决方案 |
|---|---|
sessions_send 超时 |
WebSocket 实时通信 |
| Agent 无法直接沟通 | 消息代理转发 |
| 团队协作效率低 | 即时消息传递 |
# 安装依赖
pip install websockets
# 通过 ClawHub 安装
openclaw skill install agent-communication
# 或手动安装
git clone https://github.com/DFshmily/agent-communication.git
python3 scripts/broker.py
服务器将在 `ws://lo...
# Agent Communication Skill
一个通用的 Agent 间沟通技能,基于 **WebSocket** 实现实时双向通信,解决多 Agent 团队协作中的沟通问题。
## 技术架构
### 🚀 WebSocket 实时通信
```
┌─────────────────────────────────────────────────────┐
│ WebSocket 消息代理架构 │
├─────────────────────────────────────────────────────┤
│ │
│ Agent A ◄────► WebSocket ◄────► Agent B │
│ Server │
│ Agent C ◄──────────────────────► Agent D │
│ │
│ ✅ 实时双向通信 │
│ ✅ 无需轮询 │
│ ✅ 延迟 <50ms │
│ ✅ 离线消息队列 │
└─────────────────────────────────────────────────────┘
```
## 核心功能
- 🚀 **WebSocket 实时通信** - 高性能双向通信
- 📨 **消息传递** - Agent 之间快速发送消息
- 📢 **广播消息** - 一次发送给多个 Agent
- 🗂️ **共享工作空间** - 文件驱动的协作
- 🟢 **状态同步** - Agent 在线状态检测
- 💾 **离线消息** - 离线 Agent 自动排队
## 安装
```bash
# 安装依赖
pip install websockets
# 通过 ClawHub 安装
openclaw skill install agent-communication
```
## 使用方法
### 1. 启动消息代理(WebSocket 服务器)
```bash
python3 scripts/broker.py
```
### 2. 发送消息
```bash
# WebSocket 模式(优先)
python3 scripts/send.py --from pm --to dev --message "开始开发"
# 文件模式(回退)
python3 scripts/send.py --from pm --to dev --message "开始开发" --file
```
### 3. Agent 客户端连接
```python
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 方案 |
|------|---------|------------...# Agent Communication Skill <div align="center"> 一个通用的 **Agent间沟通技能**,基于 **WebSocket** 实现实时双向通信 [](https://clawhub.ai/skills/agent-communication) [](#websocket架构) [](#测试报告) </div> --- ## 🚀 核心技术:WebSocket 实时通信 ### WebSocket 架构 ``` ┌─────────────────────────────────────────────────────┐ │ WebSocket 消息代理架构 │ ├─────────────────────────────────────────────────────┤ │ │ │ Agent A ◄────► WebSocket ◄────► Agent B │ │ Server │ │ Agent C ◄──────────────────────► Agent D │ │ │ │ ✅ 实时双向通信 │ │ ✅ 无需轮询 │ │ ✅ 延迟 <1ms │ │ ✅ 离线消息队列 │ └─────────────────────────────────────────────────────┘ ``` --- ## 🎯 解决的问题 | 问题 | 解决方案 | |------|---------| | `sessions_send` 超时 | **WebSocket 实时通信** | | Agent 无法直接沟通 | 消息代理转发 | | 团队协作效率低 | 即时消息传递 | --- ## ✨ 核心功能 - 🚀 **WebSocket 实时通信** - 高性能双向通信(延迟 <1ms) - 📨 **消息传递** - Agent 之间快速发送消息 - 📢 **广播消息** - 一次发送给多个 Agent - 🗂️ **共享工作空间** - 文件驱动的协作 - 🟢 **状态同步** - Agent 在线状态检测 - 💾 **离线消息队列** - 离线 Agent 自动排队 --- ## 📦 安装 ```bash # 安装依赖 pip install websockets # 通过 ClawHub 安装 openclaw skill install agent-communication # 或手动安装 git clone https://github.com/DFshmily/agent-communication.git ``` --- ## 🚀 快速开始 ### 1. 启动 WebSocket 消息代理 ```bash python3 scripts/broker.py ``` 服务器将在 `ws://lo...
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...
Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.
Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.