lark-doc

Create, search, fetch, and update Lark cloud documents via lark-cli.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Rabbit-Ivan/Ivan-skills --skill lark-doc-rabbit-ivan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/Rabbit-Ivan/Ivan-skills/tree/main/skills/lark-doc
Command: npx skills add https://github.com/Rabbit-Ivan/Ivan-skills --skill lark-doc-rabbit-ivan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lark-cli, and includes references (resource) components.

What problem does it solve? Working with Lark (Feishu) cloud documents programmatically requires handling different token types, wiki link resolution, media uploads, and complex update modes. This Skill wraps those operations into lark-cli shortcuts so an AI agent can create, read, edit, and search documents without manually orchestrating the Lark OpenAPI. ## Core Features & Use Cases - Document lifecycle management: Create documents from Lark-flavored Markdown, fetch content as Markdown, and update with 7 modes (append, replace_range, replace_all, insert_before, insert_after, delete_range, overwrite). - Cloud space search: Use docs +search (Search v2) to locate docs, Wiki nodes, and spreadsheets by keyword, with time filters and pagination. - Media and whiteboard handling: Insert local images/files into documents, download embedded media, and create or update whiteboards via DSL. - Use Case: A user asks to turn meeting notes into a structured Feishu doc with callouts and tables, insert an architecture diagram, and grant themselves admin permission — all handled through the shortcut commands. ## Quick Start Ask the agent to create a Feishu document titled "Project Plan" from your Markdown notes using the lark-doc skill.

Frequently Asked Questions about lark-doc

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

FAQPage Schema
How do I create a Feishu document from Markdown?▼

Run lark-cli docs +create with --title and --markdown parameters using Lark-flavored Markdown. You can optionally target a folder, wiki node, or wiki space, and the command returns the doc_id and doc_url.

How do I search Lark docs and spreadsheets by keyword?▼

Use lark-cli docs +search with a --query string. It calls the Search v2 doc_wiki/search API and returns docs, Wiki nodes, and SHEET objects, with optional time filters and page_token pagination.

Can I use a wiki URL directly for document operations?▼

No. Wiki links contain a wiki_token that must first be resolved via wiki spaces get_node to obtain the real obj_type and obj_token. The underlying object may be a docx, sheet, or bitable, each requiring different APIs.

How do I insert a local image into a Feishu document?▼

Use lark-cli docs +media-insert with --doc and --file parameters. It combines block creation, file upload, and token binding into one command, appending the image at the document end with optional alignment and caption.

Why can't I edit an existing whiteboard with docs +update?▼

docs +update can only create new blank whiteboards via the whiteboard tag; it cannot modify existing whiteboard content. To edit a whiteboard, extract its token and use the lark-whiteboard skill with whiteboard DSL.

What are the risks of using overwrite mode when updating documents?▼

Overwrite mode clears the entire document and rewrites it, which can permanently lose images, comments, and collaboration history. Prefer localized modes like replace_range or append with precise selection anchors.