lark-markdown
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesemarkdown (v1)
markdown (v1)
CRITICAL — 开始前 MUST 先用 Read 工具读取 ,其中包含认证、权限处理
../lark-shared/SKILL.mdCRITICAL — MUST use the Read tool to read before starting, which contains authentication and permission handling
../lark-shared/SKILL.md快速决策
Quick Decision
- 用户要上传、创建一个原生 文件,使用
.mdlark-cli markdown +create - 用户要读取 Drive 里某个 文件内容,使用
.mdlark-cli markdown +fetch - 用户要覆盖更新 Drive 里某个 文件内容,使用
.mdlark-cli markdown +overwrite - 用户要把本地 Markdown 导入成在线新版文档(docx),不要用本 skill,改用 的
lark-drivelark-cli drive +import --type docx - 用户要对 Markdown 文件做rename / move / delete / 搜索 / 权限 / 评论等云空间操作,不要留在本 skill,切到
lark-drive
- When users want to upload and create a native file, use
.mdlark-cli markdown +create - When users want to read the content of a file in Drive, use
.mdlark-cli markdown +fetch - When users want to overwrite and update the content of a file in Drive, use
.mdlark-cli markdown +overwrite - When users want to import local Markdown into an online new document (docx), do not use this skill; instead, use from
lark-cli drive +import --type docxlark-drive - When users need to perform cloud space operations such as rename / move / delete / search / permission / comment on Markdown files, do not stay in this skill; switch to
lark-drive
核心边界
Core Boundaries
- 本 skill 处理的是 Drive 中作为普通文件存储的 Markdown,不是 docx 文档
- 和本地
--name文件名都必须显式带--file后缀;不满足时 shortcut 会直接报错.md - 支持:
--content- 直接传字符串
- 从本地文件读取内容
@file - 从 stdin 读取内容
-
- 只接受本地
--file文件路径.md
- This skill handles Markdown stored as regular files in Drive, not docx documents
- Both and the local
--namefilename must explicitly include the--filesuffix; the shortcut will directly report an error if this requirement is not met.md - supports:
--content- Directly passing a string
- reading content from a local file
@file - reading content from stdin
-
- only accepts local
--filefile paths.md
Shortcuts(推荐优先使用)
Shortcuts (Recommended for Priority Use)
Shortcut 是对常用操作的高级封装()。有 Shortcut 的操作优先使用。
lark-cli markdown +<verb> [flags]| Shortcut | 说明 |
|---|---|
| Create a Markdown file in Drive |
| Fetch a Markdown file from Drive |
| Overwrite an existing Markdown file in Drive |
Shortcuts are advanced encapsulations of common operations (). Prioritize using operations with Shortcuts.
lark-cli markdown +<verb> [flags]| Shortcut | Description |
|---|---|
| Create a Markdown file in Drive |
| Fetch a Markdown file from Drive |
| Overwrite an existing Markdown file in Drive |
参考
References
- lark-shared — 认证和全局参数
- lark-drive — Drive 文件管理、导入 docx、move/delete/search 等
- lark-shared — Authentication and global parameters
- lark-drive — Drive file management, docx import, move/delete/search, etc.