Back to Skills

lark-doc

飞书云文档:创建和编辑飞书文档。从 Markdown 创建文档、获取文档内容、更新文档(追加/覆盖/替换/插入/删除)、上传和下载文档中的图片和文件、搜索云空间文档。当用户需要创建或编辑飞书文档、读取文档内容、在文档中插入图片、搜索云空间文档时使用;如果用户是想按名称或关键词先定位电子表格、报表等云空间对象,也优先使用本 skill 的 docs +search 做资源发现。

7,144stars434forksUpdated 4/9/2026

Security Assessment

Low Risk(70/100)

Detected risks:

Secret Exposure([references/lark-doc-update.md] token=, [references/lark-doc-fetch.md] token=, [references/lark-doc-create.md] token=)
Security Score70/100

About lark-doc

The lark-doc skill is designed to facilitate the creation, management, and editing of documents within the Feishu platform. It allows users to generate Feishu documents from Markdown, retrieve document contents, update documents through operations like append, overwrite, replace, insert, or delete, and manage the images and files within the documents. Additionally, the skill supports searching for documents across cloud space and handling files within various formats such as DOCX, Sheets, and Wiki. This skill addresses the need for efficient document management, enabling quick access to cloud documents, content updates, and media handling through simple commands.

Main features of the lark-doc skill include the ability to interact with different document types like cloud documents, spreadsheets, and knowledge base articles. Users can search for documents, view and preview media content, and even download files or images. The skill integrates with Feishu's cloud-based file storage system and provides detailed document token handling, which is essential for performing actions like commenting, adding media, or downloading specific content. Importantly, the skill enables managing Wiki links and handling special cases for document types that require additional queries to determine their exact content type and token.

Use cases for lark-doc include corporate users needing to manage various types of documents in Feishu, such as business reports, technical documents, or collaborative Wiki spaces. It is especially useful for teams that require seamless editing and content sharing through Feishu’s integrated platform, or for organizations looking to automate document-related workflows like document retrieval, file previews, and the management of embedded media or attachments.

FAQ

How do I handle Wiki links in Feishu documents?

Wiki links require special handling. You must first query the node information using the 'wiki.spaces.get_node' API to retrieve the actual document token and type. This ensures you can work with the correct document, whether it’s a cloud document, spreadsheet, or other types.

Can I edit existing whiteboards with lark-doc?

No, lark-doc cannot edit existing whiteboards directly. However, you can create a new whiteboard using the 'docs +update' command and manage its content using a separate whiteboard skill.

What types of documents can I manage with lark-doc?

lark-doc supports various document types, including DOCX, cloud documents (doc, sheet, bitable), slides, and files. It can also interact with Wiki spaces, allowing users to retrieve and update documents across these formats.

What are the prerequisites for using lark-doc?

You need to have the 'lark-cli' tool installed and set up. Additionally, you must ensure proper authentication and permission handling, as specified in the skill's documentation.

Can I search for documents by name or keyword?

Yes, you can use the 'docs +search' command to search for documents by name, keyword, or other criteria, which is helpful for locating specific reports, spreadsheets, or other resources.

All Files

9 files
references/lark-doc-update.md5.9 KB
View
references/lark-doc-fetch.md2.6 KB
View
references/lark-doc-create.md12.1 KB
View
references/lark-doc-media-download.md1.5 KB
View
references/lark-doc-search.md8.6 KB
View
SKILL.md5.3 KB
View
references/lark-doc-media-insert.md1.5 KB
View
references/lark-doc-whiteboard-update.md0.7 KB
View
references/lark-doc-media-preview.md1.1 KB
View

Install lark-doc

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

larksuite/cli