← 返回 Skills 市场
839305939wang

Feishu Bot Creator

作者 839305939wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
163
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-bot-creator
功能描述
飞书机器人创建器 — 自动化创建和配置飞书机器人,包括应用创建、权限配置、 webhook 设置等。| Feishu Bot Creator — Automate creation and configuration of Feishu bots, including app creation, permissi...
使用说明 (SKILL.md)

Feishu Bot Creator | 飞书机器人创建器

自动化创建和配置飞书机器人,省去手动在飞书开放平台操作的麻烦。

Automate creation and configuration of Feishu bots, eliminating the need for manual operations on Feishu Open Platform.

快速开始 | Quick Start

python3 scripts/feishu_bot_creator.py \
  --name "我的机器人" \
  --webhook-url "http://your-server/webhook"

使用方法 | Usage

创建新机器人

python3 scripts/feishu_bot_creator.py \
  --name "机器人名称" \
  --description "机器人描述" \
  --webhook-url "http://your-server/webhook" \
  --permissions "im:message,im:chat"

参数说明 | Arguments

  • --name(必填):机器人名称
  • --description(可选):机器人描述
  • --webhook-url(可选):接收消息的 webhook 地址
  • --permissions(可选):需要的权限,逗号分隔
  • --icon(可选):机器人图标 URL
  • --output(可选):输出配置文件路径,默认 ~/.feishu/bots/\x3Cname>.json

可用权限 | Available Permissions

im:message          - 发送消息
im:chat             - 访问聊天信息
im:chat:read        - 读取聊天记录
im:message:send_as_bot - 以机器人身份发送消息
contact:contact:readonly - 读取通讯录
calendar:calendar:readonly - 读取日历
drive:drive:readonly - 读取云文档

工作原理 | How It Works

  1. 调用飞书开放平台 API 创建应用
  2. 配置应用权限
  3. 设置机器人头像和名称
  4. 配置 webhook(如提供)
  5. 生成配置文件

输出示例 | Output Example

{
  "app_id": "cli_a1b2c3d4e5f6",
  "app_secret": "xxxxx",
  "name": "我的机器人",
  "webhook_url": "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxx",
  "permissions": ["im:message", "im:chat"]
}

前置要求 | Prerequisites

  1. 需要飞书开放平台账号
  2. 需要有创建应用的权限
  3. 需要配置 FEISHU_APP_IDFEISHU_APP_SECRET 环境变量

环境变量 | Environment Variables

export FEISHU_APP_ID="your_app_id"
export FEISHU_APP_SECRET="your_app_secret"
export FEISHU_API_BASE="https://open.feishu.cn"  # 可选,默认

错误处理 | Error Handling

  • 权限不足 → 检查账号是否有创建应用权限
  • 名称重复 → 换一个机器人名称
  • API 限制 → 等待后重试

安全说明 | Security

  • 生成的 app_secret 请妥善保管
  • 建议将配置文件添加到 .gitignore
  • 不要将凭证提交到版本控制

随附脚本 | Bundled Script

  • scripts/feishu_bot_creator.py

示例 | Examples

创建简单的通知机器人

python3 scripts/feishu_bot_creator.py \
  --name "项目通知" \
  --description "发送项目更新通知" \
  --permissions "im:message"

创建完整的聊天机器人

python3 scripts/feishu_bot_creator.py \
  --name "AI 助手" \
  --description "智能聊天助手" \
  --webhook-url "http://localhost:8080/webhook" \
  --permissions "im:message,im:chat,im:chat:read" \
  --icon "https://example.com/icon.png"
