pptx

Extract, create, edit, and QA PowerPoint .pptx files programmatically.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/pczhao1210/reuseable-agents-and-skills --skill pptx-pczhao1210
Or copy as Structured Prompt for Agentâ–¼
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/pczhao1210/reuseable-agents-and-skills/tree/main/.agents/skills/pptx
Command: npx skills add https://github.com/pczhao1210/reuseable-agents-and-skills --skill pptx-pczhao1210

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Enable reliable automation around PowerPoint (.pptx) files so teams can extract text and assets, adapt templates, create new decks, and perform thorough visual and structural QA without manual slide-by-slide editing.

Core Features & Use Cases

  • Read & Extract: Parse .pptx content, extract text, speaker notes, images, and raw XML for downstream summarization or export.
  • Edit & Template Adaptation: Unpack a presentation, apply deterministic XML edits, remove placeholders, reorder slides, and repack with validation.
  • Create from Scratch: Generate presentations programmatically (pptxgenjs guidance included) when no template exists.
  • Visual QA: Render thumbnails and convert slides to images for visual inspection and checklist-driven QA.
  • File Operations: Split, merge, combine, and repair PPTX packages while validating content types and relationships.

Quick Start

Open presentation.pptx, extract text and thumbnails, list placeholder or layout issues, and produce a cleaned output.pptx for review.

Frequently Asked Questions about pptx

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

FAQPage Schema
How do I extract text and images from a PowerPoint file programmatically?â–¼

To extract text and images from a PowerPoint file, you can parse .pptx content to retrieve text, speaker notes, and raw XML assets. This approach allows downstream summarization and export without manual slide-by-slide editing.

What is the best way to automate PowerPoint template adaptation and slide reordering?â–¼

The best way to automate PowerPoint template adaptation is to unpack the presentation, apply deterministic XML edits using lxml, remove placeholders, reorder slides, and repack with validation. This ensures reliable structural modifications across the deck.

Can I generate slide thumbnails for visual QA from a .pptx file?â–¼

Yes, you can generate slide thumbnails for visual QA from a .pptx file. The process renders slides to images using Pillow and soffice or Poppler-based conversion, enabling visual inspection and checklist-driven quality assurance.

How do you create a new presentation deck from scratch when no template exists?â–¼

To create a new presentation deck from scratch when no template exists, generate slides programmatically using pptxgenjs guidance. This method allows you to build a complete deck automatically without relying on pre-existing layouts.

Does this workflow support splitting and merging PPTX packages while validating content types?â–¼

Yes, this workflow supports splitting, merging, and repairing PPTX packages while validating content types and relationships. It ensures that combined or split decks maintain structural integrity and valid XML definitions throughout the file operations.

Why use defusedxml and lxml when unpacking slides for XML edits?â–¼

You use defusedxml and lxml when unpacking slides for XML edits to ensure secure and deterministic XML validation. This combination prevents XML-based vulnerabilities while applying precise modifications to the internal slide structure.