← 返回 Skills 市场
wulinsquarelikui

Feishu Multi Agent Messaging

作者 wulinsquarelikui · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
299
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-multi-agent-messaging
功能描述
飞书群聊多Agent消息通讯。解决多Bot协作时的消息流转问题,支持群聊@通知、私聊消息、用户ID映射。
使用说明 (SKILL.md)

飞书群聊多Agent消息通讯

解决飞书平台上多 Agent 协作时的消息流转问题

核心功能

  • 用户ID映射 - 解决每个Bot看到的用户open_id不同的问题
  • 群聊协作流程 - 6步标准协作流程,确保消息正确流转
  • @用户通知 - 群聊中正确@指定用户
  • 私聊消息 - 子Agent以自己的身份发送私聊

快速开始

1. 配置多个飞书Bot

openclaw.json 中配置多个飞书账号:

{
  "channels": {
    "feishu": {
      "accounts": {
        "default": {
          "appId": "cli_xxx",
          "appSecret": "xxx"
        },
        "coder": {
          "appId": "cli_yyy",
          "appSecret": "yyy"
        },
        "reviewer": {
          "appId": "cli_zzz",
          "appSecret": "zzz"
        }
      }
    }
  }
}

2. 维护用户ID映射表

每个Bot看到的用户open_id不同,需要维护映射表:

Bot accountId 用户的 open_id
主Bot default ou_xxx
码农Bot coder ou_yyy
审核Bot reviewer ou_zzz

3. 发送消息时指定accountId

# 码农Bot发送私聊
message action=send channel=feishu accountId="coder" target="ou_yyy" message="消息内容"

# 审核Bot发送群聊
message action=send channel=feishu accountId="reviewer" target="oc_xxx" message="消息内容"

核心发现

问题:子Agent无法以自己的身份发消息

根因:

  1. 每个飞书Bot看到的用户open_id不同
  2. message tool不支持union_id
  3. 私聊发送必须指定accountId参数

解决方案:

  1. 维护用户ID映射表
  2. 发送时使用该Bot看到的用户open_id
  3. 用户必须先和Bot建立会话

群聊协作流程

步骤1:用户群聊 @主Bot 下发命令
步骤2:主Bot群聊 @码农 @审核 下发任务
步骤3:码农、审核群聊回复「收到」
步骤4:码农执行完成,群聊通知审核
步骤5:审核决定打回/通过
步骤6:主Bot @用户 汇报完成

核心指标:所有节点对应的人要把状态发到群里

@用户格式

\x3Cat user_id="ou_xxx">用户名\x3C/at>

注意事项

  1. 必须指定accountId - 不指定时会用主Bot的身份发送
  2. 必须用正确的open_id - 每个Bot看到的用户open_id不同
  3. 用户必须先和Bot建立会话 - 用户需要先主动给Bot发过消息
  4. 群聊协作核心指标 - 所有节点对应的人要把状态发到群里

文件结构

feishu-multi-agent-messaging/
├── SKILL.md               # 本文件
├── README.md              # 详细说明
├── LICENSE                # MIT许可证
├── docs/
│   ├── architecture.md    # 架构设计
│   ├── id-mapping.md      # ID映射详解
│   ├── workflow.md        # 协作流程
│   └── troubleshooting.md # 问题排查
└── examples/
    ├── openclaw.json      # 配置示例
    └── message-samples.md # 消息示例
安全使用建议
This skill is documentation-only and appears coherent for its stated goal of coordinating multiple Feishu bots and mapping per-bot user IDs. Before installing/using it: (1) Do NOT commit appId/appSecret or mapping files to public repos — keep them in a secrets store or use environment-secret mechanisms; (2) Treat the user-ID mapping as sensitive (it contains user identifiers/PII) and restrict access to it; (3) Verify your OpenClaw/message tool actually supports the described accountId routing and behavior in your environment; (4) Consider using Feishu union_id (if you can obtain the permission) to avoid manual mapping when possible; (5) Review gateway logs and restart steps (journalctl, ~/.openclaw logs) only if you have appropriate system access — the docs reference system-level commands but the skill itself does not perform them automatically; (6) If you need stronger guarantees, request the author to provide an implementation that uses a secure secrets mechanism (instead of plain openclaw.json examples). Overall the content is consistent with its purpose and shows no signs of hidden exfiltration, but protect credentials and mapping files carefully.
功能分析
Type: OpenClaw Skill Name: feishu-multi-agent-messaging Version: 1.0.0 This skill bundle provides documentation, architectural guidance, and configuration templates for managing multi-agent communication on the Feishu (Lark) platform. It specifically addresses the technical challenge of inconsistent user 'open_id' values across different bots by providing a structured workflow and ID mapping strategy. The bundle contains no executable code, malicious instructions, or evidence of data exfiltration; it focuses entirely on the legitimate use of the OpenClaw 'message' tool and standard configuration files (e.g., openclaw.json).
能力评估
Purpose & Capability
The skill's name/description (multi‑agent Feishu messaging, user ID mapping, accountId routing) matches the content: documentation and examples describe configuring multiple Feishu accounts, maintaining open_id mappings, and calling the platform message tool with accountId. There are no unrelated credentials, binaries, or install steps requested.
Instruction Scope
SKILL.md and the docs only instruct configuration and use of the message tool (specifying accountId, using <at> tags, maintaining mapping files, restart/check gateway logs). They do reference storing mappings in SESSION-STATE.md or openclaw.json and running system diagnostics (journalctl, log files). These are reasonable for this purpose but are operationally broad (touching config and logs) — the agent instructions do not ask to read arbitrary user files or exfiltrate data, but they do imply storing/reading sensitive configuration and mapping files.
Install Mechanism
Instruction-only skill with no install spec and no code files. This minimizes on‑disk execution risk; nothing is downloaded or written by the skill package itself.
Credentials
The skill does not declare environment variables, but examples show appId/appSecret values placed directly in openclaw.json and recommend storing mapping files. That is proportionate to the feature (bots need credentials) but is sensitive: appSecrets and user open_id mappings are secrets/PII and should be stored securely (not committed to VCS).
Persistence & Privilege
Flags show normal defaults (always: false, agent-invocable true, model invocation allowed). The skill does not request persistent system privileges or modify other skills' configs. Autonomy is platform-default and not combined with other concerning requests.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-multi-agent-messaging
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-multi-agent-messaging 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of feishu-multi-agent-messaging: - Enables multi-Bot collaboration for Feishu group chats, supporting smooth message handoff. - Implements user ID mapping to resolve differences in open_id visibility between Bots. - Supports @user notifications and sending direct messages from sub-Agents using their own identities. - Documents a 6-step standard group collaboration workflow. - Provides clear setup instructions and sample configuration files for quick integration.
元数据
Slug feishu-multi-agent-messaging
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Feishu Multi Agent Messaging 是什么?

飞书群聊多Agent消息通讯。解决多Bot协作时的消息流转问题,支持群聊@通知、私聊消息、用户ID映射。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 299 次。

如何安装 Feishu Multi Agent Messaging?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-multi-agent-messaging」即可一键安装,无需额外配置。

Feishu Multi Agent Messaging 是免费的吗?

是的,Feishu Multi Agent Messaging 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Feishu Multi Agent Messaging 支持哪些平台?

Feishu Multi Agent Messaging 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Feishu Multi Agent Messaging?

由 wulinsquarelikui(@wulinsquarelikui)开发并维护,当前版本 v1.0.0。

💬 留言讨论