安全使用建议
The Python script itself appears to implement Feishu app/bot creation and is consistent with the skill's stated purpose. However before installing or using this skill: - Do not assume the registry metadata is correct: the script requires FEISHU_APP_ID and FEISHU_APP_SECRET (and optionally FEISHU_API_BASE) but the manifest lists no env vars. Provide those credentials only when you trust the code and environment. - The manifest's required config path (~/.openclaw/openclaw.json) is unrelated to this tool and should be removed or explained by the publisher; avoid granting extra config access unless needed. - The script saves app_secret in cleartext under ~/.feishu/bots/<name>.json. If you use real credentials, ensure that path is private, excluded from version control, or consider modifying the script to store secrets encrypted or use a secret manager. - The SKILL.md declares 'curl' as required but the script uses Python 'requests' — ensure you have the correct Python dependencies (install 'requests') rather than relying on curl. - Because the package is instruction-only and from an unknown source, consider running it in an isolated environment (local VM or container) and review the code yourself. If you are uncertain, request the publisher to: (1) fix manifest metadata to declare required env vars and remove the unrelated config path, (2) add dependency instructions for Python packages, and (3) avoid writing secrets to disk by default or document the storage location clearly.
功能分析
Type: OpenClaw Skill Name: feishu-bot-creator Version: 1.0.0 The skill bundle is a legitimate automation tool for creating and configuring Feishu (Lark) bots using the official Feishu Open API. The script `scripts/feishu_bot_creator.py` correctly implements OAuth token retrieval, application creation, and permission management. While it handles sensitive credentials and saves them to a local configuration file (`~/.feishu/bots/`), this behavior is transparently documented in `SKILL.md` and is necessary for the tool's stated purpose. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The skill name, SKILL.md, and the bundled Python script all describe creating/configuring Feishu bots and the script's API calls match that purpose. However the registry metadata is inconsistent: it declares no required environment variables whereas SKILL.md and the script require FEISHU_APP_ID and FEISHU_APP_SECRET. The metadata also lists a required config path (~/.openclaw/openclaw.json) that is unrelated to the stated purpose and is not referenced by the script. Additionally, curl is declared as a required binary but the bundled script uses Python 'requests' and does not call curl. These mismatches are worth flagging.
Instruction Scope
The runtime instructions and script stay within the stated purpose: obtaining a Feishu tenant token, creating an app, setting permissions, creating a bot, and saving a config file. The instructions do ask users to set FEISHU_APP_ID/FEISHU_APP_SECRET and optionally FEISHU_API_BASE. The script writes credentials (app_secret) to a local file (~/.feishu/bots/<name>.json) in cleartext, which is expected for convenience but is sensitive — SKILL.md does mention keeping secrets safe. No unexpected network endpoints or exfiltration were found in the code.
Install Mechanism
There is no install spec (instruction-only plus a bundled script), so nothing will be downloaded or extracted during install. This is low installation risk. Note: the script imports 'requests' but there is no dependency declaration or install instruction for Python packages; the SKILL.md lists required binaries including curl (which is not used), so the manifest is inconsistent about dependencies.
Credentials
The environment variables the script actually needs (FEISHU_APP_ID, FEISHU_APP_SECRET, optional FEISHU_API_BASE) are proportional to the task. But the registry metadata lists no required env vars, creating an inconsistency. The skill also requests access to a config path (~/.openclaw/openclaw.json) that the script does not use; requiring that path is disproportionate and could imply unnecessary access to agent configuration. Also, the script persists app_secret to an unencrypted local file — functionally reasonable but sensitive; users should be informed and store secrets securely where appropriate.
Persistence & Privilege
The skill does not request 'always: true' and uses default invocation settings (user-invocable, model-invocation allowed), which is normal. There is no code that modifies other skills or global agent settings. The only persistence is writing the bot config (including secret) to the user's home directory — expected behavior for this tool but sensitive.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-bot-creator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-bot-creator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Feishu Bot Creator. - Automates the creation and configuration of Feishu bots, including app setup, permission assignment, and webhook configuration. - Supports command-line usage with customizable arguments for name, description, permissions, webhook URL, and more. - Generates a configuration file containing app credentials and settings. - Includes bundled script: scripts/feishu_bot_creator.py. - Provides clear documentation, usage examples, and security best practices.
元数据
Slug feishu-bot-creator
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Feishu Bot Creator 是什么?

飞书机器人创建器 — 自动化创建和配置飞书机器人,包括应用创建、权限配置、 webhook 设置等。| Feishu Bot Creator — Automate creation and configuration of Feishu bots, including app creation, permissi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 163 次。

如何安装 Feishu Bot Creator?

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

Feishu Bot Creator 是免费的吗?

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

Feishu Bot Creator 支持哪些平台?

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

谁开发了 Feishu Bot Creator?

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

💬 留言讨论