Edit PowerPoint decks programmatically with python-pptx: build from templates, fill layouts and placeholders, enforce brand fonts and colors, and generate slide-by-slide change reports. Triggers when the user asks to create, edit, audit, restyle, or diff a .pptx deck, apply a template, or lock a deck to brand.
./install.sh pptx-slide-editingname: "pptx_slide_editing" description: "Edit PowerPoint decks programmatically with python-pptx: build from templates, fill layouts and placeholders, enforce brand fonts and colors, and generate slide-by-slide change reports. Triggers when the user asks to create, edit, audit, restyle, or diff a .pptx deck, apply a template, or lock a deck to brand." metadata: { "includeInPrompt": true }
Make real .pptx edits that stay editable in PowerPoint: slides built from the template's own layouts and placeholders, brand fonts and colors enforced by a check script, and review copies diffed slide by slide. The skill ships three CLIs in bin/ that do the auditing, brand-checking, and diffing, plus worked recipes in references/ for everything else.
Presentation("brand-template.pptx") inherits the brand's fonts, colors, and layouts. Only use bare Presentation() for throwaway scripts.bin/pptx_inspect.py deck.pptx first. It lists every layout and placeholder (name, idx, type) plus a per-slide inventory of shapes, fonts, and explicitly-set colors. Never assume layout index 1 means "Title and Content" in someone else's template; resolve layouts by name and fail loudly listing the names when a lookup misses.slide.shapes.title, write into slide.placeholders[idx] text frames, drop pictures/tables/charts into content placeholders. Free text boxes and raw coordinates are the last resort, not the default. All geometry goes through Inches/Pt/Cm, never raw EMU.brand.json and run bin/pptx_brandcheck.py brand.json deck.pptx after every edit. Exit 0 is clean, 1 lists violations with slide and shape names. Details: references/brand-locks.md.bin/pptx_diff.py original.pptx revised.pptx --md report.md for a slide-by-slide change report covering text, tables, chart titles and series values, and speaker notes. Details: references/change-reports.md.references/recipes.md. references/building-decks.md covers the layout/placeholder rules.pptx_brandcheck.py against the project's brand.json when one exists.pptx_diff.py, never a claim that edits were "tracked" natively.python3 -m py_compile) and be dry-run tested before shipping.add_picture.SKILL.md tight. Bulky how-to material goes in references/; ship new recipes there, not here.publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e
No ratings yet — be the first to rate it.