Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Feishu Bitable API

飞书多维表格(Bitable)API技能。用于创建、读取、更新和删除飞书多维表格的数据表、记录和字段。

MIT-0 · Free to use, modify, and redistribute. No attribution required.
3 · 2k · 9 current installs · 9 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description, required env vars (FEISHU_APP_ID, FEISHU_APP_SECRET), CLI usage, and code (API client + CLI) all align with a Feishu Bitable integration. The skill only asks for the Feishu app credentials it needs to request tenant access tokens and call the Bitable API.
Instruction Scope
SKILL.md and bin/cli.js instruct the agent/user to install dependencies, set FEISHU_APP_ID/FEISHU_APP_SECRET (or a secret path), and run CLI commands that call Feishu endpoints. The runtime instructions do not ask for unrelated files, credentials, or call external endpoints other than Feishu's open API. parseJsonInput supports @file inputs (expected for CLI file-based JSON).
Install Mechanism
No install spec in registry (instruction-only), but the package contains source and a package.json; users must run `npm install` to fetch dependencies. Dependencies are common (axios, commander, dotenv). package-lock references a mirror (registry.npmmirror.com) — typical in some regions but worth noting because npm install will contact a registry to fetch packages.
Credentials
Only FEISHU_APP_ID and FEISHU_APP_SECRET are required (primaryEnv FEISHU_APP_ID). The code also accepts FEISHU_APP_SECRET_PATH as an alternate, which is supported by utils.getEnvVar. No unrelated tokens, cloud credentials, or broad secrets are requested.
Persistence & Privilege
Skill does not request always:true, does not modify other skills, and has no special persistence. It runs as a normal, user-invocable skill and only needs credentials for Feishu.
Assessment
This skill appears to be a straightforward Feishu Bitable client. Before installing: 1) Only provide FEISHU_APP_ID and FEISHU_APP_SECRET (or set FEISHU_APP_SECRET_PATH to a secure file). Store these secrets securely (not in public repos). 2) Review and confirm the Feishu app permissions (bitable read/write) before granting. 3) Run npm install in a controlled environment and optionally inspect package-lock for unexpected packages or registries (package-lock references a mirror registry). 4) Note small implementation quirks (e.g., token-expiry check in src/api.js tests an unusual numeric status code which may be a bug but is not malicious). 5) If you need stricter isolation, run the CLI in a sandbox/container or review the source files locally before use.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
apivk9702ss40k8k03a50c0bjnq6pd80nm49automationvk9702ss40k8k03a50c0bjnq6pd80nm49bitablevk9702ss40k8k03a50c0bjnq6pd80nm49chinesevk9702ss40k8k03a50c0bjnq6pd80nm49databasevk9702ss40k8k03a50c0bjnq6pd80nm49feishuvk9702ss40k8k03a50c0bjnq6pd80nm49larkvk9702ss40k8k03a50c0bjnq6pd80nm49latestvk9702ss40k8k03a50c0bjnq6pd80nm49spreadsheetvk9702ss40k8k03a50c0bjnq6pd80nm49

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

📊 Clawdis
EnvFEISHU_APP_ID, FEISHU_APP_SECRET
Primary envFEISHU_APP_ID

SKILL.md

飞书多维表格(Bitable)技能

用于操作飞书多维表格的完整技能,支持数据表、记录和字段的CRUD操作。

功能特性

  • ✅ 数据表管理(创建、列表、获取、删除)
  • ✅ 记录管理(创建、读取、更新、删除、批量操作)
  • ✅ 字段管理(创建、列表、更新)
  • ✅ 视图管理(列表、获取)
  • ✅ 应用管理(获取应用信息)

环境变量配置

# 飞书应用ID
export FEISHU_APP_ID=cli_xxxxxx

# 飞书应用密钥(或密钥文件路径)
export FEISHU_APP_SECRET=your_app_secret
# 或
export FEISHU_APP_SECRET_PATH=~/.clawdbot/secrets/feishu_app_secret

快速开始

1. 安装依赖

cd skills/feishu-bitable
npm install

2. 设置环境变量

export FEISHU_APP_ID=cli_xxxxxx
export FEISHU_APP_SECRET=your_app_secret

3. 使用CLI工具

# 获取帮助
node bitable-cli.js --help

# 列出所有数据表
node bitable-cli.js list-tables --app-token basxxxxxx

# 创建新记录
node bitable-cli.js create-record --app-token basxxxxxx --table-id tblxxxxxx --data '{"字段1": "值1", "字段2": "值2"}'

# 查询记录
node bitable-cli.js list-records --app-token basxxxxxx --table-id tblxxxxxx

API端点

