Skip to content

Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/lark-skills/lark-doc

lark-doc

Verified

【何时用:仅当用户明确指向飞书/Lark(发到飞书、飞书文档等)时使用;泛指做个文档或PPT或表格或方案默认走本地工具,不要误用飞书】飞书云文档(Docx/Wiki)与思维笔记内容操作:读取、创建、编辑,插入/下载图片附件,查询/回滚历史版本。用户给出文档URL/token(doubao.com /docx/、/wiki/)按路径/token 路由;`/page/<token>` 是妙搭应用非云文档;内嵌表格/多维表格提取 token 切对应 skill;画板无技能,CLI 直连。评论走 lark-drive;表格/Base 内部操作不在本 skill。

FileKindSize
SKILL.mdskill md4.8 KB
references/genres/business-analysis.mdmarkdown3.1 KB
references/genres/data-report.mdmarkdown2.9 KB
references/genres/email.mdmarkdown4.2 KB
references/genres/execution-plan.mdmarkdown2.9 KB
references/genres/formal-doc.mdmarkdown4.4 KB
references/genres/meeting-minutes.mdmarkdown2.3 KB
references/genres/memo-brief.mdmarkdown2.0 KB
references/genres/official-redhead.mdmarkdown6.1 KB
references/genres/prd.mdmarkdown2.5 KB
references/genres/proposal.mdmarkdown2.1 KB
references/genres/research-report.mdmarkdown3.2 KB
references/genres/retrospective.mdmarkdown2.4 KB
references/genres/route-consumer.mdmarkdown3.8 KB
references/genres/route-creative.mdmarkdown3.6 KB
references/genres/route-knowledge.mdmarkdown4.7 KB
references/genres/route-marketing.mdmarkdown4.2 KB
references/genres/route-media.mdmarkdown3.7 KB
references/genres/route-opinion.mdmarkdown3.6 KB
references/genres/route-personal-brand.mdmarkdown3.4 KB
references/genres/route-platform.mdmarkdown639 B
references/genres/route-report.mdmarkdown1.2 KB
references/genres/route-workplace.mdmarkdown2.8 KB
references/genres/sop-tutorial.mdmarkdown4.0 KB
references/genres/technical-doc.mdmarkdown3.5 KB
references/genres/wechat.mdmarkdown3.9 KB
references/genres/weekly-report.mdmarkdown2.0 KB
references/genres/white-paper.mdmarkdown3.1 KB
references/genres/xiaohongshu.mdmarkdown3.2 KB
references/lark-doc-create-workflow.mdmarkdown9.3 KB
references/lark-doc-create.mdmarkdown3.3 KB
references/lark-doc-fetch.mdmarkdown7.8 KB
references/lark-doc-history.mdmarkdown5.4 KB
references/lark-doc-md.mdmarkdown5.8 KB
references/lark-doc-media-download.mdmarkdown2.3 KB
references/lark-doc-media-insert.mdmarkdown6.9 KB
references/lark-doc-media-preview.mdmarkdown1.7 KB
references/lark-doc-mindnote.mdmarkdown5.9 KB
references/lark-doc-resource-cover.mdmarkdown4.2 KB
references/lark-doc-script.mdmarkdown5.1 KB
references/lark-doc-update.mdmarkdown7.4 KB
references/lark-doc-whiteboard.mdmarkdown9.0 KB
references/lark-doc-xml-extended-blocks.mdmarkdown4.4 KB
references/lark-doc-xml.mdmarkdown5.4 KB

references/lark-doc-media-preview.md

View on GitHub

# docs +media-preview(预览文档素材)

> **前置条件:** 按 [`../SKILL.md`](../SKILL.md) 的按需策略,执行本命令前**不预读** [`../../lark-shared/SKILL.md`](../../lark-shared/SKILL.md);仅遇到认证、token / 身份或 scope 错误时再读取该 Skill,修复后重试。

优先用于查看、预览文档中的图片或文件素材(`file_token`)。命令会把素材保存到本地路径,便于后续打开查看内容。

## 选择规则

- 用户说“看一下素材 / 图片 / 附件”“预览一下”时,优先使用 `docs +media-preview`
- 用户明确说“下载”时,使用 [`docs +media-download`](lark-doc-media-download.md)
- 如果目标明确是画板 / whiteboard / 画板缩略图,不要使用 `+media-preview`,改用 `docs +media-download --type whiteboard`

## 命令

```bash
# 预览图片/文件素材
lark-cli docs +media-preview --token "Z1Fjxxxxxxxx" --output ./asset

# 指定输出文件名(带扩展名则不会自动补全)
lark-cli docs +media-preview --token "Z1Fjxxxxxxxx" --output ./asset.png
```

## 参数

| 参数 | 必填 | 说明 |
|------|------|------|
| `--token <token>` | 是 | 素材 token,即 `file_token` |
| `--output <path>` | 是 | 本地保存路径;不带扩展名会自动补全 |

## token 从哪里来

- 若你是从文档内容里提取:`lark-doc-fetch` 返回的内容里可能包含:
  - 图片:`<img token="..." .../>`
  - 文件:`<source token="..." name="..."/>`

## 参考

- [lark-doc-fetch](lark-doc-fetch.md) — 获取文档内容(用于提取 token)
- [lark-doc-media-download](lark-doc-media-download.md) — 明确下载素材,或下载画板缩略图
- [lark-shared](../../lark-shared/SKILL.md) — 认证和全局参数
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall