Office PPTX
Use the bundled scripts in this skill package to produce editable .pptx
decks. The builder writes editable text boxes, image placements, metric cards,
tables, timelines, drawn proof charts, and native PowerPoint chart objects. The
skill activation metadata includes Skill directory; treat that as SKILL_DIR
and run scripts from SKILL_DIR/scripts/.
Story First
Before building slides, identify:
- Audience and decision context.
- Claim spine: what each slide proves.
- Required proof objects: table, metric, comparison, workflow, timeline, or
narrative slide.
- Visual rhythm: title, section, bullets, two-column, and appendix slides.
Every slide should have one job.
Workflow
- Draft the slide list and title-level claims.
- For explicit control, convert each slide into a structured slide object and
run:
python3 "$SKILL_DIR/scripts/check_env.py"
python3 "$SKILL_DIR/scripts/build_pptx.py" --spec spec.json --out output.pptx
python3 "$SKILL_DIR/scripts/inspect_pptx.py" --verify output.pptx
python3 "$SKILL_DIR/scripts/layout_audit.py" output.pptx
- For a Markdown outline, use
# Deck title, ## Slide title, ## Section: Name, and bullet lists, then run:
python3 "$SKILL_DIR/scripts/outline_to_pptx.py" --outline outline.md --out output.pptx
python3 "$SKILL_DIR/scripts/inspect_pptx.py" --verify output.pptx
- If visual QA matters and LibreOffice is available, run:
python3 "$SKILL_DIR/scripts/render_preview.py" output.pptx
- To append slides to an existing deck without rebuilding it:
python3 "$SKILL_DIR/scripts/append_pptx.py" --input existing.pptx --spec append.json --out output.pptx
python3 "$SKILL_DIR/scripts/inspect_pptx.py" --verify output.pptx
python3 "$SKILL_DIR/scripts/layout_audit.py" output.pptx --reference existing.pptx
- For targeted edits to an existing deck, patch text in place to preserve the
source package, theme, layouts, media, and animations:
python3 "$SKILL_DIR/scripts/patch_pptx.py" --input existing.pptx --patch patch.json --out output.pptx
python3 "$SKILL_DIR/scripts/layout_audit.py" output.pptx --reference existing.pptx
Patch shape:
{"replace_text": [{"old": "Old title", "new": "New title"}]}
- For template-following or source-deck workflows, duplicate, drop, or reorder
source slides without rebuilding their XML:
python3 "$SKILL_DIR/scripts/duplicate_slide.py" --input template.pptx --slide 2 --out duplicated.pptx
python3 "$SKILL_DIR/scripts/deck_reorder.py" --input duplicated.pptx --order '[2,1,3]' --out reordered.pptx
python3 "$SKILL_DIR/scripts/layout_audit.py" reordered.pptx --reference template.pptx
- After rendering previews, create a contact sheet when reviewing slide rhythm:
python3 "$SKILL_DIR/scripts/make_contact_sheet.py" --images preview/page-*.png --out contact-sheet.html
- Deliver the
.pptx path or attach it with send_attachment.
Spec Shape
{
"title": "Deck title",
"slides": [
{"type": "title", "title": "Board Update", "subtitle": "Q2"},
{"type": "section", "title": "What changed"},
{"type": "bullets", "title": "Retention improved", "bullets": ["Activation rose", "Churn fell"]},
{"type": "metrics", "title": "Operating pulse", "metrics": [{"label": "ARR", "value": "$12M", "delta": "+18%"}]},
{"type": "table", "title": "Options", "headers": ["Option", "Pros", "Risks"], "rows": [["A", "Fast", "Low moat"]]},
{"type": "timeline", "title": "Launch path", "items": [{"date": "Q1", "label": "Pilot"}, {"date": "Q2", "label": "GA"}]},
{"type": "chart", "title": "Segment mix", "data": [{"label": "SMB", "value": 42}, {"label": "Enterprise", "value": 58}]},
{"type": "native_chart", "title": "Native segment mix", "chart_type": "pie", "data": [{"label": "SMB", "value": 42}, {"label": "Enterprise", "value": 58}]},
{"type": "image", "title": "Product screenshot", "image": "screenshot.png", "caption": "Use verified assets only"},
{"type": "two_column", "title": "Options", "left": ["Option A"], "right": ["Option B"]}
]
}
Quality Bar
- Use concise slide titles with a claim, not just a topic label.
- Keep bullets short; move dense material into an appendix or document.
- Avoid invented logos, marks, screenshots, or metrics. Use verified assets or
omit them.
- Use
native_chart when the deck needs a real editable PowerPoint chart
object; use chart only for quick drawn proof-object slides.
- Preserve source-deck style when the user asks for edits to an existing deck;
use
patch_pptx.py for text-only edits and minimal local changes rather
than rebuilding from scratch.
- When duplicating, dropping, or reordering slides, preserve non-slide
presentation relationships such as slide masters, layouts, themes, and view
properties; do not rebuild
presentation.xml.rels from slides only.
- Run the layout audit (
layout_audit.py) before delivery; fix blank slides,
missing titles, dense text, and out-of-bounds shapes. Preserve source-deck
style for template and targeted-edit work.
- If preview rendering fails because LibreOffice or a PDF-to-PNG renderer is
missing, state exactly which verification passed; do not imply visual QA
passed.
1---2name: office-pptx3description: Use when the user asks to create, inspect, verify, polish, or deliver PowerPoint `.pptx` decks, Google Slides-targeted deck artifacts, strategy narratives, operating reviews, pitch decks, teaching decks, section slides, bullet slides, or source-to-PPTX transformations.4---5
6# Office PPTX
7
8Use the bundled scripts in this skill package to produce editable `.pptx`
9decks. The builder writes editable text boxes, image placements, metric cards,
10tables, timelines, drawn proof charts, and native PowerPoint chart objects. The
11skill activation metadata includes `Skill directory`; treat that as `SKILL_DIR`
12and run scripts from `SKILL_DIR/scripts/`.
13
14## Story First
15
16Before building slides, identify:
17
18- Audience and decision context.
19- Claim spine: what each slide proves.
20- Required proof objects: table, metric, comparison, workflow, timeline, or
21 narrative slide.
22- Visual rhythm: title, section, bullets, two-column, and appendix slides.
23
24Every slide should have one job.
25
26## Workflow
27
281. Draft the slide list and title-level claims.
292. For explicit control, convert each slide into a structured slide object and
30 run:
31
32```bash
33python3 "$SKILL_DIR/scripts/check_env.py"
34python3 "$SKILL_DIR/scripts/build_pptx.py" --spec spec.json --out output.pptx
35python3 "$SKILL_DIR/scripts/inspect_pptx.py" --verify output.pptx
36python3 "$SKILL_DIR/scripts/layout_audit.py" output.pptx
37```
38
393. For a Markdown outline, use `# Deck title`, `## Slide title`, `## Section:
40 Name`, and bullet lists, then run:
41
42```bash
43python3 "$SKILL_DIR/scripts/outline_to_pptx.py" --outline outline.md --out output.pptx
44python3 "$SKILL_DIR/scripts/inspect_pptx.py" --verify output.pptx
45```
46
474. If visual QA matters and LibreOffice is available, run:
48
49```bash
50python3 "$SKILL_DIR/scripts/render_preview.py" output.pptx
51```
52
535. To append slides to an existing deck without rebuilding it:
54
55```bash
56python3 "$SKILL_DIR/scripts/append_pptx.py" --input existing.pptx --spec append.json --out output.pptx
57python3 "$SKILL_DIR/scripts/inspect_pptx.py" --verify output.pptx
58python3 "$SKILL_DIR/scripts/layout_audit.py" output.pptx --reference existing.pptx
59```
60
616. For targeted edits to an existing deck, patch text in place to preserve the
62 source package, theme, layouts, media, and animations:
63
64```bash
65python3 "$SKILL_DIR/scripts/patch_pptx.py" --input existing.pptx --patch patch.json --out output.pptx
66python3 "$SKILL_DIR/scripts/layout_audit.py" output.pptx --reference existing.pptx
67```
68
69Patch shape:
70
71```json
72{"replace_text": [{"old": "Old title", "new": "New title"}]}
73```
74
757. For template-following or source-deck workflows, duplicate, drop, or reorder
76 source slides without rebuilding their XML:
77
78```bash
79python3 "$SKILL_DIR/scripts/duplicate_slide.py" --input template.pptx --slide 2 --out duplicated.pptx
80python3 "$SKILL_DIR/scripts/deck_reorder.py" --input duplicated.pptx --order '[2,1,3]' --out reordered.pptx
81python3 "$SKILL_DIR/scripts/layout_audit.py" reordered.pptx --reference template.pptx
82```
83
848. After rendering previews, create a contact sheet when reviewing slide rhythm:
85
86```bash
87python3 "$SKILL_DIR/scripts/make_contact_sheet.py" --images preview/page-*.png --out contact-sheet.html
88```
89
909. Deliver the `.pptx` path or attach it with `send_attachment`.
91
92## Spec Shape
93
94```json
95{
96 "title": "Deck title",
97 "slides": [
98 {"type": "title", "title": "Board Update", "subtitle": "Q2"},
99 {"type": "section", "title": "What changed"},
100 {"type": "bullets", "title": "Retention improved", "bullets": ["Activation rose", "Churn fell"]},
101 {"type": "metrics", "title": "Operating pulse", "metrics": [{"label": "ARR", "value": "$12M", "delta": "+18%"}]},
102 {"type": "table", "title": "Options", "headers": ["Option", "Pros", "Risks"], "rows": [["A", "Fast", "Low moat"]]},
103 {"type": "timeline", "title": "Launch path", "items": [{"date": "Q1", "label": "Pilot"}, {"date": "Q2", "label": "GA"}]},
104 {"type": "chart", "title": "Segment mix", "data": [{"label": "SMB", "value": 42}, {"label": "Enterprise", "value": 58}]},
105 {"type": "native_chart", "title": "Native segment mix", "chart_type": "pie", "data": [{"label": "SMB", "value": 42}, {"label": "Enterprise", "value": 58}]},
106 {"type": "image", "title": "Product screenshot", "image": "screenshot.png", "caption": "Use verified assets only"},
107 {"type": "two_column", "title": "Options", "left": ["Option A"], "right": ["Option B"]}
108 ]
109}
110```
111
112## Quality Bar
113
114- Use concise slide titles with a claim, not just a topic label.
115- Keep bullets short; move dense material into an appendix or document.
116- Avoid invented logos, marks, screenshots, or metrics. Use verified assets or
117 omit them.
118- Use `native_chart` when the deck needs a real editable PowerPoint chart
119 object; use `chart` only for quick drawn proof-object slides.
120- Preserve source-deck style when the user asks for edits to an existing deck;
121 use `patch_pptx.py` for text-only edits and minimal local changes rather
122 than rebuilding from scratch.
123- When duplicating, dropping, or reordering slides, preserve non-slide
124 presentation relationships such as slide masters, layouts, themes, and view
125 properties; do not rebuild `presentation.xml.rels` from slides only.
126- Run the layout audit (`layout_audit.py`) before delivery; fix blank slides,
127 missing titles, dense text, and out-of-bounds shapes. Preserve source-deck
128 style for template and targeted-edit work.
129- If preview rendering fails because LibreOffice or a PDF-to-PNG renderer is
130 missing, state exactly which verification passed; do not imply visual QA
131 passed.