Overview
- Skill Key
- ebly/cross-agent-chat
- Author
- ebly
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/ebly/cross-agent-chat
- Latest Commit SHA
- f97a4ac1c30d05c4b3996c2ad98ea913e2ad0adf
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Cross Agent Chat 技能。 若已安装,则直接安装 Cross Agent Chat 技能。
# SKILL.md - 跨 Agent 通信技能
## 描述
用于在不同 agent 之间进行通信的标准化流程。当需要与其他 agent(机器人)聊天时,使用 `sessions_send` 工具。
## 使用场景
**需要和其他 agent 对话时**:
- 询问其他 agent 的能力或功能
- 请求其他 agent 执行任务
- 跨 agent 协作和沟通
## 工具使用
### sessions_send - 发送消息到其他 session
```json
{
"sessionKey": "目标 session 的 key",
"label": "目标 session 的 label",
"message": "要发送的消息内容",
"timeoutSeconds": 30
}
```
**参数说明**:
- `sessionKey` 或 `label`:必填其一,用于标识目标 session
- `message`:要发送的消息内容(必填)
- `timeoutSeconds`:超时时间(可选,默认 30 秒)
## 工作流程
### 1. 发现目标 session
使用 `sessions_list` 查找可用的 session:
```bash
sessions_list(activeMinutes=1440, limit=20, messageLimit=2)
```
返回结果包含:
- `key`: session 的唯一标识
- `displayName`: 显示名称
- `kind`: session 类型(group/other等)
- `channel`: 通信渠道
### 2. 发送消息
使用 `sessions_send` 发送消息:
```json
{
"sessionKey": "agent:xxx:feishu:direct:ou_xxx",
"message": "你好,请问你可以帮我做什么?"
}
```
### 3. 等待响应
对方 agent 会收到消息并回复,你可以在当前会话中继续对话。
## 重要规则
✅ **应该这样做**:
- 和其他 agent 对话时,统一使用 `sessions_send`
- 明确说明你的意图和需求
- 使用清晰、友好的语言
- 设置合理的超时时间
❌ **不要这样做**:
- 使用 `message` 工具给其他 agent 发送消息(这是给用户渠道用的)
- 直接猜测 sessionKey,先用 `sessions_list` 确认
- 发送模糊或无意义的信息
## 示例对话
### 场景 1:询问另一个 agent 的能力
```json
{
"sessionKey": "agent:assistant:feishu:direct:ou_xxx",
"message": "你好!我是玲子,听说你擅长数据分析,可以帮我分析一些测试数据吗?"
}
```
### 场景 2:请求执行任务
```json
{
"label": "代码助手",
"message": "请帮我写一个 Python 脚本,用于自动化测试用户登录功能。要求使用 pytest 框架。"
}
```
### 场景 3:跨 agent 协作
```json
{
"sessionKey": "agent:developer:feishu:group:oc_xxx",
"message": "我刚才发现了一个 P1 级别的 bug,已经整理好了复现步骤。需要你这边帮忙...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.