lark-markdown

Create, fetch, patch, overwrite, and diff Markdown files in Lark Drive.

Updated Sep 13, 2026
One-click install
npx skills add https://github.com/U1traVeno/skills --skill lark-markdown-u1traveno
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/U1traVeno/skills/tree/main/profiles/lark/lark-markdown
Command: npx skills add https://github.com/U1traVeno/skills --skill lark-markdown-u1traveno

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing native Markdown files stored in Lark (Feishu) Drive normally requires manual uploads and downloads through the web UI. This Skill lets you create, read, edit, and compare Markdown files directly through the lark-cli command line, including partial text replacement and version diffs. ## 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. - Fetch and overwrite: Download remote Markdown content to local files, or overwrite remote files with new content and receive the new version number. - Patch and diff: Apply literal or regex-based partial replacements without manual fetch-edit-upload cycles, and compare remote versions or a remote file against a local draft. - Use Case: You maintain a README.md in Lark Drive. When a release ships, run a regex patch to bump the version string, then diff the result against your local draft to confirm the change. ## Quick Start Use the lark-markdown skill to fetch the Markdown file with token boxcnxxxx from Lark Drive and save it locally as README.md.

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 Lark Drive from the command line?▼

Run lark-cli markdown +create with either --file pointing to a local .md file or --name plus --content for inline text. You can target a Drive folder with --folder-token or a Wiki node with --wiki-token, and both accept full URLs.

How to edit part of a Markdown file in Lark Drive without re-uploading manually?▼

Use lark-cli markdown +patch with --pattern and --content for literal replacement, or add --regex for RE2 pattern matching with capture groups. The CLI downloads the file, applies the replacement locally, and uploads the result as a new version.

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

Yes. Run lark-cli markdown +diff with --file-token and --file pointing to your local .md file. It compares the remote latest version against your draft and returns a unified diff in JSON or pretty format.

Does lark-cli markdown patch support atomic server-side updates?▼

No. The patch command performs a download, local replace, and overwrite upload, so it is not a server-side atomic operation. If someone modifies the file between your download and upload, that intermediate change can be overwritten.

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 scope and directory ACL. Run lark-cli auth login first for user identity, and avoid blindly switching identities to retry.

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

Use lark-drive for importing Markdown as an online docx document, and for rename, move, delete, search, permission, or comment operations. The markdown skill only handles content-level operations on native .md files stored in Drive.