Skip to content

Pinvou/pinvou-agent / pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-pptx

wecomcli-pptx

Verified

何时用:仅当用户明确指向企业微信 PPT/演示文稿(生成在线 PPT、编辑在线 PPT、导入本地 .ppt/.pptx)时使用;泛指做文档/表格默认走本地工具。「做个PPT」「写份汇报PPT」「把文档转成PPT」「改第3页标题」或需要能讲的分页材料(周会/汇报/路演/课件)时触发;一律作用于企微在线 slide 文档,交付在线链接;不支持编辑本地文件、无导出能力;仅读取本地 PPT 改用 wecomcli-media。

references/pptx-edit.md

View on GitHub
# PPT 编辑:命令索引

> 参数**必须用 `--schema` 现查**,不得凭记忆拼参:
> ```bash
> wecom-cli slide pages addjsx --schema
> ```

命令形态为 `wecom-cli slide <资源> <动作>`;坐标单位磅(pt);页码 / 形状 / 表格行列索引全部 0-based;插入形状须设 fill / border 颜色。文档标识统一用 `docid`。调用规约见 [pptx-api.md](pptx-api.md)。

> 🚨 **`wecom-cli slide designs update` 是写类前置门**:设计契约未持久化时,下表所有写命令一律被服务端拒绝。

> 🚨 **没有原生撤销**:改坏了只能整页重做(`slide pages delete` + `slide pages addjsx`),所以生成阶段保留的每页 JSX 源码副本是唯一回退依据。

## skill 固化的编辑命令

本文件只固化以下 **5 条**编辑命令:

| 命令 | 说明 |
|---|---|
| `slide pages add` | 在演示文稿中插入一张新幻灯片 |
| `slide pages delete` | 删除指定位置的幻灯片 |
| `slide pages addjsx` | 通过 JSX 代码生成一页幻灯片并插入到指定位置 |
| `slide get` | 获取演示文稿元数据:幻灯片总数、有序 slide_ids、幻灯片尺寸(「列出所有页」走这里,**无 `pages list` 命令**) |
| `slide pages get` | 获取指定幻灯片上所有形状的摘要信息和动画列表 |

## 其余编辑接口:动态下发,不在 skill 固化

改文字 / 图表 / 表格 / 形状样式与位置 / 备注 / 批注 / 动画 / 节 / 母版主题等其他编辑接口**由服务端动态下发,不在 skill 中固化**。需要时:

```bash
wecom-cli slide --schema                # 探测当前下发的命令全集(随版本变化)
wecom-cli slide <资源> <动作> --schema   # 取单条命令的参数 schema
```

探测到目标命令 → 按其 schema 传参使用;探测不到 → 当前版本未开放,**换已固化的命令组合兜底**(典型:整页重做)。探测到批量变体(如 `batchadd` 系列)时**优先用批量**,减少往返与编辑冲突。
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