lark-markdown
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.
git clone https://github.com/larksuite/cli.gitBefore / After Comparison
1 组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.
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.
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-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 读取内容
--file只接受本地.md文件路径
Shortcuts(推荐优先使用)
Shortcut 是对常用操作的高级封装(lark-cli markdown +<verb> [flags])。有 Shortcut 的操作优先使用。
| Shortcut | 说明 |
|---|---|
+create | Create a Markdown file in Drive |
+fetch | Fetch a Markdown file from Drive |
+overwrite | Overwrite an existing Markdown file in Drive |
参考
- lark-shared — 认证和全局参数
- lark-drive — Drive 文件管理、导入 docx、move/delete/search 等
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill