Skip to content
Automation
Skill

/feishu-cli-platform

仅用于飞书 CLI 的平台基础能力,不是所有飞书请求的通用兜底。覆盖配置初始化、OAuth 登录与 Token/Profile 管理、doctor 诊断、 OpenAPI schema 查询、api 通用透传、全局搜索以及用户和部门查询。用户提到登录飞书、 Device Flow、scope、User/Tenant Token、Token 过期、profile、doctor、99991672/99991679、 查询 API path/参数/scope、raw api、调用未封装 OpenAPI、搜索文档/消息/应用或查询用户、邮箱、 部门时必须使用本

From plugin
feishu-cli
1.4k9 skills
Install
$ npx -y skills add riba2534/feishu-cli --skill feishu-cli-platform --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/feishu-cli-platform

Context preview

The summary Claude sees to decide when to auto-load this skill.

仅用于飞书 CLI 的平台基础能力,不是所有飞书请求的通用兜底。覆盖配置初始化、OAuth 登录与 Token/Profile 管理、doctor 诊断、 OpenAPI schema 查询、api 通用透传、全局搜索以及用户和部门查询。用户提到登录飞书、 Device Flow、scope、User/Tenant Token、Token 过期、profile、doctor、99991672/99991679、 查询 API path/参数/scope、raw api、调用未封装 OpenAPI、搜索文档/消息/应用或查询用户、邮箱、 部门时必须使用本

SKILL.md

feishu-cli-platform.SKILL.md
name: feishu-cli-platform
description: >-
  仅用于飞书 CLI 的平台基础能力,不是所有飞书请求的通用兜底。覆盖配置初始化、OAuth 登录与
  Token/Profile 管理、doctor 诊断、
  OpenAPI schema 查询、api 通用透传、全局搜索以及用户和部门查询。用户提到登录飞书、
  Device Flow、scope、User/Tenant Token、Token 过期、profile、doctor、99991672/99991679、
  查询 API path/参数/scope、raw api、调用未封装 OpenAPI、搜索文档/消息/应用或查询用户、邮箱、
  部门时必须使用本 Skill。明确禁止用于文档正文、云盘文件、消息/群聊、Sheet/Bitable、
  画板/展示、日历/任务/审批/考勤/OKR、邮箱或会议/妙记;这些业务操作交给对应领域 Skill。
  这里的“全局搜索”仅指 `search docs/messages/apps`,不包括在审批、会议、邮箱等业务域内查询。
  请求出现 approval、approval_code、审批定义/实例/待办时绝对不要使用本 Skill,应使用
  feishu-cli-work;出现视频会议、妙记、minute、录制或逐字稿时应使用 feishu-cli-meetings。
argument-hint: <auth|config|profile|api|schema|search|user|dept> [args]
user-invocable: true
allowed-tools: Bash(feishu-cli:*), Bash(./feishu-cli:*), Bash(jq:*), Bash(curl:*), Bash(python3:*), Read, Write

飞书平台能力

先判断意图,再读取对应工作流。不要一次加载全部 reference。 加载后,将工作流中的 `references/`、`scripts/`、`templates/`、`examples/` 相对路径按该 `workflow.md` 所在目录解析;执行脚本时使用解析后的实际路径,不要依赖当前 shell 目录。

路由

| 意图 | 读取文件 | |---|---| | 登录、登出、scope 预检、Token、profile、config、doctor | `references/workflows/auth/workflow.md` | | 调任意 OpenAPI、`--as`、分页和 dry-run | `references/workflows/api/workflow.md` | | 查询本地 OpenAPI path、参数和 scope | `references/workflows/schema/workflow.md` | | 搜索文档、消息或应用 | `references/workflows/search/workflow.md` | | 查询用户、邮箱、手机号、部门 | `references/workflows/directory/workflow.md` |

Schema 只负责发现接口;API 负责执行请求。通常先查 schema,再调用 api。

执行规则

