lark-doc

Read, create, and edit Lark Docs documents via the lark-cli docs commands.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/trungpr1990-coder/AMI-MAKEUP --skill lark-doc-trungpr1990-coder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/trungpr1990-coder/AMI-MAKEUP/tree/main/.agents/skills/lark-doc
Command: npx skills add https://github.com/trungpr1990-coder/AMI-MAKEUP --skill lark-doc-trungpr1990-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Working with Lark (Feishu) cloud documents programmatically requires navigating complex APIs for reading, creating, and precisely editing document content. This Skill wraps those operations into lark-cli docs shortcuts so an AI agent can fetch, create, update, and manage Docx/Wiki documents directly from a URL or token. ## Core Features & Use Cases - Document Fetching: Read full documents or targeted sections using scope modes (outline, section, range, keyword) with selectable detail levels (simple, with-ids, full) in XML or Markdown. - Creation & Precise Editing: Create documents from XML/Markdown and apply eight update commands (str_replace, block_insert_after, block_replace, block_delete, block_move_after, and more) with block-ID lifecycle guidance. - Media & Resources: Insert images from clipboard or file, preview/download media and whiteboard thumbnails, manage Docx cover images, roll back to history versions, and count words with a dedicated statistics script. - Use Case: Given a Feishu doc URL, fetch its outline, rewrite one section with block-level edits, insert a Mermaid whiteboard diagram, and verify the final word count. ## Quick Start Ask the agent to fetch the content of a Feishu document by pasting its docx or wiki URL, then request edits such as replacing specific text or appending a new section.

Frequently Asked Questions about lark-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read a Feishu (Lark) document from a URL?▼

Run lark-cli docs +fetch with the document URL or token via --doc. Use --scope outline, section, range, or keyword for partial reads, and --detail with-ids or full when you need block IDs for later edits.

How do I edit a specific paragraph in a Lark doc?▼

First fetch with --detail with-ids to get block IDs, then use docs +update with commands like block_replace, block_insert_after, or block_delete targeting the block ID. For simple text changes, str_replace with --pattern works without block IDs.

Should I use XML or Markdown when writing Lark documents?▼

XML is the default and preferred format, especially for precise block-level edits, since it expresses block structure and styles. Use Markdown only when the user explicitly requests it or provides a .md file for import.

Can this skill manage comments or spreadsheet data in a document?▼

No. Comment management is handled by the lark-drive skill, and embedded sheets or bitables are routed to lark-sheets or lark-base after extracting their tokens. This skill only handles document content, media, covers, and history.

How do I insert an image into a Lark document?▼

Use docs +media-insert with --from-clipboard for screenshots or copied images, or --file for on-disk files. You can also insert network images directly via docs +update with an img tag containing an href URL.

How do I count words in a Feishu document?▼

Fetch the document with --detail full in XML format and pipe the JSON output into the bundled scripts/doc_word_stat.py script. The script reports word_count and char_count using its own counting rules, which are the authoritative standard.