lark-markdown
SkillCommunityTranslated from ChineseThis skill enables agents to manage Markdown files stored in Lark Drive. It provides capabilities to create, fetch, overwrite, patch, and compare versions of Markdown files.
Compatibility:
Install:
npx skills add open.feishu.cn/lark-markdownmarkdown (v1)
CRITICAL, Before starting, you MUST use the Read tool to read ../lark-shared/SKILL.md, which contains information on authentication and permission handling.
Quick Decision
- If the user wants to upload or create a native
.mdfile, uselark-cli markdown +create - If the user wants to compare historical version differences of a native
.mdfile, or compare a remote Markdown file with a local draft, uselark-cli markdown +diff - If the user wants to read the content of a
.mdfile in Drive, uselark-cli markdown +fetch - If the user wants to perform local text replacement or regex replacement on a Markdown file, prioritize using
lark-cli markdown +patch - If the user wants to overwrite the content of a
.mdfile in Drive, uselark-cli markdown +overwrite - If the user needs to retrieve the historical version number of a Markdown file before comparing, downloading, or rolling back, first use
lark-cli drive +version-historyfromlark-drive - If the user wants to import a local Markdown file as a new online document (docx), do not use this skill; instead, use
lark-cli drive +import --type docxfromlark-drive - If the user wants to perform rename, move, delete, search, permission, or comment operations on a Markdown file within the cloud space (cloud drive/cloud storage), do not stay in this skill; switch to
lark-drive
Core Boundaries
- This skill handles Markdown stored as regular files in Drive, not docx documents
- Both
--nameand local--filefilenames must explicitly include the.mdextension; the shortcut will throw an error if this is not met --contentsupports:- Passing a string directly
@fileto read content from a local file-to read content from stdin
- The internal semantics of
markdown +patchare: download the full Markdown, perform local replacement, and then overwrite the entire file via upload markdown +patchis not an atomic server-side patch; it is a local update capability orchestrated by the CLImarkdown +patchcurrently only supports a single set of--pattern/--content- The final content after
markdown +patchreplacement cannot be empty; if the entire Markdown becomes an empty string after replacement, the CLI will throw an error and will not upload an empty file --fileonly accepts local.mdfile paths
Shortcuts (Recommended for priority use)
Shortcuts are high-level wrappers for common operations (lark-cli markdown +<verb> [flags]). Use shortcuts whenever available.
| Shortcut | Description |
|---|---|
+create | Create a Markdown file in Drive |
+diff | Compare two remote Markdown versions, or compare remote Markdown against a local file |
+fetch | Fetch a Markdown file from Drive |
+patch | Patch a Markdown file in Drive via fetch-local-replace-overwrite |
+overwrite | Overwrite an existing Markdown file in Drive |
References
- lark-shared, Authentication and global parameters
- lark-drive, Drive file management, importing docx, move/delete/search, etc.
markdown (v1)
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理
快速决策
- 用户要上传、创建一个原生
.md文件,使用lark-cli markdown +create - 用户要比较原生
.md文件的历史版本差异,或比较远端 Markdown 与本地草稿,使用lark-cli markdown +diff - 用户要读取 Drive 里某个
.md文件内容,使用lark-cli markdown +fetch - 用户要对 Markdown 文件做局部文本替换 / 正则替换,优先使用
lark-cli markdown +patch - 用户要覆盖更新 Drive 里某个
.md文件内容,使用lark-cli markdown +overwrite - 用户要先拿 Markdown 文件的历史版本号,再做比较/下载/回滚,先用
lark-drive的lark-cli drive +version-history - 用户要把本地 Markdown 导入成在线新版文档(docx),不要用本 skill,改用
lark-drive的lark-cli drive +import --type docx - 用户要对 Markdown 文件做rename / move / delete / 搜索 / 权限 / 评论等云空间(云盘/云存储)操作,不要留在本 skill,切到
lark-drive
核心边界
- 本 skill 处理的是 Drive 中作为普通文件存储的 Markdown,不是 docx 文档
--name和本地--file文件名都必须显式带.md后缀;不满足时 shortcut 会直接报错--content支持:- 直接传字符串
@file从本地文件读取内容-从 stdin 读取内容
markdown +patch的内部语义是:先完整下载 Markdown,再本地替换,再整文件覆盖上传markdown +patch不是服务端原子 patch;它是 CLI 侧编排出来的局部更新能力markdown +patch当前只支持单组--pattern/--contentmarkdown +patch替换后的最终内容不能为空;如果替换后整篇 Markdown 变成空字符串,CLI 会直接报错,不会上传空文件--file只接受本地.md文件路径
Shortcuts(推荐优先使用)
Shortcut 是对常用操作的高级封装(lark-cli markdown +<verb> [flags])。有 Shortcut 的操作优先使用。
| Shortcut | 说明 |
|---|---|
+create | Create a Markdown file in Drive |
+diff | Compare two remote Markdown versions, or compare remote Markdown against a local file |
+fetch | Fetch a Markdown file from Drive |
+patch | Patch a Markdown file in Drive via fetch-local-replace-overwrite |
+overwrite | Overwrite an existing Markdown file in Drive |
参考
- lark-shared — 认证和全局参数
- lark-drive — Drive 文件管理、导入 docx、move/delete/search 等
Details:
Installs
233,737First seen
Jun 23, 2026
Auto-fetched from GitHub .
Stats via skills.sh.
Ad
Skills similar to lark-markdown:
Installs
Installs
Installs