← 返回 Skills 市场
feishu-duoge002
作者
lcz5221-svg
· GitHub ↗
· v1.0.0
· MIT-0
58
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-duoge002
功能描述
批量创建多飞书机器人,每个独立记忆、存储、大模型配置和连接,实现多角色多账号完全隔离管理。
使用说明 (SKILL.md)
Feishu Multi-Bot Setup
批量创建多个飞书机器人(多Agent),每个机器人拥有:
- ✅ 独立记忆系统 - 独立的 MEMORY.md 和每日日志
- ✅ 独立存储空间 - 每个机器人独立工作目录
- ✅ 独立大模型配置 - 每个机器人可配置不同的模型
- ✅ 独立角色设定 - 独立的 SOUL.md、IDENTITY.md
- ✅ 独立飞书连接 - 每个机器人对应独立的飞书应用凭证
功能特点
- 一键批量创建多个飞书机器人
- 自动转换配置格式(从单账号到多账号)
- 自动创建所有配置文件
- 自动绑定路由规则
- 自动处理白名单权限问题
- 每个机器人完全隔离
使用方法
1. 准备配置文件
创建一个 JSON 配置文件 bots_config.json,格式如下:
{
"bots": [
{
"name": "coding-assistant-bot",
"agentId": "feishu-coding-assistant",
"appId": "cli_xxx",
"appSecret": "xxx",
"encryptKey": "xxx",
"verificationToken": "xxx",
"model": "volcengine-plan/ark-code-latest",
"connectionMode": "websocket",
"personality": {
"role": "编程助手",
"tagline": "全栈开发工程师",
"style": "严谨高效、直给代码",
"styleDescription": "代码风格严谨高效,直接给出可运行代码",
"responsibilities": [
"代码编写",
"Bug修复",
"框架开发",
"接口与部署"
],
"description": "我是全栈开发工程师...",
"motto": "代码即艺术,效率即生命",
"emoji": "💻"
}
}
]
}
配置字段说明
| 字段 | 必填 | 说明 |
|---|---|---|
| name | ✅ | Bot 内部名称 (飞书账号 ID) |
| agentId | ✅ | Agent 唯一标识 |
| appId | ✅ | 飞书应用 ID |
| appSecret | ✅ | 飞书应用密钥 |
| encryptKey | ❌ | 加密密钥 |
| verificationToken | ❌ | 验证令牌 |
| model | ❌ | 独立大模型配置,默认使用全局默认 |
| connectionMode | ❌ | websocket 或 webhook,默认 websocket |
| personality | ✅ | 机器人角色信息(见下面) |
Personality 字段说明
| 字段 | 必填 | 说明 |
|---|---|---|
| role | ✅ | 机器人角色名称 |
| tagline | ✅ | 简短描述 |
| style | ✅ | 工作风格描述 |
| styleDescription | ❌ | 详细风格说明 |
| responsibilities | ✅ | 职责列表 |
| description | ✅ | 自我介绍 |
| motto | ❌ | 签名格言 |
| emoji | ✅ | 机器人表情 |
2. 运行批量创建脚本
python3 /root/.openclaw/workspace/skills/feishu-multi-bot-setup/scripts/setup_bots.py /path/to/bots_config.json
3. 重启网关
openclaw gateway restart
权限说明
- 每个飞书机器人应用中,用户的 Open ID 是完全不同的
- 首次运行后,可以从网关日志中提取每个机器人对应的用户 ID
- 然后将用户 ID 添加到对应机器人配置的
allowFrom列表中 dmPolicy: "open"配合空的allowFrom表示允许所有人访问dmPolicy: "allowlist"需要配置具体的允许用户列表
常见问题
Q: 为什么机器人收到消息但不回复?
A: 检查网关日志,看是否显示 blocked unauthorized sender,如果有,说明需要将对应的用户 ID 添加到该机器人的 allowFrom 白名单中。
Q: 每个机器人真的完全独立吗?
A: 是的!每个机器人:
- 独立工作目录
~/.openclaw/agents/{agent_id}/workspace/ - 独立的记忆文件
MEMORY.md和memory/目录 - 独立的角色配置
SOUL.md和IDENTITY.md - 可以配置独立的大模型
- 独立的飞书连接
Q: websocket 和 webhook 选哪个?
A: 推荐使用 websocket,不需要公网 IP,OpenClaw 主动连接飞书服务器。如果使用 webhook 需要公网可访问地址。
总结
这个技能解决了批量创建多个独立飞书机器人的问题,让你可以:
- 根据不同职能创建不同的机器人
- 每个机器人有自己独立的记忆和模型
- 机器人之间完全隔离互不干扰
- 一键配置,自动完成所有设置
作者: OpenClaw 批量飞书机器人配置 版本: 1.0.0
安全使用建议
Install only if you need this level of Feishu/OpenClaw administration. Before running it, inspect the full local script, back up ~/.openclaw/openclaw.json, use trusted bot configs only, restrict agentId values, replace open access with allowlists where possible, and store Feishu secrets securely.
功能分析
Type: OpenClaw Skill
Name: feishu-duoge002
Version: 1.0.0
The script 'scripts/setup_bots.py' contains a shell injection vulnerability in the 'run_command' function, which executes system commands using 'shell=True' with the 'agent_id' variable sourced directly from a user-provided JSON configuration. While the script's behavior is consistent with its stated purpose of automating Feishu bot setups, the lack of input sanitization and the practice of programmatically modifying the global '~/.openclaw/openclaw.json' configuration file present significant security risks if the input configuration is untrusted.
能力评估
Purpose & Capability
The stated purpose and included script are broadly coherent: they batch-create Feishu bots, per-agent workspaces, memory files, model settings, credentials, and route bindings. These are powerful administrative setup actions.
Instruction Scope
The setup workflow trusts values from bots_config.json; agentId is used in a shell command and filesystem paths without validation, creating command-execution and unexpected file-write risk if a config is malicious or malformed.
Install Mechanism
There is no automatic install spec or package download; the user manually runs a Python script. However, the registry name differs from the internal/documented slug, so users should confirm they are running the reviewed script path.
Credentials
The script directly modifies ~/.openclaw/openclaw.json, agent configs, route bindings, and Feishu account policies, with no backup, dry-run, validation, or rollback shown.
Persistence & Privilege
Created agents have persistent workspaces and memory files, use Feishu application secrets, and default to open DM/group access with an empty allowlist.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-duoge002 - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-duoge002触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Feishu Multi-Bot Setup 1.0.0
- Initial release enabling batch creation of fully independent Feishu bots.
- Each bot features separate memory, storage, model configuration, personality, and Feishu connection.
- Provides automatic conversion from single-account to multi-account configuration.
- Includes scripts for easy setup and management, with clear instructions and troubleshooting.
- Supports independent allowlist management and dmPolicy options per bot.
元数据
常见问题
feishu-duoge002 是什么?
批量创建多飞书机器人,每个独立记忆、存储、大模型配置和连接,实现多角色多账号完全隔离管理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 58 次。
如何安装 feishu-duoge002?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-duoge002」即可一键安装,无需额外配置。
feishu-duoge002 是免费的吗?
是的,feishu-duoge002 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
feishu-duoge002 支持哪些平台?
feishu-duoge002 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 feishu-duoge002?
由 lcz5221-svg(@lcz5221-svg)开发并维护,当前版本 v1.0.0。
推荐 Skills