Skip to content
Skills Library
Documents & office · Tool integration

lark-markdown

/lark-markdown

飞书 Markdown:查看、创建、上传、编辑和比较 Markdown 文件。当用户需要创建或编辑 Markdown 文件、读取、修改、局部 patch 或比较差异时使用。

Repository
Skill-hub ↗
Licence
MIT
Last repository change
18.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

飞书 Markdown:查看、创建、上传、编辑和比较 Markdown 文件。当用户需要创建或编辑 Markdown 文件、读取、修改、局部 patch 或比较差异时使用。

Original author description

飞书 Markdown:查看、创建、上传、编辑和比较 Markdown 文件。当用户需要创建或编辑 Markdown 文件、读取、修改、局部 patch 或比较差异时使用。

How it works

  1. 快速决策
  2. 核心边界
  3. Shortcuts(推荐优先使用)
  4. 参考
Original SKILL.md headings · 47 lines, 245 words
SKILL.md preview
---
name: lark-markdown
version: 1.2.0
description: "飞书 Markdown:查看、创建、上传、编辑和比较 Markdown 文件。当用户需要创建或编辑 Markdown 文件、读取、修改、局部 patch 或比较差异时使用。"
metadata:
  requires:
    bins: ["lark-cli"]
  cliHelp: "lark-cli markdown --help"
---

# markdown (v1)

**CRITICAL — 开始前 MUST 先用 Read 工具读取 [`../lark-shared/SKILL.md`](../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-drive/SKILL.md) 的 `lark-cli drive +version-history`
- 用户要把本地 Markdown **导入成在线新版文档(docx)**,不要用本 skill,改用 [`lark-drive`](../lark-drive/SKILL.md) 的 `lark-cli drive +import --type docx`
- 用户要对 Markdown 文件做**rename / move / delete / 搜索 / 权限 / 评论**等云空间(云盘/云存储)操作,不要留在本 skill,切到 [`lark-drive`](../lark-drive/SKILL.md)

## 核心边界

- 本 skill 处理的是 **Drive 中作为普通文件存储的 Markdown**,不是 docx 文档
- `--name` 和本地 `--file` 文件名都必须显式带 `.md` 后缀;不满足时 shortcut 会直接报错
- `--content` 支持:
  - 直接传字符串
  - `@file` 从本地文件读取内容
  - `-` 从 stdin 读取内容
- `markdown +patch` 的内部语义是:**先完整下载 Markdown,再本地替换,再整文件覆盖上传**
- `markdown +patch` 不是服务端原子 patch;它是 CLI 侧编排出来的局部更新能力
- `markdown +patch` 当前只支持**单组** `--pattern` / `--content`
- `markdown +patch` 替换后的最终内容**不能为空**;如果替换后整篇 Markdown 变成空字符串,CLI 会直接报错,不会上传空文件
- `--file` 只接受本地 `.md` 文件路径

## Shortcuts(推荐优先使用)

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

| Shortcut | 说明 |
|----------|------|
| [`+create`](references/lark-markdown-create.md) | Create a Markdown file in Drive |
| [`+diff`](references/lark-markdown-diff.md) | Compare two remote Markdown versions, or compare remote Markdown against a local file |
| [`+fetch`](references/lark-markdown-fetch.md) | Fetch a Markdown file from Drive |
| [`+patch`](references/lark-markdown-patch.md) | Patch a Markdown file in Drive via fetch-local-replace-overwrite |
| [`+overwrite`](references/lark-markdown-overwrite.md) | Overwrite an existing Markdown file in Drive |

## 参考

- [lark-shared](../lark-shared/SKILL.md) — 认证和全局参数
- [lark-drive](../lark-drive/SKILL.md) — Drive 文件管理、导入 docx、move/delete/search 等
Files in this package (6)
  • SKILL.md 3 KB
  • references/lark-markdown-create.md 3 KB
  • references/lark-markdown-diff.md 6 KB
  • references/lark-markdown-fetch.md 2 KB
  • references/lark-markdown-overwrite.md 2 KB
  • references/lark-markdown-patch.md 4 KB

Versions

RepositoryScoreLicence
This page · EthanYoQ/Skill-hub90MIT
larksuite/cli100MIT
halojerry/poundingcore100Apache-2.0
pengfeiqiao/kunpeng86MIT

Database snapshot: 13.11.2026 · package version ccf23c30f8f1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100lark-md-push
    将本地 Markdown (.md) 极速直推/更新到飞书云文档(Docx/Wiki)。当用户需要把本地 markdown 文件上传、发布、创建、追加或同步到飞书云文档,或提到“推送到飞书”“Markdown建飞书文档”“更新飞书文档”“上传md到飞书”时使用。绕过复杂的 DocxXML 规则推理,直接通过原生 Markdown 极速直达。纯读取/下载飞书文档不适用(使用 lark-md-pull)。
  • 100lark-md-pull
    从飞书云文档(Docx/Wiki)拉取并导出为本地 Markdown (.md),并自动下载图片附件到文档专属的 <doc_name>.assets/ 伴生目录并改写相对路径。当用户需要将飞书文档导出、下载、备份或同步到本地 markdown,或提到“拉取飞书文档”“下载飞书文档为md”“导出飞书云文档”时使用。纯上传/创建飞书文档不适用(使用 lark-md-push)。
  • 100feishu-doc-scraper
    Extracts Feishu/Lark Docs, Wiki, Sheets, and Minutes (妙记) transcripts into faithful local Markdown via the lark-cli API — no LLM paraphrasing, browser-DOM fallback when lark-cli can't reach content. Use whenever the source is a Feishu/Lark URL and fidelity matters —…
  • 100feishu-automation
    飞书(Lark)全通道自动化。使用 lark-mcp 工具操作飞书多维表格(Bitable)、发送消息、管理文档、创建群组、自动化工作流等。当用户需要操作飞书平台、同步数据到飞书表格、发送飞书通知、管理飞书文档或自动化飞书业务流程时使用此技能。
  • 100feishu-lark-workflows
    Use when working with Feishu/Lark native documents, Drive uploads, Bitable schema discovery, Bitable record writes, and lark-cli setup/validation.
  • 90lark-cli
    Use lark-cli for 飞书/Feishu/Lark/Larksuite operations (messages, mail, docs, Sheets/Base/多维表格, calendar/日程, tasks), including cross-service identity and permissions. Not merely because text contains a Feishu/Lark URL, or when the user selected another available interface.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.