feishu-cli is a command-line tool for controlling the Feishu collaboration platform, including documents, knowledge bases, spreadsheets, messages, calendars, and tasks. People and AI coding agents use it to manage Feishu through commands, with particular support for converting Markdown to Feishu documents and back. Its catalogue skills provide ready-made AI-agent workflows for these operations.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/riba2534/feishu-clinpx agentmods add skills/riba2534/feishu-cli/feishu-cli-platformWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/riba2534/feishu-cli/feishu-cli-platform)<a href="https://agentmods.dev/skills/riba2534/feishu-cli/feishu-cli-platform"><img src="https://agentmods.dev/badge/skills/riba2534/feishu-cli/feishu-cli-platform/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/riba2534/feishu-cli/feishu-cli-platform"><img src="https://agentmods.dev/badge/skills/riba2534/feishu-cli/feishu-cli-platform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00228 | $0.01300 |
| Opus 5.5 | $0.00091 | $0.00520 |
| Sonnet 5.5 | $0.00046 | $0.00260 |
| Haiku 4.5 | $0.00023 | $0.00130 |
Grade A, and why
feishu-cli-platform scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
飞书平台能力
先判断意图,再读取对应工作流。不要一次加载全部 reference。
加载后,将工作流中的 references/、scripts/、templates/、examples/ 相对路径按该
workflow.md 所在目录解析;执行脚本时使用解析后的实际路径,不要依赖当前 shell 目录。
路由
| 意图 | 读取文件 |
|---|---|
登录、登出、scope 预检、应用已开通 scope 诊断(auth scopes)、Token、profile、config、doctor、技能安装/漂移(skills)、CLI 升级(update) |
references/workflows/auth/workflow.md |
调任意 OpenAPI、--as、分页和 dry-run |
references/workflows/api/workflow.md |
| 查询本地 OpenAPI path、参数和 scope | references/workflows/schema/workflow.md |
全局搜索文档(含 drive search 按文件夹/知识库/创建者精筛)、消息或应用 |
references/workflows/search/workflow.md |
查询用户、邮箱、手机号、部门,搜索机器人(user search-bot) |
references/workflows/directory/workflow.md |
涉及身份选择,或遇到 Token、身份、scope 报错(如 99991663/99991668/99991672/99991679)时读取 references/workflows/auth/references/identity.md,排错表见 references/workflows/auth/workflow.md;auth check 不是 Bot 权限检查。
判断命令成败、编写脚本或遇到退出码 10(需确认)时读取 references/workflows/auth/references/agent-contract.md。
Schema 只负责发现接口;API 负责执行请求。通常先查 schema,再调用 api。
执行规则
- 仓库开发优先使用刚编译的
bin/feishu-cli(make build)或./feishu-cli;安装环境使用 PATH 中的feishu-cli。技能与 CLI 版本不一致时(命令或 flag 对不上),以--help为准,并用feishu-cli skills read <技能> <相对路径>读取与当前二进制配套的文档;每个命令--help末尾会列出相关技能与工作流。 - 先确定执行身份。
auth check --scope只检查当前 profile 的本地 User Token,不能验证 Bot 权限或显式 Token;应用侧是否开通(区分 99991672 应用未开通与 99991679 用户未授权)用auth scopes --scope,Bot 能否访问具体资源以实际接口结果为准。不要回显真实 Token。 - 多 Bot / 不确定当前应用时先
profile list --json;单次用--profile <name>,不改默认指针。环境变量覆盖了目标 App 时,沿用已有授权在本次进程移除对应覆盖,或用--bot-app-id/--bot-app-secret指定正确凭证,不修改用户全局环境。 api的所有写请求均可先用 CLI 本地--dry-run预览;预览不代表服务端接受。其他命令按各自帮助选择验证方式。- 搜索与通讯录结果默认只读取;用户要求后续写操作时再切换到对应领域 Skill。
- 退出码、确认门禁(退出码 10 须经用户同意才追加
--yes)、stdout/stderr 约定与目标实体解析见references/workflows/auth/references/agent-contract.md。
领域边界
- 文档读写与导入导出:
feishu-cli-docs - 云盘、知识库、评论和权限:
feishu-cli-storage - 消息、群聊、卡片和事件:
feishu-cli-messaging - Sheet/Bitable:
feishu-cli-data - 画板、Slides、HTMLBox 与妙搭应用:
feishu-cli-visual - 日历、任务、审批、考勤和 OKR:
feishu-cli-work - 飞书邮箱:
feishu-cli-mail - 视频会议与妙记:
feishu-cli-meetings
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- evals/evals.json 7.2 KB
- references/workflows/api/references/embedded-api-discovery.md 3.6 KB
- references/workflows/api/workflow.md 6.3 KB
- references/workflows/auth/references/agent-contract.md 7.3 KB
- references/workflows/auth/references/identity.md 8.2 KB
- references/workflows/auth/workflow.md 31 KB
- references/workflows/directory/workflow.md 3.4 KB
- references/workflows/schema/workflow.md 5.5 KB
- references/workflows/search/references/commands.md 3.3 KB
- references/workflows/search/workflow.md 9.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago Changed · -1 lines · -50 tokens per session c1300f989e8d
- 1mo ago Changed · +1 lines · +2 tokens per session d5c2123fb491
- 1mo ago First seen · 51 lines · 276 tokens per session scan A e0362b29e188
feishu-cli-platform is a skill published in the GitHub repository riba2534/feishu-cli (1,425 stars, last pushed 15d ago), licensed MIT. It adds 228 tokens to every session and 1,300 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
mem0-oss-to-platform
Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…
agui-dotnet-protobuf
Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…
azure-mgmt-botservice-dotnet
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
fastapi-router-py
Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.
dev-runtime
How the Node side of a dev stack runs without haven, and the backend host: pnpm dev (UI built once, backend reloading), pnpm dev:hmr (adds the Vite ui lane), tools/dev-runtime (api + worker in one Node process), backend reload on a file change, the debounce (quiet window + max wait), ports derived from PORT. Use when…
migrate-segw-to-rap
Reverse-engineer a SEGW-built OData V2 service (MPC/DPC/MPCEXT/DPCEXT) into a modern RAP V4 service — tables, CDS views (interface + projection), behavior definitions, draft entities, service definition + binding. Use when asked to "migrate this SEGW service to RAP", "convert OData V2 to V4 RAP", "modernize this…