Agent skill · writing content · minimax-ai
ppt-editing-skill
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.
Why this skill is useful
Adds 4 executable scripts for PPTX editing workflows that automate complex XML manipulations not easily inferred by the AI.
What it needs
Requires python installed locally. About 4k tokens when loaded. Last updated 2026-04-18. 13,260 stars on the source repository.
What this skill does
Editing Presentations Template-Based Workflow When using an existing presentation as a template: 1. Copy and analyze: Review template.md to see placeholder text and slide structure. 2. 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). 3. Unpack 4. Build presentation (do this yourself, not with subagents): Delete unwanted slides (remove from <p:sldIdLst>) Duplicate slides you want to reuse (addslide.py) Reorder slides in <p:sldIdLst> Complete all structural changes before step 5 5. 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. 6. Clean 7. 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. Minimum expected deliverable: edited.pptx. --- Scripts Script Purpose -------- --------- unpack.py Extract and pretty-print PPTX addslide.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. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills minimax-ai/ppt-editing-skill