数据表相关

  • GET /bitable/v1/apps/{app_token}/tables - 获取数据表列表
  • POST /bitable/v1/apps/{app_token}/tables - 创建数据表
  • GET /bitable/v1/apps/{app_token}/tables/{table_id} - 获取数据表详情
  • DELETE /bitable/v1/apps/{app_token}/tables/{table_id} - 删除数据表

记录相关

  • POST /bitable/v1/apps/{app_token}/tables/{table_id}/records - 新增记录
  • GET /bitable/v1/apps/{app_token}/tables/{table_id}/records - 获取记录列表
  • PUT /bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id} - 更新记录
  • DELETE /bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id} - 删除记录
  • POST /bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_create - 批量新增记录
  • POST /bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_update - 批量更新记录
  • POST /bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_delete - 批量删除记录

字段相关

  • GET /bitable/v1/apps/{app_token}/tables/{table_id}/fields - 获取字段列表
  • POST /bitable/v1/apps/{app_token}/tables/{table_id}/fields - 创建字段
  • PUT /bitable/v1/apps/{app_token}/tables/{table_id}/fields/{field_id} - 更新字段

视图相关

  • GET /bitable/v1/apps/{app_token}/tables/{table_id}/views - 获取视图列表
  • GET /bitable/v1/apps/{app_token}/tables/{table_id}/views/{view_id} - 获取视图详情

使用示例

1. 创建数据表

node bitable-cli.js create-table \
  --app-token basxxxxxx \
  --name "任务管理" \
  --fields '[{"field_name": "任务名称", "type": "text"}, {"field_name": "状态", "type": "select", "property": {"options": [{"name": "待办"}, {"name": "进行中"}, {"name": "已完成"}]}}]'

2. 添加记录

node bitable-cli.js create-record \
  --app-token basxxxxxx \
  --table-id tblxxxxxx \
  --data '{"任务名称": "完成API开发", "状态": "进行中", "优先级": "高", "截止日期": "2024-12-31"}'

3. 查询记录

node bitable-cli.js list-records \
  --app-token basxxxxxx \
  --table-id tblxxxxxx \
  --filter '{"conjunction": "and", "conditions": [{"field_name": "状态", "operator": "is", "value": ["进行中"]}]}' \
  --sort '["-创建时间"]' \
  --page-size 50

4. 批量操作

node bitable-cli.js batch-create \
  --app-token basxxxxxx \
  --table-id tblxxxxxx \
  --data-file records.json

字段类型支持

飞书多维表格支持以下字段类型:

  • text - 文本
  • number - 数字
  • single_select - 单选
  • multi_select - 多选
  • date - 日期
  • person - 人员
  • checkbox - 复选框
  • url - 链接
  • phone - 电话
  • email - 邮箱
  • attachment - 附件
  • formula - 公式
  • created_time - 创建时间
  • modified_time - 修改时间
  • created_by - 创建人
  • modified_by - 修改人

错误处理

技能包含完整的错误处理机制:

  • 网络错误重试
  • 权限验证
  • 参数验证
  • 速率限制处理

注意事项

  1. 权限要求:应用需要具备bitable:record:readonlybitable:record:write权限
  2. 速率限制:飞书API有速率限制,建议添加适当的延迟
  3. 数据大小:单次请求记录数量建议不超过100条
  4. 字段名称:字段名称在表中必须唯一

Clawdbot集成

在Clawdbot中使用此技能

  1. 确保技能已安装:技能应该位于 skills/feishu-bitable 目录
  2. 设置环境变量:在Clawdbot配置中设置飞书应用凭证
  3. 在对话中调用:Clawdbot可以调用此技能来操作飞书多维表格

示例对话

用户: "帮我在飞书多维表格中添加一个任务" Clawdbot:

# 使用技能添加任务
node skills/feishu-bitable/bin/cli.js create-record \
  --app-token basxxxxxx \
  --table-id tblxxxxxx \
  --data '{"任务名称": "新任务", "状态": "待办", "优先级": "中"}'

自动化工作流

你可以创建自动化工作流,例如:

  • 每天同步任务状态
  • 从其他系统导入数据到飞书多维表格
  • 根据条件自动更新记录
  • 生成报表并发送到飞书群聊

开发指南

如需扩展功能,请参考:

  • src/api.js - API客户端
  • src/cli.js - 命令行接口
  • src/utils.js - 工具函数

添加新的API端点

  1. src/api.jsFeishuBitableAPI 类中添加新方法
  2. bin/cli.js 中添加对应的命令
  3. 更新文档

错误处理最佳实践

  • 使用 try-catch 包装所有API调用
  • 提供有意义的错误消息
  • 实现重试逻辑处理网络错误
  • 验证输入参数

Files

13 total
Select a file
Select a file to preview.

Comments

Loading comments…