pptx

Unpack, edit, and repack PPTX files as editable XML.

28|2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/thompson0012/agents-stack --skill pptx-thompson0012
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/thompson0012/agents-stack/tree/main/skills-optional/using-documents/pptx
Command: npx skills add https://github.com/thompson0012/agents-stack --skill pptx-thompson0012

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lxml, Pillow, and includes scripts (resource) components.

What problem does it solve?

PowerPoint deck creation, editing, templating, and QA are often manual, error-prone, and time-consuming; this skill provides a reproducible workflow to automate unpacking, editing, and re-packing PPTX presentations.

Core Features & Use Cases

  • Unpack a PPTX to editable XML with unpack.py for templating, customization, and QA.
  • Create new slides from layouts or duplicate existing slides with slides.py.
  • Reassemble edited content into a valid PPTX using pack.py; verify with slide thumbnail generation via the provided tools.
  • Use cases include templated deck creation, XML-level customization, and end-to-end deck QA.

Quick Start

Unpack a PPTX with the unpack tool, edit the XML as needed, then re-pack with the pack tool.

Frequently Asked Questions about pptx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate PowerPoint PPTX creation and editing?

Automate PowerPoint PPTX creation and editing by using Python scripts to unpack presentations into editable XML, modify slide structures, and re-pack them into valid deck files. This handles slide generation, XML-level customization, and visual QA tasks reproducibly.

How does XML-level PowerPoint slide templating work?

XML-level PowerPoint slide templating works by unpacking the PPTX file structure to expose underlying XML components. You can modify layout definitions, text, and resources directly before re-packing the modified XML back into a valid PPTX presentation deck.

Do I need Python and lxml to edit PPTX slides programmatically?

Yes, you need Python and lxml to edit PPTX slides programmatically. The workflow relies on Python scripts with lxml for XML parsing and modification, and Pillow for handling image resources during slide generation and visual QA thumbnail creation.

Can I duplicate existing slides in a PowerPoint deck using Python?

Yes, you can duplicate existing slides in a PowerPoint deck using Python. The provided slide generation scripts can create new slides from existing layouts or duplicate current slides, allowing automated deck expansion and content replication within the PPTX structure.

What is the best way to perform visual QA on generated PowerPoint decks?

The best way to perform visual QA on generated PowerPoint decks is by generating slide thumbnails after re-packing the PPTX. This verifies that XML edits, layout modifications, and resource management render correctly before finalizing the presentation.

Why does my PPTX file break after manual XML editing?

PPTX files often break after manual XML editing due to invalid XML structure or incorrect resource references. Using a scripted unpack and re-pack workflow ensures dependencies are managed and XML modifications maintain schema validity, preventing file corruption.