lark-markdown

Create, fetch, patch, overwrite, and diff Markdown files in Feishu Drive via lark-cli.

8|2|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/luojiaaoo/xpeech --skill lark-markdown-luojiaaoo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/luojiaaoo/xpeech/tree/main/xpeech/agent/skills/buildin/lark-skills/lark-markdown
Command: npx skills add https://github.com/luojiaaoo/xpeech --skill lark-markdown-luojiaaoo

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing native Markdown files stored in Feishu (Lark) Drive normally requires manual uploads and edits through the web UI. This Skill lets an agent view, create, upload, edit, locally patch, and compare Markdown files directly through lark-cli commands. ## Core Features & Use Cases - Create and upload: Create native .md files in a Drive folder or Wiki node from inline content, a local file, or stdin. - Read and overwrite: Fetch remote Markdown content to the terminal or local disk, and overwrite existing files while receiving the new version number. - Partial patch and diff: Apply literal or RE2 regex replacements without manual fetch-edit-upload cycles, and compare remote versions or a remote file against a local draft. - Use Case: A user asks the agent to update the version string in a remote README.md; the agent runs lark-cli markdown +patch with an escaped regex pattern and confirms the new version number returned. ## Quick Start Use the lark-markdown skill to fetch the Markdown file with token boxcnxxxx from Feishu Drive and show its content.

Frequently Asked Questions about lark-markdown

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

FAQPage Schema
How do I create a Markdown file in Feishu Drive from the command line?▼

Run lark-cli markdown +create with --name ending in .md and either --content (string, @file, or stdin) or --file pointing to a local .md file. Optionally pass --folder-token for a Drive folder or --wiki-token for a Wiki node.

How do I edit part of a remote Markdown file without downloading it manually?▼

Use lark-cli markdown +patch with --file-token, --pattern, and --content. It downloads the file, applies a literal or RE2 regex replacement locally, and re-uploads it, returning whether a new version was written.

Can I compare a remote Feishu Markdown file with my local draft?▼

Yes. Run lark-cli markdown +diff with --file-token and --file pointing to your local .md file. It outputs a unified diff in json or pretty format, including added and deleted line counts.

Does lark-cli markdown patch support multiple replacements in one call?▼

No. The patch command currently supports only a single --pattern/--content pair per invocation. For multiple replacements, invoke markdown +patch repeatedly, one replacement per call.

Why does markdown +create fail with permission denied or missing scope?▼

The cause depends on identity: with --as user, check user authorization and the target folder ACL; with --as bot, check the app scopes and directory ACL. Do not blindly switch identities; diagnose the failing identity first.

When should I use lark-drive instead of lark-markdown?▼

Use lark-drive for rename, move, delete, search, permission, comment operations, version history retrieval, and importing Markdown as an online docx document. lark-markdown only handles native .md file content operations.