mcpField
L
lark-doc

lark-doc

larksuiteDocuments17.9k481.1k installsUpdated today
Repository

About lark-doc

lark-doc is an Agent Skill for working with Feishu (Lark) Docx documents, covering reading, creating, editing, media handling, whiteboards and version history. It routes each task to scenario-specific reference files and is aimed at developers and teams using agents with Feishu documents.

Key features

  1. 01Scenario routing with on-demand reference loading
  2. 02Document reading and summary via +fetch
  3. 03Creating, importing and editing content
  4. 04Inserting, previewing and downloading local media
  5. 05Listing and reverting document version history
  6. 06Creating and updating whiteboards and mind notes

Use cases

  1. 01Having an agent read and summarize a Feishu document
  2. 02Importing a complete piece of content as a new document
  3. 03Reviewing or reverting the history of a document
  4. 04Inserting local images or attachments into a document

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/larksuite/cli --skill lark-doc

After installing, type/lark-docin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
lark-doc-create-workflow.md
lark-doc-create.md
references/genres/
business-analysis.md
data-report.md
email.md
execution-plan.md
formal-doc.md
meeting-minutes.md
memo-brief.md
official-redhead.md
prd.md
proposal.md
research-report.md
retrospective.md
route-consumer.md
route-creative.md
route-knowledge.md
route-marketing.md
route-media.md
route-opinion.md
route-personal-brand.md
route-platform.md
route-report.md
route-workplace.md
sop-tutorial.md
technical-doc.md
wechat.md
weekly-report.md
white-paper.md
xiaohongshu.md

Details

From the project README

docs

场景与 Shortcut 路由

CRITICAL:先判断场景,再读取该场景的参考文件;不要在任务开始时一次性读取全部参考文件。每个文件只在首次进入对应阶段时读取一次。

身份:文档操作推荐显式指定 --as user。

本地文件引用统一遵循文件访问权限:CWD 内优先使用 @./相对路径,其他目录使用 @绝对路径。XML 内的相对资源路径先查 CWD;仅文件不存在时再查源 XML 文件所在目录,同名文件以 CWD 为准。内联内容、stdin、在线文档没有源文件目录,不执行回退。

文档内容
  • 读取 / 摘要 — +fetch:先读参考再获取文档。
  • 从零创作 — 创建工作流:先完整执行创建工作流,简单任务不是跳过的理由;
  • 导入 / 空文档 — +create:仅创建空文档或原样导入用户提供的完整内容时,跳过创建工作流。
  • 编辑 / block 直达链接 — +update:语义改写、润色、重组、补写或排版均按 update 参考完成。
辅助能力
资源、画板与思维笔记
认证与 Scope

执行 Shortcut 时,不预读 lark-shared 或预跑 auth status --verify;仅遇到未认证、token / 身份或 scope 错误时读取该 Skill,修复后重试。认证、身份或 scope 管理请求则直接使用该 Skill。

不在本 Skill 范围

  • Drive 文件级操作:找文档、导入导出、云空间文件上传 / 下载 / 权限管理 → lark-drive。复制文档、创建副本或另存为副本时,按其指引使用 lark-cli drive files copy;不要用 docs +fetch + docs +create 重建正文。
  • 独立评论操作:添加、分页查看、回复评论或增删 reaction → lark-drive;只需紧凑评论上下文时,直接使用默认 JSON 响应的 docs +fetch。

Comments

Markdown supported