pptx

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

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/Aadi-110i/PEP-PROJECT --skill pptx-aadi-110i
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/Aadi-110i/PEP-PROJECT/tree/main/skills/pptx
Command: npx skills add https://github.com/Aadi-110i/PEP-PROJECT --skill pptx-aadi-110i

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with .pptx files programmatically is error-prone: templates break, layouts look generic, and visual defects slip through without inspection. This Skill provides a complete workflow for reading, editing, and creating PowerPoint presentations with built-in design guidance and mandatory QA. ## Core Features & Use Cases - Read and analyze presentations: Extract text with markitdown, generate thumbnail grids, and unpack raw XML for inspection. - Template-based editing: Unpack, duplicate, reorder, and edit slides at the XML level, then clean and repack with schema validation. - Create from scratch: Build decks with pptxgenjs using curated color palettes, typography pairings, charts, icons, and layout patterns. - Mandatory visual QA: Convert slides to images and inspect for overflow, overlap, contrast, and placeholder leftovers before delivery. - Use Case: Turn a quarterly business review outline into a polished 12-slide deck by applying a template, replacing placeholder content, and running visual QA on every slide. ## Quick Start Ask the AI to create a presentation from your outline or edit an existing .pptx file, and it will apply this skill's workflow automatically.

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 .pptx file in Python?

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

How do I create a PowerPoint presentation from scratch programmatically?

Use the pptxgenjs JavaScript library to define slides, text, shapes, charts, and images, then write the file with pres.writeFile. The skill's pptxgenjs.md guide covers layouts, styling, and common pitfalls.

How do I edit an existing PowerPoint template without breaking it?

Unpack the .pptx with unpack.py, duplicate or reorder slides using add_slide.py, edit slide XML content, then run clean.py and pack.py. The pack step validates against OOXML schemas and auto-repairs common issues.

Why does my generated pptx file appear corrupt in PowerPoint?

Corruption usually comes from hex colors with a '#' prefix, opacity encoded in 8-character color strings, negative shadow offsets, or broken relationship references. The pack.py validator detects and repairs many of these issues automatically.

Can I convert PowerPoint slides to images for review?

Yes. Convert the .pptx to PDF with LibreOffice (soffice --headless --convert-to pdf), then run pdftoppm -jpeg -r 150 to produce one image per slide for visual inspection.

What are the limitations of pptxgenjs for slide design?

pptxgenjs does not natively support gradient fills, so gradient images must be used as backgrounds instead. Rounded rectangles also misalign with rectangular accent overlays, so plain rectangles are recommended for bordered card designs.