lark-doc

Read, create, and edit Lark Docs documents via lark-cli with XML-based authoring workflows.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/dulltackle/kangkang-skills --skill lark-doc-dulltackle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/dulltackle/kangkang-skills/tree/main/lark-doc
Command: npx skills add https://github.com/dulltackle/kangkang-skills --skill lark-doc-dulltackle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Working with Lark (Feishu) cloud documents programmatically requires navigating complex APIs for reading, creating, editing, and managing embedded resources like images, whiteboards, and mindnotes. This Skill provides a structured, scenario-routed workflow for all Docx and Wiki document operations through the lark-cli command line. ## Core Features & Use Cases - Document Reading & Editing: Fetch full or partial document content by outline, section, range, or keyword, then apply precise block-level updates (replace, insert, delete, move) with verification loops. - Guided Document Authoring: An 8-step creation workflow covering audience analysis, genre contract selection (workplace, report, marketing, creative, etc.), presentation decisions, XML drafting, and profile validation before publishing. - Media & Resource Management: Insert images from clipboard or files, preview and download attachments, manage document covers, create whiteboards from Mermaid/SVG, and operate mindnote nodes. - Use Case: Ask the assistant to "create a project retrospective doc in Feishu with a timeline diagram" and it will select the retrospective genre contract, draft validated XML, render a whiteboard, and publish the document with a shareable URL. ## Quick Start Use the lark-doc skill to read the Feishu document at this URL and summarize its key sections.

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 document with lark-cli?

Use lark-cli docs +fetch with the document URL or token. You can read the whole document or narrow scope with outline, section, range, or keyword modes, and choose detail levels simple, with-ids, or full depending on whether you need block IDs for editing.

How do I create a new Lark Doc from scratch?

Follow the creation workflow: define a Presentation Decision JSON, run docs +script init-draft to get a workspace, write the XML draft, validate it with the parse command, then publish with docs +create. Simple imports of existing content can skip straight to +create.

Can I edit part of a Feishu doc without rewriting everything?

Yes. Fetch the target area with --detail with-ids to get block IDs, then use docs +update commands like str_replace, block_replace, block_insert_after, or block_delete for minimal scoped changes. Avoid overwrite unless a full rebuild is intended, since it can drop comments and resources.

Does lark-doc support inserting images and whiteboards?

Yes. Images can be inserted from local files, the system clipboard, or public HTTPS URLs via docs +media-insert or XML img tags. Whiteboards can be created inline from Mermaid, SVG, or PlantUML sources, and existing boards are edited through the lark-whiteboard skill.

What operations are not covered by the lark-doc skill?

Drive-level file operations like searching, copying, permissions, and import/export belong to lark-drive, and standalone comment management also routes there. Spreadsheet and Bitable data operations are handled by lark-sheets and lark-base respectively.

Why does docs +media-insert fail with clipboard errors on Linux?

Clipboard insertion on Linux requires xclip, wl-paste, or xsel to be installed. If the clipboard contains no image or the tools are missing, the command reports no image data; provide a local file path with --file instead.