pptx

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

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

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: templates break, placeholders linger, layouts look generic, and corrupted XML ruins files. This Skill provides a complete workflow for reading, editing, and creating PowerPoint presentations with built-in design guidance and mandatory visual QA. ## Core Features & Use Cases - Read and analyze presentations: Extract text with markitdown, generate thumbnail grids, and unpack raw OOXML for inspection. - Template-based editing: Unpack, duplicate, reorder, and edit slides at the XML level using scripts like add_slide.py, clean.py, and pack.py with schema validation. - Create decks from scratch: Build presentations with pptxgenjs, including charts, tables, icons, images, and slide masters, guided by curated color palettes and typography rules. - Use Case: You receive a branded template and a content outline. The Skill analyzes the template layouts, maps your content to varied slide designs, edits the XML, validates the output, and renders slide images for visual QA before delivery. ## Quick Start Ask the AI to create a polished pitch deck from your outline, or to update an existing .pptx file with new content while preserving its template design.

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, 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 slide XML files directly, duplicate or reorder slides via add_slide.py and the sldIdLst, then run clean.py and pack.py to rebuild a validated file. The pack step auto-repairs common schema issues.

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

Use the pptxgenjs JavaScript library to define slides, text, shapes, charts, tables, and images, then write the file with pres.writeFile. The Skill's pptxgenjs.md reference covers layouts, styling, and common pitfalls like hex color formatting.

Why does my generated pptx file appear corrupt in PowerPoint?

Corruption usually comes from invalid XML, broken relationship references, or pptxgenjs mistakes like using '#' in hex colors or negative shadow offsets. Run the pack.py validation step, which checks XSD schemas, relationship IDs, and content types.

Can I convert PowerPoint slides to images for visual review?

Yes. Convert the .pptx to PDF with LibreOffice (soffice --headless --convert-to pdf), then use pdftoppm to render individual slide images at 150 DPI for visual inspection of layout and overflow issues.