lark-markdown

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

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

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 the lark-cli command line, with clear rules for identity, permissions, and error handling. ## Core Features & Use Cases - Create and upload Markdown: 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 inspect or save locally, and overwrite existing files while receiving the new version number. - Patch and diff: Apply literal or regex-based partial replacements, and compare remote versions or a remote file against a local draft with unified diff output. - Use Case: You drafted release notes locally and want to update the copy in Feishu Drive. Fetch the remote file, diff it against your local draft, then patch or overwrite it, all without opening the browser. ## Quick Start Use the lark-markdown skill to create a Markdown file named README.md in my Feishu Drive with the content '# Hello'.

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 both accept full URLs.

How to compare two versions of a Markdown file in Feishu?

Use lark-cli markdown +diff with --file-token plus --from-version and optionally --to-version to compare remote versions. You can also pass --file to compare the remote file against a local draft, with output in json or pretty unified diff format.

Can I partially edit a remote Markdown file without downloading it manually?

Yes, lark-cli markdown +patch performs a fetch, local literal or regex replacement, and overwrite upload in one command. It supports a single pattern/content pair per call and refuses to upload if the result would be empty.

Does this skill import Markdown as a Feishu online docx document?

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

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

These errors depend on identity: with --as user check user authorization and target ACL, with --as bot check app scopes and folder or node ACL. The skill instructs not to retry blindly but to fix the identity or permission cause first.

What are the limitations of markdown +patch?

Patch is not a server-side atomic operation; it downloads, replaces locally, and re-uploads, so concurrent edits can be overwritten. It supports only one pattern/content pair per call and cannot produce an empty file.