pptx-reference-deck-analysis
它能做什么
这个工具分析演示文稿文件(PPTX),了解其结构、主题、字体和版式。它不会修改原文件,只提取关于它是如何制作的信息。
适用场景
- ✓想了解现有演示文稿的设计时。
- ✓想检查某份演示文稿是否遵循某种设计模式时。
- ✓想在不改动 PPTX 文件的前提下分析其组成部分时。
技能链接
https://github.com/wshobson/agents/blob/main/plugins/pptx-deck-creation/skills/pptx-reference-deck-analysis/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析这个 PPTX 文件,告诉我它用了哪些字体和颜色。”
每周 5 个新技能,1 分钟读完。
工作原理
工具使用脚本读取 PPTX 文件,提取幻灯片、样式和整体组织的详细信息。它以安全的方式检查内容,不会对原文件做任何修改。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PPTX Reference Deck Analysis
Inspect a reference deck as design evidence. This skill never copies, clones, or mutates a source deck.
Contract
Implement required extraction on demand with a small task-local python-pptx script. Capture only the information required for the new deck:
- compact prompt context: slide count and size, text summaries, shape counts, styles, brand signals, template use, and layout rhythm;
- full extraction:
summary, slides, and read-onlylayout_treeevidence; - folder diagnostics: one result per deck plus a manifest;
- style-master analysis: colors, fonts, size distribution, master/layout use, and flow patterns;
- derived template catalog: zero-based source indices, layout roles, usable regions, placeholders, visual structures, and constraints.
Rules
- Keep the source deck read-only and independently author every target-slide coordinate.
- Use the bundled OOXML utilities only for raw themes, relationships, notes, comments, animations, media, masters, or layouts that high-level extraction cannot expose.
- Record inspected parts and parsing exceptions in the analysis manifest.
- Do not use extracted content, fonts, images, or proprietary assets in a generated deck without explicit permission and license evidence.
OOXML package inspection
Install defusedxml from requirements.txt before using the bundled utilities.
- Run
scripts/inspect.py <deck.pptx>for a compact JSON report of slide order, text, theme tokens, relationships, notes, comments, animations, and media. - Run
scripts/validate_package.py <deck.pptx> --output <report.json>for malformed XML, broken internal relationships, content-type gaps, duplicate layout links, and orphaned parts. - Run
scripts/unpack.py <deck.pptx> <output-dir>only when raw-package evidence is necessary. - Resolve relationship targets relative to the
.relsowner; never infer slide order from filenames.
Safety
- Never modify a supplied deck or blindly copy package parts into a new deck.
- Run the scripts from a trusted workspace; they reject path traversal, symlinks, oversized members, and archive bombs.
- Parse untrusted XML with
defusedxml; do not enable entity expansion, DTD loading, or network access. - Treat theme colors as tokens unless fully resolved against the color scheme.
See references/reference-deck-analysis.md for output shapes, references/reference-deck-analysis-patterns.md for documentation-only patterns, and references/ooxml-parsing.md for package part maps.
常见问题
这个工具能创建新的演示文稿吗?
不能,它只用于分析和提取现有演示文稿的信息。
“OOXML”是什么意思?
OOXML 是 Microsoft Office 文件的标准格式,比如演示文稿所用的 PPTX 就基于它。
工具会修改原文件吗?
不会,该工具设计为只读,从不修改你提供的演示文稿文件。
详情
作者的原始描述
Use when analyzing a reference PPTX for read-only structure, theme, typography, layout rhythm, diagnostics, derived template catalogs, or safe OOXML package inspection.
repo: wshobson/agents
热度
- GitHub 星标
- 41k
- 排名
- #6751
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …