lark-markdown

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

Updated Jun 22, 2026
One-click install
npx skills add https://github.com/sliec/shared-files --skill lark-markdown-sliec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/sliec/shared-files/tree/main/skills/lark-markdown
Command: npx skills add https://github.com/sliec/shared-files --skill lark-markdown-sliec

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 downloads through the web UI. This Skill lets you create, read, edit, compare, and overwrite .md files directly through lark-cli commands. ## Core Features & Use Cases - Create and upload: Create native .md files in Drive folders or Wiki nodes from inline content, local files, or stdin. - Fetch and overwrite: Download remote Markdown content to local paths, or overwrite remote files and receive the new version number. - Patch and diff: Apply literal or RE2 regex replacements to remote Markdown, and compare remote versions against each other or against local drafts with unified diff output. - Use Case: You drafted release notes locally in draft.md. Use the diff shortcut to compare it against the remote version, then patch a single outdated paragraph without re-uploading the whole file manually. ## Quick Start Use the lark-markdown skill to fetch the Markdown file with token boxcnxxxx from Feishu Drive and save it locally.

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 either --content for inline text or --file for a local .md file. You can target a Drive folder with --folder-token or a Wiki node with --wiki-token, and the file name must end in .md.

How to compare a remote Feishu Markdown file with a local draft?

Use lark-cli markdown +diff with --file-token and --file pointing to your local .md draft. Omitting --from-version compares the remote latest version against your local file, and --format pretty outputs a colored unified diff.

Does markdown +patch update the file atomically on the server?

No, markdown +patch works by downloading the full file, replacing text locally, and re-uploading it. A concurrent edit between download and upload can be overwritten, so it is not a server-side atomic patch.

Can I use regex when patching a Feishu Markdown file?

Yes, pass --regex to interpret --pattern as a Go RE2 regular expression. The replacement in --content supports group references like $1, and a literal dollar sign must be written as $$.

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

Use lark-drive for rename, move, delete, search, permission, and comment operations, for importing Markdown as an online docx document, and for listing version history. lark-markdown only handles content-level create, fetch, patch, overwrite, and diff of native .md files.