ppt-editing-skill
它能做什么
这项技能指导对现有 PowerPoint 文件的修改,包括用新内容填充模板。适合需要更新演示文稿、又不希望破坏版式的人。
适用场景
- ✓当你有一个 PowerPoint 模板,并想用自己的内容填充它的时候。
- ✓当你需要在现有演示文稿中重新排序、复制或删除幻灯片的时候。
- ✓当你想安全地更新现有演示文稿的文字的时候。
技能链接
https://github.com/MiniMax-AI/skills/blob/main/plugins/pptx-plugin/skills/ppt-editing-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用公司模板制作一份关于第三季度业绩的 10 页演示文稿。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会查看模板的版式,规划每个章节适合哪一张幻灯片。然后它会小心地编辑幻灯片文件,并将其重新打包成有效的 PowerPoint 文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Editing Presentations
Template-Based Workflow
When using an existing presentation as a template:
Copy and analyze:
cp /path/to/user-provided.pptx template.pptx python -m markitdown template.pptx > template.mdReview
template.mdto see placeholder text and slide structure.Plan slide mapping: For each content section, choose a template slide.
⚠️ USE VARIED LAYOUTS — monotonous presentations are a common failure mode. Don't default to basic title + bullet slides. Actively seek out:
- Multi-column layouts (2-column, 3-column)
- Image + text combinations
- Full-bleed images with text overlay
- Quote or callout slides
- Section dividers
- Stat/number callouts
- Icon grids or icon + text rows
Avoid: Repeating the same text-heavy layout for every slide.
Match content type to layout style (e.g., key points → bullet slide, team info → multi-column, testimonials → quote slide).
Unpack
Build presentation (do this yourself, not with subagents):
- Delete unwanted slides (remove from
<p:sldIdLst>) - Duplicate slides you want to reuse (
add_slide.py) - Reorder slides in
<p:sldIdLst> - Complete all structural changes before step 5
- Delete unwanted slides (remove from
Edit content: Update text in each
slide{N}.xml. Use subagents here if available — slides are separate XML files, so subagents can edit in parallel.Clean
Pack
Output Structure
Copy the user-provided file to template.pptx in cwd. This preserves the original and gives a predictable name for all downstream scripts.
cp /path/to/user-provided.pptx template.pptx
./
├── template.pptx # Copy of user-provided file (never modified)
├── template.md # markitdown extraction
├── unpacked/ # Editable XML tree
└── edited.pptx # Final repacked deck
Minimum expected deliverable: edited.pptx.
Scripts
| Script | Purpose |
|---|---|
unpack.py |
Extract and pretty-print PPTX |
add_slide.py |
Duplicate slide or create from layout |
clean.py |
Remove orphaned files |
pack.py |
Repack with validation |
Removes slides not in <p:sldIdLst>, unreferenced media, orphaned rels.
Always write to /tmp/ first, then copy to the final path. Python's zipfile module uses seek internally, which fails on some volume mounts (e.g. Docker bind mounts). Writing to a local temp path avoids this.
Validates, repairs, condenses XML, re-encodes smart quotes.
Slide Operations
Slide order is in ppt/presentation.xml → <p:sldIdLst>.
Reorder: Rearrange <p:sldId> elements.
Delete: Remove <p:sldId>, then run clean.py.
Add: Use add_slide.py. Never manually copy slide files—the script handles notes references, Content_Types.xml, and relationship IDs that manual copying misses.
Editing Content
Subagents: If available, use them here (after completing step 4). Each slide is a separate XML file, so subagents can edit in parallel. In your prompt to subagents, include:
- The slide file path(s) to edit
- "Use the Edit tool for all changes"
- The formatting rules and common pitfalls below
For each slide:
- Read the slide's XML
- Identify ALL placeholder content—text, images, charts, icons, captions
- Replace each placeholder with final content
Use the Edit tool, not sed or Python scripts. The Edit tool forces specificity about what to replace and where, yielding better reliability.
Formatting Rules
- Bold all headers, subheadings, and inline labels: Use
b="1"on<a:rPr>. This includes:- Slide titles
- Section headers within a slide
- Inline labels like (e.g.: "Status:", "Description:") at the start of a line
- Never use unicode bullets (•): Use proper list formatting with
<a:buChar>or<a:buAutoNum> - Bullet consistency: Let bullets inherit from the layout. Only specify
<a:buChar>or<a:buNone>.
Common Pitfalls
Template Adaptation
When source content has fewer items than the template:
- Remove excess elements entirely (images, shapes, text boxes), don't just clear text
- Check for orphaned visuals after clearing text content
- Run content QA with
markitdownto catch mismatched counts
When replacing text with different length content:
- Shorter replacements: Usually safe
- Longer replacements: May overflow or wrap unexpectedly
- Verify w
常见问题
它会保留我的模板版式吗?
这项技能以现有模板的版式为基础,并小心地编辑其中的文字。
它会使用多样的幻灯片版式吗?
会。它会避免每张幻灯片都使用同一种以文字为主的版式。
它会清理未使用的文件吗?
会。这项技能包括在编辑后删除孤立的资源。
详情
作者的原始描述
Edit existing PowerPoint files or templates with XML-safe workflows. Use for template-based deck updates: analyze layouts, map content to slides, duplicate/reorder/delete slides safely, edit slide XML in parallel, clean orphaned assets, and repack validated PPTX output.
repo: MiniMax-AI/skills
热度
- GitHub 星标
- 14k
- 排名
- #11283
- 许可证
- MIT
- 更新时间
- 2026/4/18
评论
- …
同一仓库的更多技能
design-style-skill
14k帮你的智能体为幻灯片选定一种统一的视觉风格,从锐利紧凑到柔和、圆润或宽松,并配以相应的圆角和间距。
ppt-orchestra-skill
14k帮你的智能体在制作之前规划整套 PowerPoint 演示文稿,把每张幻灯片归入标准页面类型,并检查版式多样性和文字质量。
slide-making-skill
14k帮你的智能体用 JavaScript 和 PptxGenJS 编写单张 PowerPoint 幻灯片,涵盖版式、文字、图片、图表和字体,生成原生 .pptx 文件。
android-native-dev
14k帮你的智能体用 Kotlin、Compose 和 Material Design 3 构建 Android 应用,包括项目设置、无障碍功能和构建修复。