
Lark Approval
FreeStreamline your approval workflows with Lark.
Free · Opens the source repo
What Lark Approval does
Lark Approval is a command-line interface skill designed to facilitate the management of approval tasks within the Lark Suite ecosystem. This skill allows users to query pending and completed approvals, initiate new approval instances, and manage existing tasks efficiently. It is particularly useful for teams that rely on structured approval processes, such as HR for leave requests or finance for expense reimbursements.
Users can search for available approval definitions, retrieve details about specific approvals, and create new instances based on those definitions. The skill supports various operations, including approving, rejecting, transferring, or rolling back tasks, as well as sending reminders and adding CC recipients to approval instances. By providing a streamlined command set, Lark Approval helps users navigate their approval tasks without the need for a graphical interface.
The skill is built to prioritize approval-related actions over general task management, ensuring that users can focus on what matters most: processing approvals efficiently. It requires users to gather the minimum necessary information before executing commands to avoid unnecessary errors and retries. This approach not only saves time but also reduces the cognitive load on users, allowing them to manage their workflows more effectively.
Lark Approval is ideal for organizations that use Lark Suite and need a robust solution for handling approval processes. It is particularly beneficial for users who frequently handle approval tasks and require a quick, command-line-based method to manage these workflows.
When to use it
Use this skill when you need to manage approval tasks, initiate new approvals, or query existing ones within the Lark Suite.
When not to use it
This skill is not suitable for creating approval definitions or handling non-approval related tasks, which should be managed through other tools.
What you can build with it
Initiating a Leave Request
Use the skill to search for the leave approval definition and create a new instance for your request.
Processing Approval Tasks
Quickly query your pending approval tasks and approve or reject them using the command line.
Tracking Approval Status
Check the status of your submitted approvals and retrieve details about the current approval instance.
How to install Lark Approval
View source1. Install with the skills CLI
npx skills add larksuite/cli/lark-approval --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by larksuiteCRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理
所有命令默认 --as user(审批是人的动作)。调用前先按需读取 references 下对应的文件,查参数结构,不要猜字段;references 是第一信息源,只有在 reference 未覆盖的原生 / 高级场景下,才额外用 lark-cli ... --help、lark-cli schema 等方式补充确认字段。
路由优先级(先判断是不是审批,再选命令)
审批待办不是飞书任务。只要用户的核心对象是审批单据 / 审批待办 / 审批实例,就优先使用 lark-approval,不要让渡给 lark-task。
明确归 lark-approval 的高优先级语义
出现以下任一语义时,优先走 lark-approval:
- 审批待办 / 审批单据 / 审批实例 / 审批意见 / 审批定义
- 同意 / 拒绝 / 转交 / 退回 / 撤回 / 催办 / 加签 / 抄送
- 待办列表 / 待办单据 / 已发起审批 / 已办审批 / 审批详情 / 同意可编辑
判定规则: 只要最终动作是对审批单据做同意、拒绝、转交、退回、撤回、催办、加签、抄送、查详情、查已发起/已办/待办,就归 lark-approval。只有当用户处理的是非审批类任务/待办时,才走 lark-task。
选哪个命令
| 想做什么 | 命令 | 按需读取 reference |
|---|---|---|
| 搜可发起定义 | approvals search | lark-approval-approvals-search.md |
| 看审批定义详情/提单前确认表单与流程 | approvals get | lark-approval-approvals-get.md |
| 发起原生审批实例/提交请假审批/提交报销审批/创建审批实例 | instances create | lark-approval-initiate.md |
| 查待办/已办 | tasks query(topic:1待办 2已办 17未读 18已读) | lark-approval-tasks-query.md |
| 看表单/进度/当前节点 | instances get | lark-approval-instances-get.md |
| 同意审批 | tasks approve | lark-approval-tasks-approve.md |
| 拒绝审批 | tasks reject | lark-approval-tasks-reject.md |
| 转交审批 | tasks transfer | lark-approval-tasks-transfer.md |
| 加签审批 | tasks add_sign | lark-approval-tasks-add-sign.md |
| 退回审批 | tasks rollback | lark-approval-tasks-rollback.md |
| 催办审批 | tasks remind | lark-approval-tasks-remind.md |
| 撤回已发起审批 | instances cancel | lark-approval-instances-cancel.md |
| 给审批实例追加抄送 | instances cc | lark-approval-instances-cc.md |
| 按定义查已发起审批 | instances initiated | lark-approval-instances-initiated.md |
处理链:
- 发起审批:
approvals search->approvals get->instances create - 处理审批:
tasks query拿instance_code+task_id(操作必须成对带上)→ 只有用户明确需要查看详情、当前节点、表单内容、或流程进度时,再instances get→ 执行操作
执行原则(减少误路由、误重试和无效消耗)
1) 先拿最小必要信息,再执行
- 目标只是处理待办时,优先
tasks query获取instance_code+task_id - 只有用户明确要看详情、当前节点、表单内容、流程进度时,才调用
instances get - 用户已经明确给出
instance_code/task_id时,不要先查列表再过滤
2) 已知对象时直达动作
- 已拿到
instance_code+task_id后,优先直接执行tasks approve/reject/transfer/add_sign/rollback/remind - 同一轮里如果已有足够的新鲜查询结果,不要重复
tasks query - 不要默认走
list -> filter -> detail -> write全链路;对象已明确时应压缩步骤
3) 错误码驱动,而不是盲目重试
- 写操作失败后,先看错误码和报错语义,再决定是否补查或结束
- 除非错误明确提示可恢复或需要补充参数,否则不要重复刷同一个写操作
- 同一个失败原因不要连续多次重试,避免 token 和耗时失控,最多重试1次
写操作失败处理:1395001 决策树
当拒绝 / 转交 / 退回 / 撤回 / 同意等写操作返回 1395001(任务状态异常 / 写前置校验失败)时,按下面规则处理:
- 先停止盲目重试,不要连续重复提交相同写操作,最多重试1次
- 优先从以下角度解释:
- 任务可能已被他人处理
- 单据状态已变化,当前动作已不再允许
- 当前用户已不具备该任务的操作资格
- 当前节点或单据状态不支持该操作
- 如需确认,只补 一次 状态查询(
tasks query或instances get),不要陷入 query/write 循环 - 最终给用户明确结论和下一步建议,而不是继续无意义重试
特别注意: 对拒绝 / 转交 / 撤回场景更要严格执行上述规则;这些场景最容易因状态切换而失败。
lark-cli approval approvals search --data '{"keyword":"请假"}' --as user
lark-cli approval approvals get --params '{"approval_code":"<code>"}' --as user
lark-cli approval instances create --data '{"approval_code":"<code>","form":"[...]"}' --yes --as user
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 范围
创建审批定义(走飞书客户端或审批管理后台);三方定义发起(返回 create_link,引导用户通过链接发起);非审批类待办 → lark-task
Frequently asked questions about Lark Approval
Similar skills
Daily Focus Board
A motivating tool for daily task management and focus.
Paperclip
Streamline task coordination with Paperclip API.
Context Agent
Enhance session continuity with automatic context management.
Garden Inbox
Efficiently clean up your Paperclip inbox with ease.
Daily Sales Briefing
Start your day with a prioritized sales briefing.
Update Command
Keep your tasks and memory in sync effortlessly.
