Version / 当前版本:
0.1.9
一个面向 AstrBot 的飞书插件,用于查询本地技能文档,并通过插件配置的飞书应用凭证执行受控 OpenAPI 调用。
An AstrBot plugin for Feishu/Lark that can look up local skill documents and execute controlled OpenAPI calls with the plugin's configured app credentials.
这个仓库提供一个可打包上传到 AstrBot 的插件,主要能力包括:
- 查询本地
skills/*/SKILL.md - 调用受控 Feishu OpenAPI
- 为模型暴露文档、多维表格等行为工具
This repository contains an AstrBot plugin that can:
- search local
skills/*/SKILL.mdfiles - call controlled Feishu OpenAPI endpoints
- expose behavior tools for docs and bitable operations
-
feishu_skill:查询、展示、提示本地技能文档 -
feishu_run:执行预定义 OpenAPI 操作 -
feishu_tool_debug:查看工具注册状态 -
Behavior tools:创建文档、多维表格应用、数据表、记录
-
feishu_skill: search and inspect local skill docs -
feishu_run: execute mapped OpenAPI operations -
feishu_tool_debug: inspect tool registration state -
Behavior tools: create docs, bitable apps, tables, and records
astrbot_plugin_feishu_skills/
├── astrbot_plugin_feishu_skills/ # 插件实现 / plugin package
├── tests/ # 单元测试 / unit tests
├── main.py # AstrBot 注册入口 / plugin entry
├── metadata.yaml # 插件元数据 / plugin metadata
├── _conf_schema.json # 配置定义 / config schema
├── README.astrbot.md # AstrBot 使用说明 / AstrBot-facing docs
└── README.md # 仓库首页说明 / repository README
-
配置飞书应用凭证:
app_id、app_secret -
确认 AstrBot 版本不低于
4.5.1 -
打包插件 zip
-
上传到 AstrBot 并启用
-
发送
/feishu_tool_debug验证命令是否生效 -
Configure
app_idandapp_secret -
Make sure AstrBot is
>= 4.5.1 -
Package the plugin as a zip
-
Upload and enable it in AstrBot
-
Send
/feishu_tool_debugto verify the command works
核心配置项:
app_idapp_secretskills_direnable_skill_lookupenable_docenable_bitableenable_bot_opsallow_mutationallow_raw_openapi
Key config fields:
app_idapp_secretskills_direnable_skill_lookupenable_docenable_bitableenable_bot_opsallow_mutationallow_raw_openapi
完整字段定义见 _conf_schema.json。
See _conf_schema.json for the full configuration schema.
常用命令:
/feishu_skill list/feishu_skill search <keyword>/feishu_skill show <skill>/feishu_run help/feishu_tool_debug/feishu_tool_debug refresh
Common commands:
/feishu_skill list/feishu_skill search <keyword>/feishu_skill show <skill>/feishu_run help/feishu_tool_debug/feishu_tool_debug refresh
行为工具:
feishu_create_docfeishu_create_bitable_appfeishu_create_bitable_tablefeishu_create_bitable_record
Behavior tools:
feishu_create_docfeishu_create_bitable_appfeishu_create_bitable_tablefeishu_create_bitable_record
更详细的命令说明见 README.astrbot.md。
For detailed command docs, see README.astrbot.md.
打包时请直接压缩插件内容本身,不要额外包一层父目录:
zip -r astrbot_plugin_feishu_skills.zip \
metadata.yaml \
main.py \
_conf_schema.json \
README.md \
README.astrbot.md \
requirements.txt \
astrbot_plugin_feishu_skillsPackage the plugin contents directly instead of zipping the parent folder:
zip -r astrbot_plugin_feishu_skills.zip \
metadata.yaml \
main.py \
_conf_schema.json \
README.md \
README.astrbot.md \
requirements.txt \
astrbot_plugin_feishu_skills-
上传后先确认版本号是否已更新
-
命令无效时优先检查是否加载了新包
-
工具不出现时先看
/feishu_tool_debug -
registered_tools为空时尝试/feishu_tool_debug refresh -
必要时完整重启 AstrBot,而不是只热重载
-
若依赖本地技能查询,确认
skills/目录已一并打包 -
Verify the plugin version after every re-upload
-
If commands do not work, first confirm the new package is actually loaded
-
If tools are missing, check
/feishu_tool_debug -
If
registered_toolsis empty, try/feishu_tool_debug refresh -
Fully restart AstrBot when hot reload is not enough
-
If local skill lookup matters, make sure
skills/is included in the package
运行测试:
python -m unittestRun tests:
python -m unittestMIT