Score
8.9
/ 10
Installs
266K
Repo Stars
14.5K
Last Updated
0d ago
Quality Ratio
100%
Description
Verified
Language
Go
First Published
Apr 2026
Summary
The Lark Approval agent skill enables AI agents to programmatically interact with Lark's approval system, automating the management of approval instances and tasks directly through API calls. This agent skill is essential for developers integrating AI agents into Larksuite environments to streamline and automate internal business approval processes. It is a moderately adopted skill within the o-mega.ai registry. It provides API resources to manage approval instances (e.g., `get`, `cancel`, `cc`) and tasks (e.g., `approve`, `reject`, `transfer`, `query`). Agents are explicitly instructed to use `lark-cli schema` commands to inspect parameter structures before invoking any API, which is critical for preventing errors from incorrect data formats. Developers should note that initial setup requires consulting an associated shared skill for authentication and permission handling.
Skill Definition
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理
所有命令默认 --as user(审批是人的动作)。调用前先 lark-cli schema approval.<resource>.<method> 查参数结构,不要猜字段。
选哪个命令
| 想做什么 | 命令 |
|---|---|
| 查待办/已办 | tasks query(topic:1待办 2已办 17未读 18已读) |
| 看表单/进度/当前节点 | instances get |
| 同意/拒绝 | tasks approve / tasks reject |
| 转交/加签/退回 | tasks transfer / tasks add_sign / tasks rollback |
| 催办 | tasks remind |
| 撤回/抄送/按定义查已发起 | instances cancel / instances cc / instances initiated |
处理链:tasks query 拿 instance_code + task_id(操作必须成对带上)→ 需要细节再 instances get → 执行操作。
lark-cli approval tasks query --params '{"topic":"1"}' --as user
lark-cli approval tasks approve --data '{"instance_code":"<ic>","task_id":"<tid>","comment":"同意"}' --as user
不在本 skill 范围
创建审批定义/发起新审批(走飞书客户端或审批管理后台);非审批类待办 → lark-task