← Back to Skills Marketplace
gitxuzhefeng

Feishu Multi-Bot 飞书多机器人配置

by Maplers · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
274
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install feishu-multi-bot
Description
配置多个 OpenClaw Agent 使用独立飞书机器人,支持免配对直接聊天,自动重启生效并提供状态摘要。
README (SKILL.md)

SKILL.md - 飞书多机器人配置

描述

为多个 OpenClaw Agent 配置独立的飞书机器人,支持免配对直接聊天模式。

触发条件

用户请求:

  • "给多个 agent 配置飞书机器人"
  • "配置飞书多账号"
  • "让每个 agent 用不同的飞书机器人"
  • 提供多个飞书 App ID + App Secret 要求配置

执行步骤

步骤 1:收集信息

向用户确认以下信息(格式示例):

Agent 名称 | 飞书 App ID | 飞书 App Secret
-----------|------------|----------------
银月       | cli_xxx    | xxx
韩立       | cli_yyy    | yyy

步骤 2:构建配置

使用 gateway 工具的 config.patch 动作,更新配置:

{
  "channels": {
    "feishu": {
      "enabled": true,
      "defaultAccount": "\x3C第一个 agent 名称>",
      "dmPolicy": "open",
      "connectionMode": "websocket",
      "domain": "feishu",
      "groupPolicy": "open",
      "accounts": {
        "\x3Cagent1>": {
          "appId": "\x3Capp_id_1>",
          "appSecret": "\x3Capp_secret_1>"
        },
        "\x3Cagent2>": {
          "appId": "\x3Capp_id_2>",
          "appSecret": "\x3Capp_secret_2>"
        }
      }
    }
  }
}

步骤 3:应用配置

调用 gateway 工具:

action: config.patch
note: "已配置飞书多机器人:[Agent 列表],Gateway 将自动重启"
raw: \x3C上述配置 JSON>

步骤 4:验证状态

配置完成后,执行:

openclaw gateway status

确认 Gateway 运行正常。

步骤 5:返回摘要

向用户返回配置摘要:

Agent 飞书账号名 App ID 状态
银月 yinyue cli_xxx
韩立 hanli cli_yyy

默认账号: \x3CdefaultAccount>

免配对模式: 已启用,添加机器人后可直接聊天。


注意事项

  1. App Secret 保密:不要在日志或公开场合泄露
  2. 账号命名:建议使用 agent 名称作为账号标识
  3. defaultAccount:设置为最常用的 Agent
  4. dmPolicy: "open":关闭配对,任何人添加机器人即可聊天
  5. 重启生效:config.patch 会自动触发 Gateway 重启

故障排查

问题 检查项
机器人不响应 openclaw gateway status 确认运行中
配置未生效 检查 openclaw logs --follow 查看错误
账号冲突 确保每个 accountId 唯一

相关文档

  • OpenClaw 飞书文档:https://docs.openclaw.ai/channels/feishu.md
  • 多账号配置示例:channels.feishu.accounts
Usage Guidance
This skill appears to do what it says, but take these precautions before using it: (1) Only provide App ID/App Secret values to the agent in a private, trusted channel; do not paste them in public logs or channels. (2) Consider whether dmPolicy: "open" is appropriate — it allows anyone who adds the bot to chat without pairing. If unsure, keep pairing enabled. (3) Back up your current Gateway configuration before applying config.patch and be prepared for a restart (possible temporary downtime). (4) After applying, verify using openclaw gateway status and openclaw logs --follow; rotate App Secrets if you suspect they were exposed. (5) Ask the skill/agent to avoid echoing secrets in visible outputs or logs; if the SKILL.md is to be used as an automated instruction, add an explicit step to redact secrets from any agent responses or logs.
Capability Analysis
Type: OpenClaw Skill Name: feishu-multi-bot Version: 1.0.0 The skill bundle is designed to configure multiple Feishu bots for OpenClaw agents by using the system's 'gateway' tool to patch configuration files. It follows a standard workflow of collecting credentials (App ID/Secret) and applying them via 'config.patch', with no evidence of data exfiltration, unauthorized execution, or malicious intent in SKILL.md or the metadata files.
Capability Assessment
Purpose & Capability
The skill's name/description (multi-bot Feishu configuration) matches the runtime instructions: it collects per-agent Feishu App ID/App Secret pairs and writes them into the OpenClaw Gateway channels.feishu.accounts configuration via gateway config.patch. Nothing requested or described is unrelated to that purpose.
Instruction Scope
Instructions stay within expected scope (gather credentials from user, build JSON config, call gateway config.patch, check gateway status/logs). Two points to note: (1) the guide suggests setting dmPolicy:"open" (disables pairing), which is a security/privacy decision the administrator should consider before enabling; (2) the SKILL.md warns to keep App Secrets confidential but does not explicitly instruct the agent how to handle/display these secrets safely (for example, avoid echoing them in logs or chat).
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing will be downloaded or written by an install step.
Credentials
No environment variables or unrelated credentials are requested. The only sensitive inputs are the per-account App ID and App Secret which are necessary and proportionate for configuring Feishu accounts.
Persistence & Privilege
Skill does not request always:true or elevated platform privileges. The operational action (config.patch) legitimately modifies the Gateway's channel configuration and may trigger a restart as documented — this is consistent with its purpose and limited in scope.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-multi-bot
  3. After installation, invoke the skill by name or use /feishu-multi-bot
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
飞书多机器人独立配置支持已发布: - 允许为多个 OpenClaw Agent 配置独立飞书机器人账号及密钥。 - 支持无需配对的直接聊天模式(dmPolicy: "open")。 - 新增批量输入 agent 与对应飞书 App ID/Secret 信息,简化配置流程。 - 自动应用并验证配置,配置完成后 Gateway 会自动重启。 - 提供简明配置摘要,帮助用户确认各 Agent 状态。 - 补充常见故障排查与操作注意事项。
Metadata
Slug feishu-multi-bot
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Feishu Multi-Bot 飞书多机器人配置?

配置多个 OpenClaw Agent 使用独立飞书机器人,支持免配对直接聊天,自动重启生效并提供状态摘要。 It is an AI Agent Skill for Claude Code / OpenClaw, with 274 downloads so far.

How do I install Feishu Multi-Bot 飞书多机器人配置?

Run "/install feishu-multi-bot" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Feishu Multi-Bot 飞书多机器人配置 free?

Yes, Feishu Multi-Bot 飞书多机器人配置 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Feishu Multi-Bot 飞书多机器人配置 support?

Feishu Multi-Bot 飞书多机器人配置 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Feishu Multi-Bot 飞书多机器人配置?

It is built and maintained by Maplers (@gitxuzhefeng); the current version is v1.0.0.

💬 Comments