ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

feishu-bot-manager

管理 OpenClaw 中的飞书机器人账户与路由绑定。用于新增飞书机器人账号、把机器人账户级或群聊级绑定到指定 Agent,或在创建新机器人时顺带创建一个全新的独立 Agent 工作区。用户提到“绑定新飞书机器人”“新增飞书机器人”“把机器人绑到某个 Agent”“给某个群绑定 Agent”时使用。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/alex-shen1121/feishu-bot-manager-cn
Or

feishu-bot-manager

飞书多账户机器人配置管理 skill。

优先路径

当用户说“绑定一个新的飞书机器人”时,先引导用户去网页创建机器人:

网页会给出 App ID 和 App Secret。拿到这两个值之后,再继续绑定流程。

示例回复:

新机器人先去这里创建:https://open.feishu.cn/page/openclaw?form=multiAgent

拿到 App ID 和 Secret 后发我,我再帮你继续绑定。

*是否要绑定到现有 agent,也可以一起告诉我。*

只有在用户明确说“我不想用网页”或“网页打不开”时,才走纯手动流程。

两种绑定方式

账户级绑定

该飞书账户的所有消息 → 指定 Agent

适合一个机器人专门服务一个 Agent。

生成的 binding 示例:

{ "agentId": "recruiter", "match": { "channel": "feishu", "accountId": "bot-sales" } }

群聊级绑定

特定群聊的消息 → 指定 Agent

适合把某个群单独分配给某个 Agent。

生成的 binding 示例:

{ "agentId": "recruiter", "match": { "channel": "feishu", "peer": { "kind": "group", "id": "oc_xxx" } } }

注意:群聊级绑定优先级高于账户级绑定

收集信息顺序

拿到 App ID / App Secret 后,按这个顺序收集:

  1. App ID 和 App Secret
  2. 先问:绑定到现有 Agent,还是创建新的 Agent?
    • 如果是现有 Agent:直接问要绑定到哪个 Agent
    • 如果是新 Agent:问新 Agent 的名称、用途、期望的 agentId(可给默认值)
  3. 路由方式:账户级 / 群聊级
  4. 群聊 ID(仅群聊级需要)
  5. 机器人名称(可选)
  6. 给出预览,用户确认后执行
  7. 重启 Gateway 前再次确认

确认时的回复里,最下面加一行小字:

*是否要绑定到现有 agent?*

创建新 Agent 时的额外要求

如果用户选择“创建新的 Agent”,除了写入 OpenClaw 配置,还必须初始化对应工作区文件,并把治理规则写进合适的文件。

创建新 Agent 时,读取并遵守:

  • references/new-agent-governance.md

重点包括:

  • AGENTS.md:任务响应规范、复杂任务优先子代理、修改后先验证、skill-vetter 强制审查、问题升级策略、定时任务与稳定性规则
  • SOUL.md:风格、边界感、群聊克制发言、长任务先告知再执行
  • MEMORY.md:两层记忆规则、长期信息提炼、必须写文件而不是只靠会话记忆
  • USER.md:用户偏好、禁忌、长期习惯
  • HEARTBEAT.md:仅放轻量、幂等、低副作用周期任务
  • TOOLS.md:环境专属信息
  • .learnings/:初始化 LEARNINGS.mdERRORS.mdFEATURE_REQUESTS.md

执行流程

  1. 检查并备份现有配置
  2. 如果需要,创建新的 Agent 工作区与基础文件
  3. 添加新账户到 channels.feishu.accounts
  4. 根据选择的路由模式添加 binding
  5. 设置 session.dmScopeper-account-channel-peer
  6. 告诉用户配置已改好,重启 Gateway 前先确认
  7. 重启完成后,提醒用户去新机器人的私聊发送 /feishu auth

绑定完成后的固定提醒

每次新机器人创建/绑定完成后,都必须提醒用户:

请去新机器人的私聊窗口发送 /feishu auth 进行授权,否则机器人无法正常使用。

命令行调用

# 账户级绑定 - 该机器人所有消息都由指定 Agent 处理
openclaw skills run feishu-bot-manager -- \
  --app-id cli_xxx \
  --app-secret yyy \
  --account-id bot-sales \
  --agent-id recruiter \
  --routing-mode account

# 群聊级绑定 - 特定群聊的消息由指定 Agent 处理
openclaw skills run feishu-bot-manager -- \
  --app-id cli_xxx \
  --app-secret yyy \
  --account-id bot-sales \
  --agent-id recruiter \
  --chat-id oc_xxx \
  --routing-mode group

参数说明

参数必填说明
--app-id飞书 App ID (cli_xxx)
--app-secret飞书 App Secret
--account-id账户标识,默认自动生成
--bot-name机器人名称,默认 Feishu Bot
--dm-policyDM 策略: open / pairing / allowlist,默认 open
--agent-id要绑定的 Agent ID
--chat-id群聊 ID (oc_xxx),群聊绑定时需要
--routing-mode路由模式: account / group,默认 account

注意事项

  • 保留现有配置,不覆盖已有主账号配置
  • 修改前自动备份 openclaw.json
  • 绑定新机器人后,重启 Gateway 前必须再次确认
  • 完成后必须提醒用户去机器人私聊发送 /feishu auth
  • 如配置有误,可用备份文件手动恢复

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-alex-shen1121-feishu-bot-manager-cn": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

minimax-token-plan-quota

Check MiniMax Token Plan remaining quota, usage window reset time, and per-model remaining limits, especially for the China mainland Token Plan flow on minimaxi.com. Use when the user asks things like “MiniMax 还有多少额度”, “查一下 minimax 订阅剩余额度”, “看看 Token Plan 还剩多少”, or wants a compact quota table for MiniMax Token Plan.

alex-shen1121 4473

feishu-group-company

Configure a Feishu multi-bot company group so one coordinator bot, for example `company-ceo`, handles normal group messages, while specialist bots reply only when explicitly @mentioned. Use when setting up or fixing a shared company/work group with multiple Feishu bot accounts, especially for patterns like: normal messages then CEO replies; at UI then UI replies; at dev then dev replies; and CEO stays silent when another bot is explicitly mentioned.

alex-shen1121 4473

halo-blog

Use when managing a Halo blog instance via CLI, including authentication, posts, pages, themes, plugins, attachments, backups, comments, moments, notifications, or public site search.

alex-shen1121 4473

gmncode-usage

通过 HTTP 接口查询 GMNCODE / gmncode.cn 中转站的大模型用量,包括 dashboard 汇总、每日趋势、按模型拆分的 token 与费用数据。当用户要求查看 GMNCODE token 用量、每日模型消耗、API/中转站花费、dashboard 用量,或希望用脚本/HTTP 接口直接获取 GMNCODE 使用数据而不是手动打开网页时使用。

alex-shen1121 4473

chat-to-podcast

将与 AI 的对话内容整理成 Podcast 风格文稿,经用户确认后一键发布到 Halo 博客。 支持:指定话题/时间范围/关键词提取对话 → 自动整理成播客文稿(开场白、对话体、要点总结、结尾)→ 预览确认 → 发布 Halo。 当用户提到「整理成播客」「对话转文稿」「发布播客」「聊天内容发博客」「把我们的对话整理成文章」 「对话整理成播客」「chat to podcast」「生成播客文稿」时触发。

alex-shen1121 4473