feishu-cli-docs

A Feishu document tool for reading, analysing, creating, editing and converting documents, spreadsheets and Markdown files. Feishu is a workplace collaboration platform used for documents, wikis, sheets and cloud storage.

In plain words
What is it for?
Reading and summarising documents, editing DOCX files, importing Markdown, exporting documents to local PDF or Office files, and managing native Markdown files in cloud storage.
Why use it?
It gives document-related tasks one defined workflow, reducing confusion about which operation to use and how to handle different Feishu file types.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/riba2534/feishu-cli/feishu-cli-docs
Any agent
npx skills add riba2534/feishu-cli --skill feishu-cli-docs
Clone the repo
git clone --depth 1 https://github.com/riba2534/feishu-cli

Made for: Claude Code, Codex.

Per session 212 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00212 $0.00710
Opus 5 $0.00106 $0.00355
Sonnet 5 $0.00042 $0.00142
Haiku 4.5 $0.00021 $0.00071

Measured 3d ago against content hash 69cd7472b480, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

feishu-cli-docs 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 3d 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.

skills/feishu-cli-docs/SKILL.md · 47 lines

What it actually says

飞书文档

只读取当前任务需要的工作流;跨步骤任务可以按顺序读取多个。 加载后,将工作流中的 references/scripts/templates/examples/ 相对路径按该 workflow.md 所在目录解析;执行脚本时使用解析后的实际路径,不要依赖当前 shell 目录。

路由

意图 读取文件
阅读、分析、获取块结构,不主动落盘 references/workflows/read/workflow.md
创建、追加、覆盖、替换或编辑 docx references/workflows/write/workflow.md
把 Markdown 导入为飞书 docx references/workflows/import/workflow.md
导出 docx/wiki/sheet 到本地文件 references/workflows/export/workflow.md
上传、下载、覆盖、查找替换或比较云盘原生 .md references/workflows/markdown/workflow.md

关键边界

  • “查看并总结”走 read;明确要求保存到路径才走 export。
  • Markdown 转为可阅读 docx 走 import;把 .md 源文件原样存入云盘走 markdown。
  • DOCX/XLSX 等二进制文件导入走 feishu-cli-storage 的 drive 工作流。
  • doc htmlbox 属于 feishu-cli-visual;权限和转移所有权属于 feishu-cli-storage

执行规则

  1. 解析 URL 后区分普通文档 token 与 wiki node token。
  2. 写入前确认目标、更新模式和影响范围;优先 dry-run 或测试文档。
  3. 导入前读取 references/workflows/import/references/doc-guide.md
  4. 创建文档后按项目 owner_email 规则授权;不要把真实邮箱写进示例。
Changes

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.

  1. 3d ago First seen · 47 lines · 212 tokens per session scan A 69cd7472b480

Subscribe to this mod's changes

feishu-cli-docs is a skill published in the GitHub repository riba2534/feishu-cli (1,378 stars, last pushed 5d ago), licensed MIT. It adds 212 tokens to every session and 710 once invoked, about $0.0011 per session on Opus 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.