Home/Content Creation/lark-markdown
L

lark-markdown

by @larksuitev
4.7(120)

This Skill helps users efficiently manage Markdown files within Lark Drive. Through the command-line interface, users can easily create, upload, fetch, and overwrite `.md` files, enabling convenient operations on native Markdown content and improving document processing efficiency.

markdownlarkclidocumentautomationGitHub
Installation
git clone https://github.com/larksuite/cli.git
compare_arrows

Before / After Comparison

1
Before

Managing Markdown files in Lark Drive often involves tedious manual uploads, downloads, or edits via the web interface. This process is inefficient and error-prone, especially for developers needing batch processing or integration into automated workflows.

After

Using the command-line tool, users can quickly create, upload, fetch, and update Markdown files. This enables integration into automated scripts, significantly reducing manual effort, improving document management efficiency and accuracy, and streamlining content creation and maintenance.

SKILL.md

markdown (v1)

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理

快速决策

  • 用户要上传、创建一个原生 .md 文件,使用 lark-cli markdown +create
  • 用户要读取 Drive 里某个 .md 文件内容,使用 lark-cli markdown +fetch
  • 用户要覆盖更新 Drive 里某个 .md 文件内容,使用 lark-cli markdown +overwrite
  • 用户要把本地 Markdown 导入成在线新版文档(docx),不要用本 skill,改用 lark-drivelark-cli drive +import --type docx
  • 用户要对 Markdown 文件做rename / move / delete / 搜索 / 权限 / 评论等云空间操作,不要留在本 skill,切到 lark-drive

核心边界

  • 本 skill 处理的是 Drive 中作为普通文件存储的 Markdown,不是 docx 文档
  • --name 和本地 --file 文件名都必须显式带 .md 后缀;不满足时 shortcut 会直接报错
  • --content 支持:
    • 直接传字符串
    • @file 从本地文件读取内容
    • - 从 stdin 读取内容
  • --file 只接受本地 .md 文件路径

Shortcuts(推荐优先使用)

Shortcut 是对常用操作的高级封装(lark-cli markdown +<verb> [flags])。有 Shortcut 的操作优先使用。

Shortcut说明
+createCreate a Markdown file in Drive
+fetchFetch a Markdown file from Drive
+overwriteOverwrite an existing Markdown file in Drive

参考

  • lark-shared — 认证和全局参数
  • lark-drive — Drive 文件管理、导入 docx、move/delete/search 等

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs71.0K
Rating4.7 / 5.0
Version
Updated2026年5月23日
Comparisons1

User Rating

4.7(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年5月8日
Last Updated2026年5月23日