lark-markdown

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

2|Updated Aug 9, 2026
One-click install
npx skills add https://github.com/DeepJH/doubao-skill-and-info --skill lark-markdown-deepjh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/DeepJH/doubao-skill-and-info/tree/main/skills/lark-markdown
Command: npx skills add https://github.com/DeepJH/doubao-skill-and-info --skill lark-markdown-deepjh

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 Markdown files directly from the command line using lark-cli, with structured JSON output. ## Core Features & Use Cases - Create and upload: Create native .md files in a Drive folder or Wiki node using inline content, local files, or stdin. - Fetch and overwrite: Read remote Markdown content, save it locally, or overwrite remote files with new content while receiving the new version number. - Patch and diff: Apply literal or regex-based local replacements to remote Markdown, and compare remote versions against each other or against a local draft with unified diff output. - Use Case: You maintain a README.md in a Feishu Wiki. Use markdown +patch to bump a version string with a regex, then markdown +diff to verify the change against your local draft before sharing. ## Quick Start Ask the assistant to create a Markdown file named notes.md in your Feishu Drive with the content '# Hello' using the lark-markdown skill.

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 - for stdin) or --file pointing to a local .md file. Use --folder-token for a Drive folder or --wiki-token for a Wiki node; both accept full URLs.

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 regex replacement locally, and re-uploads it, returning whether a new version was written and the match count.

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. Omitting --from-version compares the remote latest version against your local file, and --format pretty outputs a colored unified diff.

Does 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, call markdown +patch repeatedly, and note it is not a server-side atomic operation.

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 retrieving version history. lark-markdown only handles content-level operations on native .md files.