lark-markdown

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

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/trungpr1990-coder/AMI-MAKEUP --skill lark-markdown-trungpr1990-coder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/trungpr1990-coder/AMI-MAKEUP/tree/main/.agents/skills/lark-markdown
Command: npx skills add https://github.com/trungpr1990-coder/AMI-MAKEUP --skill lark-markdown-trungpr1990-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing native Markdown files stored in Lark (Feishu) 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: Read remote Markdown content, save it locally, or overwrite a remote file and get back the new version number. - Local patch and diff: Apply literal or regex-based 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 drafted release notes locally and want to update the copy in Lark Drive. Patch the remote file with your changes, then diff the remote latest version against your local draft to confirm exactly what changed. ## Quick Start Ask the AI to create a Markdown file named README.md in your Lark 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 Lark Drive from the command line?▼

Use 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 edit part of a Markdown file stored in Lark 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 remote Lark Markdown file with my local draft?▼

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

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

No. The patch is a CLI-side orchestration of download, local replace, and overwrite upload. If someone else modifies the file between your download and upload, their intermediate changes can be overwritten.

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

Why does markdown +create fail with permission or scope errors?▼

Failures usually come from identity and permission issues: bot identity hits app scope or folder ACL problems, while user identity hits authorization or user ACL problems. Check the error hint instead of switching identities and retrying blindly.