lark-doc

Create, edit, search, and manage Lark cloud documents via lark-cli.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill lark-doc-yuezhen-huang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/yuezhen-huang/my-bytedance-skillhub/tree/main/lark-doc
Command: npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill lark-doc-yuezhen-huang

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 document token types, wiki link resolution, media uploads, and complex rich-text formatting. This Skill teaches an AI agent how to create, read, update, and search Lark documents through the lark-cli command line, including the Lark-flavored Markdown syntax needed for rich content. ## Core Features & Use Cases - Document Creation & Editing: Create documents from Markdown, then update them with append, replace, insert, delete, or overwrite modes, including precise content or title-based targeting. - Media Handling: Insert local images and files into documents, and download embedded images, files, or whiteboard thumbnails by token. - Cloud Space Search: Search docs, Wiki nodes, and spreadsheets with keyword queries, time filters, and pagination as a resource discovery entry point. - Use Case: A user asks the agent to draft a meeting summary as a Lark doc with callouts and tables, insert an architecture diagram image, and grant themselves admin permission — all handled end-to-end by this Skill. ## Quick Start Ask the agent to create a Lark document titled "Weekly Report" from your Markdown notes and share the document link back to you.

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 Lark document from Markdown?

Use the docs +create shortcut with a title and Markdown content, for example lark-cli docs +create --title "Project Plan" --markdown "## Goals". The content uses Lark-flavored Markdown supporting callouts, grids, tables, and images.

How do I update an existing Lark document without losing content?

Use docs +update with localized modes like append, replace_range, insert_before, or insert_after, targeting content via --selection-with-ellipsis or --selection-by-title. Avoid overwrite mode since it clears the document and may lose images and comments.

Can I use a wiki link directly as a document token?

No. A /wiki/ URL token must first be resolved with lark-cli wiki spaces get_node to obtain the real obj_type and obj_token. The resolved token is then used with the matching API such as docx, sheets, or bitable.

How do I insert a local image into a Lark document?

Use docs +media-insert with the document ID and local file path, for example lark-cli docs +media-insert --doc doxcnXXX --file ./image.png. It supports images up to 20MB with optional alignment and caption.

Can this skill edit existing whiteboard content in a document?

No. docs +update can only create new blank whiteboards via the whiteboard tag and returns their tokens in board_tokens. Editing existing whiteboard content requires the separate lark-whiteboard skill.

How do I search for spreadsheets or docs in Lark cloud space?

Use docs +search with the keyword passed via --query, for example lark-cli docs +search --query "quarterly report". Results include docs, Wiki nodes, and SHEET objects, with optional time filters and pagination.