lark-doc

Automate Feishu cloud document creation, retrieval, editing, and asset handling.

Updated Aug 17, 2024
One-click install
npx skills add https://github.com/LinoWhy/.dotfiles --skill lark-doc-linowhy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/LinoWhy/.dotfiles/tree/main/agents/.agents/skills/lark-doc
Command: npx skills add https://github.com/LinoWhy/.dotfiles --skill lark-doc-linowhy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Feishu cloud document workflows are error-prone and time-consuming when creating, fetching, updating, and managing assets across XML/Markdown formats. This Skill unifies those operations into a single CLI-driven workflow, reducing friction and ensuring consistency.

Core Features & Use Cases

  • Create documents in DocxXML or Markdown formats, with structured styling guidance and front matter compliance.
  • Fetch content at different scopes (simple, with-ids, full; outline/section/range/keyword/section) to minimize context and optimize updates.
  • Update documents via eight commands (str_replace, block_insert_after, block_copy_insert_after, block_replace, block_delete, block_move_after, overwrite, append) and handle media insertion, uploads, and downloads.
  • Use cases: when you need to create, read, modify, or search cloud docs, insert images, or locate cloud-space objects for resource discovery.

Quick Start

To begin, create a new Feishu cloud document with simple content using lark-cli docs +create.

Frequently Asked Questions about lark-doc

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

FAQPage Schema
How do I automate Feishu cloud document creation and editing?

Automate Feishu cloud document creation and editing by using CLI commands to create, fetch, and update content. This workflow supports XML and Markdown formats, handling multi-level read scopes and structured updates for consistent document management.

How do I update specific sections of a Feishu doc instead of overwriting the whole file?

To update specific sections of a Feishu doc, use commands like str_replace, block_insert_after, block_replace, or block_delete. These allow targeted section-level modifications without needing to overwrite the entire document.

Can I insert images and media into Feishu docs using Markdown?

Yes, you can insert images and media into Feishu docs. The workflow handles media insertion, uploads, and downloads, enabling asset management directly alongside XML or Markdown content formatting within your document.

What is the best way to fetch only a specific part of a cloud document for context optimization?

The best way to fetch part of a cloud document for context optimization is using scoped retrieval. You can fetch content by outline, section, range, or keyword to minimize context and focus only on relevant content.

Does this Feishu doc workflow support XML format or only Markdown?

This Feishu doc workflow supports both XML and Markdown formats. You can create documents in DocxXML or Markdown, and the system enforces structured styling guidance and front matter compliance for both content types.

Why do I need to read reference materials before creating or updating a cloud document?

You need to read reference materials before creating or updating a cloud document to enforce versioning and permissions. Pre-read references provide structured guidance and safeguards for formatting, style, and resource insertion operations.