lark-markdown

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing native Markdown (.md) 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 those files directly through the lark-cli command line, including version-to-version and remote-vs-local diffs. ## Core Features & Use Cases - Create and upload Markdown: Create a native .md file 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 (RE2) text replacements via a fetch-replace-overwrite flow, and compare two remote versions or a remote version against a local draft with unified diff output. - Use Case: You drafted release notes locally in draft.md and want to see how they differ from the version in Feishu Drive, then push the update. Use markdown +diff to compare, then markdown +overwrite to publish. ## Quick Start Use the lark-markdown skill to fetch the Markdown file with token boxcnxxxx from Feishu 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 Feishu 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 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 is not a server-side atomic patch. It downloads the full Markdown, applies the replacement locally, then overwrites the remote file, so a concurrent remote edit between download and upload could be overwritten.

Can I use this skill to import Markdown as a Feishu online docx document?

No, this skill only handles native .md files stored as plain files in Drive. To import Markdown as an online docx document, use lark-cli drive +import --type docx from the lark-drive skill instead.

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

The cause depends on identity: with --as user it is usually user authorization or the user's ACL on the target folder, while with --as bot it is the app scope or directory ACL. Diagnose the identity-specific cause instead of switching identities and retrying blindly.

What are the limitations of markdown +patch regex replacement?

Patch supports only a single --pattern/--content pair per call, uses Go RE2 syntax, and rejects results that would empty the file since Drive disallows zero-byte Markdown. Special regex characters in the pattern must be explicitly escaped.