lark-doc

Automate Feishu cloud document creation, retrieval, and modification via lark-cli.

3|1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/HuXiangyu123/CUA-Lark-Agent --skill lark-doc-huxiangyu123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/HuXiangyu123/CUA-Lark-Agent/tree/main/lark-cli/skills/lark-doc
Command: npx skills add https://github.com/HuXiangyu123/CUA-Lark-Agent --skill lark-doc-huxiangyu123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Feishu cloud documents are central to collaboration but creating, reading, and updating them across multiple formats and workflows can be tedious and error-prone. This skill standardizes and automates those operations via a CLI, reducing manual steps and ensuring consistency.

Core Features & Use Cases

  • Create new documents in XML or Markdown formats for Feishu cloud docs.
  • Fetch document content with different detail levels (simple/with-ids/full) and various scope options (outline/range/section/keyword).
  • Update documents using a suite of commands (str_replace, block_insert_after, block_copy_insert_after, block_replace, block_delete, block_move_after, overwrite, append).
  • Upload/download media and search cloud docs to locate resources for editing.
  • Use-case example: A team wants to draft a project plan, fetch sections for review, and apply targeted edits across blocks.

Quick Start

Create a new document with XML content using the lark-cli docs +create command and then fetch or update as needed.

Frequently Asked Questions about lark-doc

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

FAQPage Schema
How do I automate creating and editing Feishu cloud docs?

Automating Feishu cloud docs involves using a CLI to create, fetch, and modify documents via XML or Markdown formats. This approach standardizes operations like block-level editing and content updates, reducing manual steps and ensuring consistency across collaborative workflows.

How do I fetch specific sections of a Feishu cloud document?

You can fetch specific Feishu cloud document sections using different detail levels like simple, with-ids, or full. Scope options including outline, range, section, and keyword allow targeted retrieval of document content for review or further processing.

Can I update Feishu cloud docs at the block level?

Yes, updating Feishu cloud docs supports block-level operations including block_insert_after, block_copy_insert_after, block_replace, block_delete, and block_move_after. These commands enable precise modifications within the document structure without overwriting the entire file.

Do I need lark-cli to manage Feishu cloud documents?

Yes, lark-cli is required to manage Feishu cloud documents programmatically. It provides the command interface for creating, fetching, and updating docs, requiring standard authentication to ensure safe and authorized document operations.

What formats are supported for creating Feishu cloud documents?

Creating Feishu cloud documents supports both XML and Markdown formats. This allows teams to draft content using structured XML or standard Markdown syntax, which the system then converts into Feishu cloud docs for collaborative editing.

What are the limitations of updating Feishu docs via CLI?

Limitations of updating Feishu docs via CLI include the dependency on standard authentication and lark-cli access for safe operations. Complex formatting might require specific block-level commands rather than simple text replacement to maintain document structure.