Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create, read, edit .pptx decks, slides, notes, templates.
.claude/skills/nousresearch-powerpoint/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 109% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 187% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 157% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 124% | 0% |
Create, inspect, and edit PowerPoint (.pptx) presentations using the python-pptx library. Five helper scripts cover deck creation from a JSON spec, structured read-back, in-place edits, template-driven brand decks, and slide rendering — all offline, no PowerPoint installation required.
.pptx someone shared.
chart data, swap a logo, duplicate/remove/reorder slides, set backgrounds, footers, hyperlinks, or speaker notes.
soffice --convert-to pptx old.ppt if LibreOffice is available.
python-pptx installed(pip install python-pptx).
soffice) plus poppler (pdftoppm orpdftocairo) for rendering slides to PNGs and for PDF export. pptx_render.py detects both with shutil.which and degrades gracefully (reports {"rendered": false, "missing": [...]}, exit 0) when absent — all create/read/edit operations work without them.
terminal:python -c "import pptx; print(pptx.__version__)" and which soffice pdftoppm.
All scripts live in scripts/, take --help, print JSON to stdout, and exit non-zero on failure. Run them with terminal:
bashpython scripts/pptx_create.py deck.json out.pptx python scripts/pptx_read.py deck.pptx --outline # full JSON outline python scripts/pptx_read.py deck.pptx --notes # speaker notes python scripts/pptx_read.py deck.pptx --images ./img # export pictures python scripts/pptx_edit.py deck.pptx --replace-text "Old Corp" "New Corp" python scripts/pptx_edit.py deck.pptx --chart-data update.json python scripts/pptx_edit.py deck.pptx --duplicate-slide 2 python scripts/pptx_edit.py deck.pptx --remove-slide 3 --move-slide 2 0 python scripts/pptx_from_template.py brand.pptx out.pptx --values vals.json python scripts/pptx_render.py deck.pptx --outdir ./render # slide PNGs
Author JSON specs with write_file; inspect script output and generated JSON with read_file.
| Task | Command | |---|---| | New deck from spec | pptx_create.py spec.json out.pptx | | 16:9 vs 4:3 | "slide_size": "16:9" or "4:3" in the spec | | Outline as JSON | pptx_read.py deck.pptx --outline | | Export images | pptx_read.py deck.pptx --images DIR | | Replace text | pptx_edit.py deck.pptx --replace-text OLD NEW | | Replace chart data | pptx_edit.py deck.pptx --chart-data spec.json | | Patch one series | same flag, spec with "ops" (see below) | | Swap picture | pptx_edit.py deck.pptx --swap-image N NAME new.png | | Duplicate slide | pptx_edit.py deck.pptx --duplicate-slide N | | Remove slide | pptx_edit.py deck.pptx --remove-slide N | | Reorder slide | pptx_edit.py deck.pptx --move-slide FROM TO | | Slide background | pptx_edit.py deck.pptx --set-background N RRGGBB | | Hyperlink runs | pptx_edit.py deck.pptx --hyperlink N TEXT URL | | Slide number on | pptx_edit.py deck.pptx --enable-slide-number N | | Footer text | pptx_edit.py deck.pptx --set-footer N TEXT | | Set notes | pptx_edit.py deck.pptx --set-notes N TEXT | | Append notes | pptx_edit.py deck.pptx --append-notes N TEXT | | Fill template | pptx_from_template.py tpl.pptx out.pptx --values v.json | | Render slide PNGs | pptx_render.py deck.pptx --outdir DIR |
Write a JSON spec (see pptx_create.py --help for the full format), then run pptx_create.py. Per slide you can set: layout (title, title_content, section, two_content, title_only, blank), title, subtitle, bullets (strings, or dicts with level 0-4, size pt, bold, italic, font, color hex, link URL for a hyperlink), background (solid hex), footer (text; enables the layout's footer placeholder), slide_number (true; enables the layout's slide-number placeholder), images (path + left/top/width/height in inches), tables (rows as list-of-lists), shapes (rectangle, rounded_rectangle, oval, diamond, right_arrow, chevron, with fill hex + optional text), charts (bar, bar_h, line, pie with categories + series), and notes (speaker notes).
pptx_read.py deck.pptx --outline returns slide size, layout inventory, and per slide: layout name, all shape texts, table cells, image inventory (filename/ext/bytes), chart categories/series/values, and speaker notes. Use --images DIR to dump embedded pictures to files, then vision_analyze on any exported image if you need to see its content.
pptx_edit.py combines operations in one pass; use --output to keep the original. Text replacement scans slide shapes, table cells, and notes. Image swap retargets the picture's relationship id so position and size are preserved. Slide removal drops the relationship and the <p:sldId> entry; reorder moves the <p:sldId> element within <p:sldIdLst> (python-pptx has no public API for either — the script does the XML-level work). --duplicate-slide N appends an independent deep copy of slide N: shape XML plus image/media/hyperlink relationships are cloned and rIds remapped, so editing the copy never touches the original. Chart slides are refused (see Pitfalls). --set-notes/--append-notes edit speaker notes; --set-background, --hyperlink, --enable-slide-number, and --set-footer handle deck polish.
Chart updates take a JSON spec via --chart-data. Full replace: {"slide": 0, "chart": 0, "categories": [...], "series": {...}}. For surgical edits, pass "ops" instead — a list of {"op": "update_series", "name": ..., "values": [...]}, add_series, remove_series, rename_category (from/to or index), and set_title. python-pptx can only swap a chart's entire dataset (replace_data), so ops are implemented as read-existing → modify → replace; the per-part UX is a wrapper, and any chart data not expressible as categories + numeric series will be normalized by the round-trip.
pptx_from_template.py opens a brand .pptx, replaces every {{token}} from a values JSON across slides/tables/notes, and can append new slides that use the template's own layouts (by layout name or index) so they inherit the master's fonts and colors. Tip: to start from a template with zero slides, delete existing ones afterward with pptx_edit.py --remove-slide.
pptx_render.py deck.pptx --outdir ./render converts the deck to PDF with soffice --headless and splits it into one PNG per slide with pdftoppm (or pdftocairo). Output JSON lists the PNG paths — review each with vision_analyze. When either tool is missing the script exits 0 with {"rendered": false, "missing": [...]} and guidance; fall back to the JSON outline from pptx_read.py, which verifies content and structure, just not visuals.
If LibreOffice is installed, export the finished deck to PDF directly:
bashsoffice --headless --convert-to pdf --outdir ./out deck.pptx
The output lands at ./out/deck.pdf. Fonts not installed on the host are substituted, so render-verify (Procedure step 5) before shipping the PDF. There is no offline pure-Python .pptx→PDF path; if soffice is absent, say so rather than approximating.
spell-check and edit boundaries. --replace-text first merges adjacent runs whose formatting is identical, so matches split across such runs are replaced with formatting fully preserved. Only when a match spans genuinely differently-formatted runs is the paragraph rewritten with the first run's formatting — verify those slides after replacement.
separate XLSX workbook part; cloning that graph reliably is not supported, so --duplicate-slide refuses chart slides cleanly instead of corrupting the deck. Rebuild the chart on a new slide instead. External-hyperlink and image/media rels are carried over; layout and notes rels are recreated fresh.
"ops" round-trips existing plot data through replace_data, and changing chart type is not possible.
--move-slide manipulates <p:sldIdLst> directly; safe for ordinary decks but re-read the deck afterward to confirm.
only within one deck, where layouts and masters are shared.
layout; on layouts without those placeholders, --set-footer fails with a clear message (add a textbox instead).
--hyperlink links every runcontaining the given text on that slide.
unless the spec says otherwise. Custom templates keep their own size.
first: pptx_read.py template.pptx --outline (layouts_available).
slide.shapes.title is None on blank layouts — the create scripthandles this, but remember it when writing ad-hoc python-pptx code.
encoding="utf-8" when writing spec files; tokens like{{city}} may be filled with non-ASCII values.
pptx_read.py OUT.pptx --outline and checkslide count, texts, tables, notes, and chart values match intent.
--images DIR then file-size check confirms pictures embedded.pptx_render.py deck.pptx --outdir ./renderand review each PNG with vision_analyze — this catches overlapping shapes, truncated text, and color problems the outline cannot. If the render tools are missing, the script says so; rely on the outline.
python -m pytest tests/ -q (requires python-pptx + pytest).
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 3,368 | 4,211 | +25% | 1 | 1 | 0% | 503 | 3,251 | +546% | 0 | 0 | — |
case-02 | fail→fail | 13,458 | 4,605 | -66% | 1 | 1 | 0% | 2,909 | 3,356 | +15% | 0 | 0 | — |
case-03 | fail→fail | 26,613 | 4,206 | -84% | 1 | 1 | 0% | 6,207 | 3,205 | -48% | 0 | 0 | — |
case-04 | pass→pass | 10,648 | 3,592 | -66% | 1 | 1 | 0% | 2,334 | 3,699 | +58% | 0 | 0 | — |
case-05 | fail→pass | 9,893 | 5,759 | -42% | 1 | 1 | 0% | 1,981 | 4,144 | +109% | 0 | 0 | — |
case-06 | pass→pass | 9,149 | 5,069 | -45% | 1 | 1 | 0% | 1,772 | 3,924 | +121% | 0 | 0 | — |
case-07 | fail→pass | 6,905 | 3,136 | -55% | 1 | 1 | 0% | 1,226 | 3,522 | +187% | 0 | 0 | — |
case-08 | fail→pass | 6,731 | 2,274 | -66% | 1 | 1 | 0% | 1,311 | 3,372 | +157% | 0 | 0 | — |
case-09 | fail→pass | 9,375 | 1,701 | -82% | 1 | 1 | 0% | 1,983 | 3,309 | +67% | 0 | 0 | — |
case-10 | fail→pass | 8,219 | 8,378 | +2% | 1 | 1 | 0% | 1,704 | 3,820 | +124% | 0 | 0 | — |
case-11 | fail→fail | 8,062 | 4,244 | -47% | 1 | 1 | 0% | 1,562 | 3,741 | +140% | 0 | 0 | — |
case-12 | pass→fail | 8,807 | 2,340 | -73% | 1 | 1 | 0% | 1,625 | 3,443 | +112% | 0 | 0 | — |
case-13 | fail→pass | 4,384 | 2,189 | -50% | 1 | 1 | 0% | 936 | 3,376 | +261% | 0 | 0 | — |
case-14 | fail→fail | 6,093 | 3,828 | -37% | 1 | 1 | 0% | 1,190 | 3,780 | +218% | 0 | 0 | — |
case-15 | fail→pass | 6,815 | 1,756 | -74% | 1 | 1 | 0% | 1,269 | 3,286 | +159% | 0 | 0 | — |
case-16 | fail→fail | 7,984 | 2,391 | -70% | 1 | 1 | 0% | 1,672 | 3,390 | +103% | 0 | 0 | — |
case-17 | fail→fail | 9,671 | 4,226 | -56% | 1 | 1 | 0% | 1,954 | 3,210 | +64% | 0 | 0 | — |
case-18 | fail→pass | 11,255 | 2,581 | -77% | 1 | 1 | 0% | 2,139 | 3,434 | +61% | 0 | 0 | — |
case-19 | fail→fail | 20,520 | 4,012 | -80% | 1 | 1 | 0% | 4,130 | 3,694 | -11% | 0 | 0 | — |
case-20 | pass→pass | 13,436 | 4,612 | -66% | 1 | 1 | 0% | 2,247 | 3,725 | +66% | 0 | 0 | — |
case-21 | pass→pass | 3,916 | 2,282 | -42% | 1 | 1 | 0% | 828 | 3,406 | +311% | 0 | 0 | — |
case-22 | pass→pass | 9,132 | 3,349 | -63% | 1 | 1 | 0% | 1,717 | 3,572 | +108% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +32 percentage points is the difference between those two pass rates over the 18 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/11/2026 | +45% |
| gemini-3.6-flash | verified | 8/7/2026 | +45% |
Other measured skills in the registry, with their headline benchmark lift.