lark-markdown

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

Updated May 22, 2026
One-click install
npx skills add https://github.com/CalWade/aigc-creator --skill lark-markdown-calwade
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-markdown
Source: https://github.com/CalWade/aigc-creator/tree/main/.agents/skills/lark-markdown
Command: npx skills add https://github.com/CalWade/aigc-creator --skill lark-markdown-calwade

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, and compare .md files directly from the command line, including partial text replacement and version diffs, without leaving your workflow. ## 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 local files, or overwrite remote files with new content and receive the new version number. - Partial patch and diff: Apply literal or regex-based text replacement to remote files, and compare remote versions or remote-vs-local drafts with unified diff output. - Use Case: You drafted release notes locally and want to update the team's shared Markdown file in Lark Drive. Fetch the remote file, diff it against your local draft, then patch or overwrite it, all via lark-cli commands. ## Quick Start Ask the assistant to create a Markdown file named notes.md in 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 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.

How do I edit part of a remote Markdown file without re-uploading everything manually?▼

Use lark-cli markdown +patch with --pattern and --content for literal replacement, or add --regex for RE2 regex replacement with capture groups. Internally it downloads the file, replaces locally, and re-uploads, so it is not a server-side atomic patch.

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 you can also compare two remote versions using --from-version and --to-version.

Does this skill import Markdown as a Lark online docx document?▼

No. This skill only handles Markdown stored as plain files in Drive. To import Markdown as an online docx document, use the lark-drive skill's drive +import --type docx command instead.

Why does markdown +patch fail or refuse to upload?▼

Patch fails if the pattern is empty, or if the replacement would produce an empty file, since Drive does not support zero-byte Markdown. With --regex, unescaped special characters in the pattern can also match wrong positions, so escape parentheses and dots explicitly.

Should I use user or bot identity for lark-cli markdown commands?▼

Prefer --as user since Markdown files are usually personal cloud resources, and run lark-cli auth login first. Use --as bot for automation scenarios where the app already holds permissions on the target files.