PPTX Skill
Quick Reference
| Task | Guide |
|---|
| Read/analyze content | INLINECODE0 |
| Edit or create from template |
Read
editing.md |
| Create from scratch | Read
pptxgenjs.md |
Reading Content
CODEBLOCK0
Editing Workflow
Read editing.md for full details.
- 1. Analyze template with INLINECODE1
- Unpack → manipulate slides → edit content → clean → pack
Creating from Scratch
Read pptxgenjs.md for full details.
Use when no template or reference presentation is available.
Design Ideas
Don't create boring slides. Plain bullets on a white background won't impress anyone. Consider ideas from this list for each slide.
Before Starting
- - Pick a bold, content-informed color palette: The palette should feel designed for THIS topic. If swapping your colors into a completely different presentation would still "work," you haven't made specific enough choices.
- Dominance over equality: One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent. Never give all colors equal weight.
- Dark/light contrast: Dark backgrounds for title + conclusion slides, light for content ("sandwich" structure). Or commit to dark throughout for a premium feel.
- Commit to a visual motif: Pick ONE distinctive element and repeat it — rounded image frames, icons in colored circles, thick single-side borders. Carry it across every slide.
Color Palettes
Choose colors that match your topic — don't default to generic blue. Use these palettes as inspiration:
| Theme | Primary | Secondary | Accent |
|---|
| Midnight Executive | INLINECODE2 (navy) | INLINECODE3 (ice blue) | INLINECODE4 (white) |
| Forest & Moss |
2C5F2D (forest) |
97BC62 (moss) |
F5F5F5 (cream) |
|
Coral Energy |
F96167 (coral) |
F9E795 (gold) |
2F3C7E (navy) |
|
Warm Terracotta |
B85042 (terracotta) |
E7E8D1 (sand) |
A7BEAE (sage) |
|
Ocean Gradient |
065A82 (deep blue) |
1C7293 (teal) |
21295C (midnight) |
|
Charcoal Minimal |
36454F (charcoal) |
F2F2F2 (off-white) |
212121 (black) |
|
Teal Trust |
028090 (teal) |
00A896 (seafoam) |
02C39A (mint) |
|
Berry & Cream |
6D2E46 (berry) |
A26769 (dusty rose) |
ECE2D0 (cream) |
|
Sage Calm |
84B59F (sage) |
69A297 (eucalyptus) |
50808E (slate) |
|
Cherry Bold |
990011 (cherry) |
FCF6F5 (off-white) |
2F3C7E (navy) |
For Each Slide
Every slide needs a visual element — image, chart, icon, or shape. Text-only slides are forgettable.
Layout options:
- - Two-column (text left, illustration on right)
- Icon + text rows (icon in colored circle, bold header, description below)
- 2x2 or 2x3 grid (image on one side, grid of content blocks on other)
- Half-bleed image (full left or right side) with content overlay
Data display:
- - Large stat callouts (big numbers 60-72pt with small labels below)
- Comparison columns (before/after, pros/cons, side-by-side options)
- Timeline or process flow (numbered steps, arrows)
Visual polish:
- - Icons in small colored circles next to section headers
- Italic accent text for key stats or taglines
Typography
Choose an interesting font pairing — don't default to Arial. Pick a header font with personality and pair it with a clean body font.
| Header Font | Body Font |
|---|
| Georgia | Calibri |
| Arial Black |
Arial |
| Calibri | Calibri Light |
| Cambria | Calibri |
| Trebuchet MS | Calibri |
| Impact | Arial |
| Palatino | Garamond |
| Consolas | Calibri |
| Element | Size |
|---|
| Slide title | 36-44pt bold |
| Section header |
20-24pt bold |
| Body text | 14-16pt |
| Captions | 10-12pt muted |
Spacing
- - 0.5" minimum margins
- 0.3-0.5" between content blocks
- Leave breathing room—don't fill every inch
Avoid (Common Mistakes)
- - Don't repeat the same layout — vary columns, cards, and callouts across slides
- Don't center body text — left-align paragraphs and lists; center only titles
- Don't skimp on size contrast — titles need 36pt+ to stand out from 14-16pt body
- Don't default to blue — pick colors that reflect the specific topic
- Don't mix spacing randomly — choose 0.3" or 0.5" gaps and use consistently
- Don't style one slide and leave the rest plain — commit fully or keep it simple throughout
- Don't create text-only slides — add images, icons, charts, or visual elements; avoid plain title + bullets
- Don't forget text box padding — when aligning lines or shapes with text edges, set
margin: 0 on the text box or offset the shape to account for padding - Don't use low-contrast elements — icons AND text need strong contrast against the background; avoid light text on light backgrounds or dark text on dark backgrounds
- NEVER use accent lines under titles — these are a hallmark of AI-generated slides; use whitespace or background color instead
QA (Required)
Assume there are problems. Your job is to find them.
Your first render is almost never correct. Approach QA as a bug hunt, not a confirmation step. If you found zero issues on first inspection, you weren't looking hard enough.
Content QA
CODEBLOCK1
Check for missing content, typos, wrong order.
When using templates, check for leftover placeholder text:
CODEBLOCK2
If grep returns results, fix them before declaring success.
Visual QA
⚠️ USE SUBAGENTS — even for 2-3 slides. You've been staring at the code and will see what you expect, not what's there. Subagents have fresh eyes.
Convert slides to images (see Converting to Images), then use this prompt:
CODEBLOCK3
Verification Loop
- 1. Generate slides → Convert to images → Inspect
- List issues found (if none found, look again more critically)
- Fix issues
- Re-verify affected slides — one fix often creates another problem
- Repeat until a full pass reveals no new issues
Do not declare success until you've completed at least one fix-and-verify cycle.
Converting to Images
Convert presentations to individual slide images for visual inspection:
CODEBLOCK4
This creates slide-01.jpg, slide-02.jpg, etc.
To re-render specific slides after fixes:
CODEBLOCK5
Dependencies
- -
pip install "markitdown[pptx]" - text extraction - INLINECODE36 - thumbnail grids
- INLINECODE37 - creating from scratch
- LibreOffice (
soffice) - PDF conversion (auto-configured for sandboxed environments via scripts/office/soffice.py) - Poppler (
pdftoppm) - PDF to images
PPTX 技能
快速参考
| 任务 | 指南 |
|---|
| 读取/分析内容 | python -m markitdown presentation.pptx |
| 编辑或从模板创建 |
阅读
editing.md |
| 从头创建 | 阅读
pptxgenjs.md |
读取内容
bash
文本提取
python -m markitdown presentation.pptx
视觉概览
python scripts/thumbnail.py presentation.pptx
原始 XML
python scripts/office/unpack.py presentation.pptx unpacked/
编辑工作流程
完整详情请阅读 editing.md。
- 1. 使用 thumbnail.py 分析模板
- 解包 → 操作幻灯片 → 编辑内容 → 清理 → 打包
从头创建
完整详情请阅读 pptxgenjs.md。
当没有模板或参考演示文稿时使用。
设计思路
不要创建乏味的幻灯片。 白色背景上的纯项目符号不会给人留下深刻印象。考虑为每张幻灯片使用此列表中的思路。
开始之前
- - 选择大胆且符合内容的配色方案:配色方案应针对此主题进行设计。如果您的颜色方案换到完全不同的演示文稿中仍然适用,说明您的选择还不够具体。
- 主次分明而非均等:一种颜色应占主导地位(60-70% 的视觉权重),搭配 1-2 种辅助色调和一种醒目的强调色。切勿让所有颜色权重相等。
- 深色/浅色对比:标题和结论幻灯片使用深色背景,内容幻灯片使用浅色背景(三明治结构)。或者全程使用深色背景以获得高级感。
- 确定视觉主题:选择一种独特的元素并重复使用——圆角图片框、彩色圆圈中的图标、粗体单侧边框。在每张幻灯片中保持一致。
配色方案
选择与主题匹配的颜色——不要默认使用通用蓝色。使用以下配色方案作为灵感:
| 主题 | 主色 | 辅助色 | 强调色 |
|---|
| 午夜商务 | 1E2761(海军蓝) | CADCFC(冰蓝) | FFFFFF(白色) |
| 森林与苔藓 |
2C5F2D(森林绿) | 97BC62(苔藓绿) | F5F5F5(奶油色) |
|
珊瑚活力 | F96167(珊瑚红) | F9E795(金色) | 2F3C7E(海军蓝) |
|
暖陶土 | B85042(陶土色) | E7E8D1(沙色) | A7BEAE(鼠尾草绿) |
|
海洋渐变 | 065A82(深蓝) | 1C7293(蓝绿色) | 21295C(午夜蓝) |
|
炭灰简约 | 36454F(炭灰色) | F2F2F2(米白色) | 212121(黑色) |
|
蓝绿信任 | 028090(蓝绿色) | 00A896(海沫绿) | 02C39A(薄荷绿) |
|
浆果与奶油 | 6D2E46(浆果紫) | A26769(灰玫瑰色) | ECE2D0(奶油色) |
|
鼠尾草宁静 | 84B59F(鼠尾草绿) | 69A297(桉树绿) | 50808E(石板灰) |
|
樱桃大胆 | 990011(樱桃红) | FCF6F5(米白色) | 2F3C7E(海军蓝) |
每张幻灯片
每张幻灯片都需要一个视觉元素——图片、图表、图标或形状。纯文本幻灯片容易被遗忘。
布局选项:
- - 两栏(左侧文本,右侧插图)
- 图标 + 文本行(彩色圆圈中的图标,粗体标题,下方描述)
- 2x2 或 2x3 网格(一侧图片,另一侧内容块网格)
- 半出血图片(全左侧或右侧)叠加内容
数据展示:
- - 大数字标注(60-72pt 的大数字,下方带小标签)
- 对比栏(前后对比、优缺点、并排选项)
- 时间线或流程(编号步骤、箭头)
视觉润色:
- - 章节标题旁的小彩色圆圈中的图标
- 关键数据或标语使用斜体强调文本
排版
选择有趣的字体搭配——不要默认使用 Arial。选择有个性的标题字体,并搭配清晰的正文字体。
| 标题字体 | 正文字体 |
|---|
| Georgia | Calibri |
| Arial Black |
Arial |
| Calibri | Calibri Light |
| Cambria | Calibri |
| Trebuchet MS | Calibri |
| Impact | Arial |
| Palatino | Garamond |
| Consolas | Calibri |
20-24pt 粗体 |
| 正文 | 14-16pt |
| 说明文字 | 10-12pt 柔和色 |
间距
- - 最小边距 0.5 英寸
- 内容块之间 0.3-0.5 英寸
- 留出呼吸空间——不要填满每一寸
避免(常见错误)
- - 不要重复相同的布局——在幻灯片之间变化栏、卡片和标注
- 不要居中正文——段落和列表左对齐;仅标题居中
- 不要吝啬大小对比——标题需要 36pt+ 才能从 14-16pt 的正文中脱颖而出
- 不要默认使用蓝色——选择反映特定主题的颜色
- 不要随意混合间距——选择 0.3 英寸或 0.5 英寸的间距并保持一致使用
- 不要只设计一张幻灯片而让其余保持平淡——要么完全投入,要么全程保持简洁
- 不要创建纯文本幻灯片——添加图片、图标、图表或视觉元素;避免纯标题加项目符号
- 不要忘记文本框内边距——当对齐线条或形状与文本边缘时,在文本框上设置 margin: 0 或偏移形状以考虑内边距
- 不要使用低对比度元素——图标和文本都需要与背景形成强烈对比;避免浅色背景上的浅色文本或深色背景上的深色文本
- 切勿在标题下使用强调线——这是 AI 生成幻灯片的标志;改用空白或背景色
质量保证(必需)
假设存在问题。您的任务是找到它们。
您的首次渲染几乎从不正确。将 QA 视为错误排查,而非确认步骤。如果首次检查未发现任何问题,说明您检查得不够仔细。
内容 QA
bash
python -m markitdown output.pptx
检查缺失内容、拼写错误、顺序错误。
使用模板时,检查是否有残留的占位符文本:
bash
python -m markitdown output.pptx | grep -iE xxxx|lorem|ipsum|this.(page|slide).layout
如果 grep 返回结果,在宣布成功前修复它们。
视觉 QA
⚠️ 使用子代理——即使只有 2-3 张幻灯片。您一直盯着代码,会看到您期望的内容,而不是实际存在的内容。子代理拥有全新的视角。
将幻灯片转换为图片(参见转换为图片),然后使用以下提示:
视觉检查这些幻灯片。假设存在问题——找到它们。
查找:
- - 重叠元素(文本穿过形状、线条穿过文字、堆叠元素)
- 文本溢出或在边缘/框边界处被截断
- 为单行文本定位的装饰线但标题换行为两行
- 来源引用或页脚与上方内容碰撞
- 元素间距过近(< 0.3 英寸间隙)或卡片/部分几乎接触
- 间距不均匀(一处有大片空白区域,另一处拥挤)
- 幻灯片边缘边距不足(< 0.5 英寸)
- 列或类似元素未对齐一致
- 低对比度文本(例如,奶油色背景上的浅灰色文本)
- 低对比度图标(例如,深色背景上的深色图标,没有对比色圆圈)
- 文本框过窄导致过度换行
- 残留的占位符内容
对于每张幻灯片,列出问题或关注区域,即使是小问题。
阅读并分析这些图片:
- 1. /path/to/slide-01.jpg(预期:[简要描述])
2