技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 20 · 1 current installs · 1 all-time installs
⭐ 0
安装量(当前) 1
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:839305939wang/feishu-bot-creator
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The included script aligns with a Feishu bot-creation purpose, but the skill manifest/metadata contains inconsistencies (missing declared env vars, an unrelated required config path, and an unnecessary curl requirement) and the tool writes secrets to disk in cleartext — review and correct these before installing or using with real credentials.
目的
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 re…
说明范围
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 d…
安装机制
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.
证书
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 p…
持久
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.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Feishu Bot Creator」。简介:飞书机器人创建器 — 自动化创建和配置飞书机器人,包括应用创建、权限配置、 webhook 设置等。| Feishu Bot Creator — Automa…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/839305939wang/feishu-bot-creator/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: feishu-bot-creator
description: 飞书机器人创建器 — 自动化创建和配置飞书机器人,包括应用创建、权限配置、 webhook 设置等。| Feishu Bot Creator — Automate creation and configuration of Feishu bots, including app creation, permission setup, webhook configuration.
license: MIT
compatibility: openclaw
metadata:
version: "1.0.0"
tags: [feishu, bot, robot, automation, openapi]
author: 老牛
openclaw:
emoji: "🤖"
requires:
bins: [python3, curl]
config:
- ~/.openclaw/openclaw.json
---
# Feishu Bot Creator | 飞书机器人创建器
自动化创建和配置飞书机器人,省去手动在飞书开放平台操作的麻烦。
Automate creation and configuration of Feishu bots, eliminating the need for manual operations on Feishu Open Platform.
## 快速开始 | Quick Start
```bash
python3 scripts/feishu_bot_creator.py
--name "我的机器人"
--webhook-url "http://your-server/webhook"
```
## 使用方法 | Usage
### 创建新机器人
```bash
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/<name>.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
```json
{
"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_ID` 和 `FEISHU_APP_SECRET` 环境变量
## 环境变量 | Environment Variables
```bash
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
### 创建简单的通知机器人
```bash
python3 scripts/feishu_bot_creator.py
--name "项目通知"
--description "发送项目更新通知"
--permissions "im:message"
```
### 创建完整的聊天机器人
```bash
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"
```