pptx
适合自动化生成与批量修改演示文稿的场景
修改原文件时需注意格式兼容与模板完整性
创建、编辑与解析 .pptx 幻灯片,支持模板构建与 XML 修改
创建、编辑或解析 .pptx/.potx 文件,能从零开始做幻灯片、用模板批量生成、拆合幻灯片或直接修改 pptx 内部的 XML。当你需要生成演示稿、抽取幻灯片文字、更新笔记或用模板自动化产出时会用到。特别适合需要精细控制布局和模板的场景,因为 .pptx 本质上是 ZIP+XML,按需要可以直接操作底层文件。
▸ 展开 SKILL.md 英文原文
Use 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.
帮我安装这个 skill:https://raw.githubusercontent.com/Await-d/OpenAWork/main/packages/resources/resources/skills/reference/pptx/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/Await-d/OpenAWork/main/packages/resources/resources/skills/reference/pptx/SKILL.md"# PPTX creation, editing, and analysis A `.pptx` is a ZIP archive of XML files. Choose your approach by task: | Task | Approach | |---|---| | **Create** a new deck | Write a `pptxgenjs` script — see gotchas below | | **Edit** an existing deck, or build from a template | unzip → edit `ppt/slides/slideN.xml` → zip | | **Read** content | `markitdown deck.pptx` (one block per slide under `<!-- Slide number: N -->` markers); visual grid: `python scripts/thumbnail.py deck.pptx` | ## Scripts Paths are relative to this skill's directory. Everything else is plain Python, `node`, or shell. | Script | What it does | |---|---| | `scripts/thumbnail.py deck.pptx [prefix]` | Labeled grid of every slid