Lark markdown

From seaworld008/Commonly-used-high-value-skills · View interactive version

Lark markdown is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. 操作飞书云空间中的 Markdown 文件:读取、创建、上传、局部编辑和比较。用于飞书 Markdown 资源操作;本地 Markdown 编辑无需此技能,导入在线文档和云盘管理转对应技能。

How to use this skill

Skill file

markdown (v1)

CRITICAL — 开始前 MUST 先用 Read 工具读取 CODE0,其中包含认证、权限处理

快速决策

核心边界

正则替换时要特别注意 --pattern 的转义:

# BAD: 未转义正则特殊字符,可能匹配到错误位置
lark-cli markdown +patch --file-token boxcnxxxx --regex --pattern "version (1.0)" --content "version (2.0)"

# GOOD: 显式转义括号和点号
lark-cli markdown +patch --file-token boxcnxxxx --regex --pattern "version \\(1\\.0\\)" --content "version (2.0)"

Shortcuts(推荐优先使用)

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

| Shortcut | 说明 |

|----------|------|

| CODE0 | Create a Markdown file in Drive |

| CODE0 | Compare two remote Markdown versions, or compare remote Markdown against a local file |

| CODE0 | Fetch a Markdown file from Drive |

| CODE0 | Patch a Markdown file in Drive via fetch-local-replace-overwrite |

| CODE0 | Overwrite an existing Markdown file in Drive |

参考

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.