1. 优先运行仓库当前编译产物 `./feishu-cli`;安装环境才使用 PATH 中的 `feishu-cli`。 2. User Token 操作先执行 `auth check --scope`。不要在输出、文件或命令历史中暴露真实 Token。 3. 多 Bot / 不确定当前是哪个应用时,先 `profile list --json`;单次目录/Token 选择用 `--profile <name>`,不要为一条命令去 `profile use`。若 `env_overrides.app_id/app_secret=true`,环境变量仍覆盖 App 凭证,需先提示用户 unset 对应变量。 4. 写请求先用 `--dry-run`;API 不支持 dry-run 的端点需明确告知用户副作用。 5. 搜索与通讯录结果默认只读取;用户要求后续写操作时再切换到对应领域 Skill。

领域边界

  • 文档读写与导入导出:`feishu-cli-docs`
  • 云盘、知识库、评论和权限:`feishu-cli-storage`
  • 消息、群聊、卡片和事件:`feishu-cli-messaging`
  • Sheet/Bitable:`feishu-cli-data`
Read more
Ships withfeishu-cli

feishu-cli 是一个功能完整的飞书开放平台命令行工具。它将飞书文档、知识库、电子表格、消息、日历、任务等操作封装为简洁的命令行接口,核心能力是 Markdown ↔ 飞书文档双向无损转换。

Get the whole plugin
Stats
1,391
Stars
141
Forks
Active
Maintenance
Go
Language
MIT
License
21d ago
Last commit
8mo ago
Created

Repo: riba2534/feishu-cli

Other skills on feishu-cli.

feishu-cli-data
Skill

feishu-cli-data

仅用于普通电子表格 Sheet 与多维表格 Bitable/Base,不是所有数据或 JSON 请求的通用入口。 用户要求读写单元格、 导入导出表格、设置样式/筛选视图/条件/下拉框/浮动图片,或操作多维表格的表、字段、记录、 视图、角色、协作者、仪表盘、表单、工作流和数据聚合时使用;也覆盖 --as bot 的…

feishu-cli-docs
Skill

feishu-cli-docs

飞书文档统一入口,覆盖读取和分析 docx/wiki/sheet、创建与编辑文档、Markdown 导入、 docx/wiki/sheet 导出 Markdown/PDF/Word/Excel,以及云盘原生 .md 文件 CRUD。用户要求阅读、 总结、创建、追加、覆盖、替换或删除文档内容,把 Markdown…

feishu-cli-mail
Skill

feishu-cli-mail

飞书邮箱专用入口,覆盖收件箱分诊、邮件和线程读取、发送、回复、转发、草稿、过滤器、签名、 CID 内联图片和模板。用户提到飞书邮件、邮箱、收件箱、未读邮件、草稿、过滤器、邮箱签名、 邮件模板、回复、转发、发送预览/确认或发送 HTML/CID 邮件时必须使用本 Skill。…

feishu-cli-meetings
Skill

feishu-cli-meetings

飞书视频会议与妙记专用入口,覆盖会议搜索、纪要与 AI 产物、逐字稿、录制、妙记媒体下载、 会议机器人入会/离会和会议事件。用户要求按日程或时间查找历史会议、获取会议纪要/AI 摘要、 minute token、下载录制/视频/逐字稿、操作 meeting bot 或查询妙记时必须使用本…

feishu-cli-messaging
Skill

feishu-cli-messaging

飞书即时消息统一入口,覆盖发送、回复、转发、合并转发、加急和资源下载,读取聊天历史、 Reaction、Pin 和群成员管理,构造 V2 交互卡片,以及 WebSocket 事件订阅。用户要求发消息或通知、 查看或导出群聊、管理群成员、制作告警/审批/报告/dashboard/营销宣传/节日贺卡/品牌展示/…

feishu-cli-storage
Skill

feishu-cli-storage

飞书云空间统一入口,覆盖 Drive 增强上传下载与异步导入导出、基础 file/media 操作、 wiki 知识库节点和空间管理、文档评论、协作者和公开权限。用户提到云盘文件、文件夹、 大文件分块或断点续传、异步任务、目录镜像、知识库、wiki、素材、评论、共享权限、…