lark-markdown

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

3|2|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-markdown-zlsbksdxl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/zlsbksdxl/codex-lark/tree/main/plugins/feishu2codex/skills/lark-markdown
Command: npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-markdown-zlsbksdxl

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 requires repetitive manual steps through the web UI. This Skill lets you create, read, edit, and compare Markdown files directly through the lark-cli command line, with clear guidance on identity, permissions, and error handling. ## 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: Read remote Markdown content, save it locally, or overwrite a remote file and receive the new version number. - Patch and diff: Apply literal or regex-based text replacements via a fetch-replace-overwrite flow, and compare remote versions or a remote file against a local draft with unified diff output. - Use Case: You maintain a README.md in a Feishu Drive folder. Use this Skill to patch a version string with a regex, then diff the result against the previous remote version to confirm the change. ## 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 a --name ending in .md and content from --content, a local --file, or stdin. You can target a Drive folder with --folder-token or a Wiki node with --wiki-token, and both accept full URLs.

How do I edit part of a Markdown file stored in Feishu Drive?

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

Can I compare a local Markdown draft with the remote version in Feishu?

Yes. Run lark-cli markdown +diff with --file-token and --file pointing to your local draft. It returns a unified diff in JSON or pretty format, and you can also compare two remote historical versions using --from-version and --to-version.

Does lark-cli markdown patch update the file atomically on the server?

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, their change can be overwritten.

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

These errors depend on identity. With --as user, check user authorization and the target folder ACL; with --as bot, check the app's scopes and directory permissions. 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 file management operations like rename, move, delete, search, permissions, comments, and version history, and for importing Markdown as an online docx document. The markdown skill only handles content-level create, fetch, patch, overwrite, and diff of native .md files.