feishu-cli-docs

feishu-cli-docs is a skill for Claude Code from riba2534/feishu-cli. It costs 357 tokens per session (1,791 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(feishu-cli:*) Bash(./feishu-cli:*) Bash(./bin/feishu-cli:*) Bash(jq:*) Bash(python3:*) Bash(sleep:*) Read Write.

Good fit 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.

Compare 6 skills from other repositories ↓
About the project

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.

riba2534/feishu-cli · 1,425 stars · on GitHub

Install

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.

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

Made for: Claude Code.

Wrote 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.

agentmods badge for feishu-cli-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/riba2534/feishu-cli/feishu-cli-docs/github.svg)](https://agentmods.dev/skills/riba2534/feishu-cli/feishu-cli-docs)
Your own site
<a href="https://agentmods.dev/skills/riba2534/feishu-cli/feishu-cli-docs"><img src="https://agentmods.dev/badge/skills/riba2534/feishu-cli/feishu-cli-docs/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.

agentmods 80×15 button for feishu-cli-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/riba2534/feishu-cli/feishu-cli-docs"><img src="https://agentmods.dev/badge/skills/riba2534/feishu-cli/feishu-cli-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 357 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00357 $0.01791
Opus 5.5 $0.00143 $0.00716
Sonnet 5.5 $0.00071 $0.00358
Haiku 4.5 $0.00036 $0.00179

Measured 15d ago against content hash fbebea777db6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

飞书文档

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

路由

意图 读取文件
阅读、总结、分析 docx/wiki/sheet,大文档按大纲/章节/关键词局部读取,获取块结构,不主动落盘 references/workflows/read/workflow.md
取文档内容转成可直接发 IM 的 Markdown(doc read --doc-format im-markdown,--lang 控制 @人显示语言) references/workflows/read/workflow.md
带 block id 读取(doc read --with-ids / --engine docs_ai),为精确修改做准备 references/workflows/read/workflow.md
从零创作文档(写 / 起草方案、PRD、周报、纪要、报告、教程等),选体裁、写 DocxXML 草稿并用 doc script 初始化与预检 references/workflows/author/workflow.md
创建 docx(含 doc create --content 带本地图片/附件、HTML 块、画板源文件建文档)、追加、覆盖、替换、删除或移动内容,按 block id 精确改写,插入本地或剪贴板图片/附件(--from-clipboard) references/workflows/write/workflow.md
设置、下载或删除文档封面(doc resource update/download/delete --type cover) references/workflows/write/workflow.md
查看历史版本、回滚文档(doc history list/revert/revert-status) references/workflows/write/workflow.md
把 Markdown 文件导入为飞书 docx(含 Mermaid/PlantUML/SVG 转画板) references/workflows/import/workflow.md
导出 docx/wiki/sheet 到本地 Markdown/PDF/Word/Excel,下载或预览文档内图片、附件、评论图片或画板缩略图(doc media-download / doc media-preview) references/workflows/export/workflow.md
上传、下载、覆盖、查找替换或比较云盘原生 .md references/workflows/markdown/workflow.md
读取已有思维笔记的节点,新增子节点或更新节点(mindnote nodes list/create) references/workflows/mindnote/workflow.md

关键边界

  • “查看并总结”走 read;明确要求保存到路径才走 export。
  • 从零写一篇文档走 author;只建空文档、原样写入用户给定的完整内容或改已有文档走 write。
  • Markdown 转为可阅读 docx 走 import;把 .md 源文件原样存入云盘走 markdown。
  • mindnote nodes create 只在已有思维笔记里新增/更新节点,不新建思维笔记;新建思维导图走 feishu-cli-visual 的画板。
  • DOCX/XLSX 等二进制文件导入走 feishu-cli-storage 的 drive 工作流。
  • doc htmlbox 属于 feishu-cli-visual;权限和转移所有权属于 feishu-cli-storage。

执行规则

  1. /wiki/ 链接或类型不明的 token 先 drive inspect --url 解析;Bitable 链接用 bitable resolve。wiki 链接解析后区分 node_token 与底层文档 obj_token;底层是 sheet/bitable/slides 时按类型交给对应技能。
  2. 修改已有文档一律用 doc content-update,不要用 doc import --document-id(只会追加到文末);改几个字用文本级替换, 改章节或块先 doc read --with-ids 拿 block id。写入前确认目标、更新模式和影响范围;content-update 没有 dry-run, 不确定时先在测试文档上验证。
  3. 写命令默认 Bot 身份:Bot 新建的文档会自动给当前登录用户授予 full_access(输出 permission_grant);编辑用户自己的 文档而 Bot 无权限时,显式 --user-access-token "$(feishu-cli auth token --as user)"。读命令 User 优先、Bot 兜底。
  4. 按退出码处理结果:2 = 参数或定位有歧义(选择器多处命中、方言占位无法写回、本地文件不存在),修正参数后重试; 1 且有失败明细(doc import 的 failures、content-update 的 partial_success、本地资源 failed)时按明细补齐, 不要整篇重导;10 = 危险操作缺 --yes(doc delete、doc history revert)。
  5. 导入前读取 references/workflows/import/references/doc-guide.md。
  6. 用户明确指定接收人时按其要求授权;其余按 write 工作流读取生效的 owner_email / transfer_ownership,仅在已配置 owner 时处理。未要求通知时在当前会话返回文档链接。

Read the full file on GitHub · 55 lines

Files

What ships with it

45 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.

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. 15d ago Changed · +9 lines · +126 tokens per session fbebea777db6
  2. 1mo ago Changed · -1 lines · +19 tokens per session 8e043b53b258
  3. 1mo 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,425 stars, last pushed 15d ago), licensed MIT. It adds 357 tokens to every session and 1,791 once invoked, about $0.0014 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.

Related

Other skills, from other repositories

doc-reader

Read any common document/data file — PDF, Word (.docx), Excel (.xlsx/.xls), PowerPoint (.pptx), images (OCR), CSV/TSV, plain text, JSON/YAML/TOML, HTML/XML, and most source-code files. Use the readdocument tool.

HKUDS/Vibe-Trading · 65 tokens

surfsense-documents

Make or change a Word document (.docx), a PDF, a PowerPoint deck (.pptx) or an Excel workbook (.xlsx) by writing a Python script that surfsenserenderdocument runs, optionally starting from a source's own Word or PowerPoint file. Load it whenever the user asks for one of these, or for a change to one you made.

MODSetter/SurfSense · 80 tokens

xberg-extracting-tables

Use when extracting tabular data from PDFs, spreadsheets, or images. Covers layout-aware table detection, table model selection, output formats (markdown / JSON cells), and known limits.

xberg-io/xberg · 36 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

report-generator

A report-generation tool for producing SEO and GEO analysis reports in formats such as Markdown, HTML, PDF, JSON, and Excel. It also supports charts, templates, data processing, and interactive report elements.

foryourhealth111-pixel/Vibe-Skills · 24 tokens

kordoc

A command-line and server tool for reading and creating Korean official documents, including HWP, HWPX, PDF, DOCX, and spreadsheet files. It can convert documents to Markdown and create or update HWPX files.

chrisryugj/kordoc · 253 tokens