pptx

Create, edit, and validate PowerPoint .pptx presentations via XML manipulation and pptxgenjs.

Updated May 28, 2026
One-click install
npx skills add https://github.com/changfengpro/agent-skills --skill pptx-changfengpro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/changfengpro/agent-skills/tree/main/skills/pptx
Command: npx skills add https://github.com/changfengpro/agent-skills --skill pptx-changfengpro

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with .pptx files programmatically is error-prone: extracting content, editing slides inside templates, and building decks from scratch all require deep knowledge of OOXML structure, and small mistakes corrupt the file. This Skill provides a complete workflow for reading, editing, and generating PowerPoint presentations with built-in validation and visual QA. ## Core Features & Use Cases - Content Extraction & Analysis: Extract text with markitdown, generate thumbnail grids of slides, and unpack raw XML for inspection. - Template-Based Editing: Unpack a .pptx, duplicate or reorder slides, edit slide XML content, clean orphaned files, and repack with schema validation and auto-repair. - Creating Decks from Scratch: Build presentations with pptxgenjs including shapes, charts, tables, icons, images, and slide masters, guided by design palettes and typography rules. - Use Case: Given a corporate template deck and a project brief, map content to varied slide layouts, replace all placeholder text, then run automated content and visual QA to catch overflow, overlap, and leftover placeholders before delivery. ## Quick Start Use the pptx skill to create a five-slide pitch deck about our product launch with a dark title slide and varied layouts.

Frequently Asked Questions about pptx

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

FAQPage Schema
How do I extract text from a PowerPoint .pptx file?

Run python -m markitdown presentation.pptx to extract all text content from a .pptx file. For a visual overview of slide layouts, use the thumbnail.py script to generate a labeled grid of slide images.

How do I edit an existing PowerPoint template programmatically?

Unpack the .pptx with unpack.py, modify slides by editing the XML files directly, reorder slides in presentation.xml, then run clean.py and pack.py to rebuild the file. The pack step validates against OOXML schemas and auto-repairs common issues.

How do I create a PowerPoint presentation from scratch with code?

Use the pptxgenjs JavaScript library to add slides, text, shapes, charts, tables, and images programmatically. Install it with npm install -g pptxgenjs and follow the layout and formatting patterns in the pptxgenjs guide.

Why does my generated pptx file appear corrupt in PowerPoint?

Common causes include using # prefixes in hex colors, encoding opacity in 8-character hex strings, negative shadow offsets, or broken relationship references. The pack.py validator detects broken references, duplicate IDs, and XSD violations before finalizing the file.

Can I convert PowerPoint slides to images for visual inspection?

Yes, convert the .pptx to PDF with LibreOffice using soffice --headless --convert-to pdf, then run pdftoppm -jpeg -r 150 to produce one image per slide. This enables visual QA for overflow, overlap, and contrast issues.