跳到正文
cccskills
免费在 GitHub 公开

lark-skill-maker

Turn 飞书 API operations into reusable skills for AI agents using lark-cli. Create SKILL.md instructions for individual commands or multistep workflows, documenting required permissions, data passed between steps, and failure recovery.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

创建 lark-cli 的自定义 Skill。当用户需要把飞书 API 操作封装成可复用的 Skill(包装原子 API 或编排多步流程)时使用。

查看安装方法

适用场景

  • Package a 飞书 API operation as a reusable skill
  • Document a workflow involving several API calls
  • Identify API parameters and required permissions
  • Define data handoffs and failure recovery

包含的文件(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Skill Maker

基于 lark-cli 创建新 Skill。Skill = 一份 SKILL.md,教 AI 用 CLI 命令完成任务。

CLI 核心能力

lark-cli <service> <resource> <method>          # 已注册 API
lark-cli <service> +<verb>                      # Shortcut(高级封装)
lark-cli api <METHOD> <path> [--data/--params]  # 任意飞书 OpenAPI
lark-cli schema <service.resource.method>       # 查参数定义

优先级:Shortcut > 已注册 API > api 裸调。

调研 API

# 1. 查看已有的 API 资源和 Shortcut
lark-cli <service> --help

# 2. 查参数定义
lark-cli schema <service.resource.method>

# 3. 未注册的 API,用 api 直接调用
lark-cli api GET /open-apis/vc/v1/rooms --params '{"page_size":"50"}'
lark-cli api POST /open-apis/vc/v1/rooms/search --data '{"query":"5F"}'

如果以上命令无法覆盖需求(CLI 没有对应的已注册 API 或 Shortcut),使用 lark-openapi-explorer 从飞书官方文档库逐层挖掘原生 OpenAPI 接口,获取完整的方法、路径、参数和权限信息,再通过 lark-cli api 裸调完成任务。

通过以上流程确定需要哪些 API、参数和 scope。

SKILL.md 模板

文件放在 skills/lark-<name>/SKILL.md:

---
name: lark-<name>
version: 1.0.0
description: "<功能描述>。当用户需要<触发场景>时使用。"
metadata:
  requires:
    bins: ["lark-cli"]
---


# <标题>

> **前置条件:** 先阅读 [`../lark-shared/SKILL.md`](../lark-shared/SKILL.md)。

## 命令

\```bash
# 单步操作
lark-cli api POST /open-apis/xxx --data '{...}'

# 多步编排:说明步骤间数据传递
# Step 1: ...(记录返回的 xxx_id)
# Step 2: 使用 Step 1 的 xxx_id
\```

## 权限

| 操作 | 所需 scope |
|------|-----------|
| xxx | `scope:name` |

关键原则

  • description 决定触发 — 包含功能关键词 + "当用户需要...时使用"
  • 认证 — 说明所需 scope,登录用 lark-cli auth login --domain <name>
  • 安全 — 写入操作前确认用户意图,建议 --dry-run 预览
  • 编排 — 说明数据传递、失败回滚、可并行步骤

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Find and process approval requests in 飞书, including approving, rejecting, transferring, or returning them. Review forms and progress, search existing approval forms and workflows, and submit native requests such as leave or expense claims.

中文简介正在准备中。当前显示英语简介。

  • Review pending and completed approval requests
  • Approve, reject, or return a request
  • Find an existing form and submit leave or expense claims
larksuite/cli1.8万2026年10月16日 更新

lark-apps

免费

Build, publish, and manage apps on 妙搭(Spark/Miaoda) through local development or cloud AI sessions. Create page designs, manage data and permissions, inspect logs and usage, and configure automated triggers.

中文简介正在准备中。当前显示英语简介。

  • Build and publish a business app
  • Create landing pages and interactive prototypes
  • Inspect production logs and usage
larksuite/cli1.8万2026年10月16日 更新

Retrieve your own attendance clock records from 飞书 through lark-cli. The skill fills in fixed query parameters and uses read-only attendance access to look up the records you want to check.

中文简介正在准备中。当前显示英语简介。

  • Checking your own attendance clock records
  • Reviewing recorded clock-ins and clock-outs
  • Asking an agent to retrieve attendance records
larksuite/cli1.8万2026年10月16日 更新

lark-base

免费

Build and manage business tables in Feishu Base, including fields, records, views, and data queries. Create forms and dashboards, configure automated workflows, organize BaseApp pages and components, and manage role-based access permissions.

中文简介正在准备中。当前显示英语简介。

  • Create business tables and update records
  • Filter and summarize table data
  • Create information collection forms
larksuite/cli1.8万2026年10月16日 更新

Manage events, attendees, and meeting rooms in 飞书. Check shared availability, get meeting time suggestions that account for working hours and breaks, and create or update events with room reservations.

中文简介正在准备中。当前显示英语简介。

  • Review today's events or search upcoming meetings
  • Find suitable meeting times for several people
  • Book a room with a calendar event
larksuite/cli1.8万2026年10月16日 更新

Finds Lark contacts by name or email and retrieves open_id, an identifier used in later actions. It also looks up profile details, personal status, and signatures, and searches for bots or agents visible to the current user.

中文简介正在准备中。当前显示英语简介。

  • Identifying a colleague before messaging or scheduling
  • Looking up a profile from a known open_id
  • Checking colleagues’ personal status and signatures
larksuite/cli1.8万2026年10月16日 更新

查看 larksuite 的全部技能

报告此技能的问题