pptx

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markitdown, Pillow, defusedxml, lxml, pptxgenjs, react-icons, sharp, 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 generating decks from scratch all require deep knowledge of OOXML structure, and visual defects like overflow or low contrast are easy to miss without systematic QA. ## Core Features & Use Cases - Read and analyze presentations: Extract text with markitdown, render thumbnail grids, or 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. - Create decks from scratch: Generate presentations with pptxgenjs including charts, tables, icons, images, and styled layouts guided by built-in design palettes and typography rules. - Use Case: Take an existing branded template, replace placeholder content across 15 slides with new quarterly results, then run automated visual QA by converting slides to images and inspecting for overlaps and contrast issues. ## Quick Start Use the pptx skill to create a five-slide pitch deck about our product launch with a dark title slide and chart on the metrics slide.

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 script to render a labeled grid of slides, or unpack the file to inspect raw slide XML directly.

How do I edit an existing PowerPoint template programmatically?

Unpack the .pptx into XML files, duplicate or delete slides via the add_slide script and the sldIdLst in presentation.xml, edit each slide's XML content, clean orphaned files, then repack with validation against the original file.

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

Use the pptxgenjs library to define slides with text, shapes, images, charts, and tables positioned in inches. The skill's guide covers layouts, styling options, and common pitfalls like hex colors with # prefixes that corrupt files.

Why does my generated pptx file appear corrupt in PowerPoint?

Corruption commonly comes from using # prefixes in hex colors, encoding opacity in 8-character color strings, negative shadow offsets, or broken relationship references. The pack script validates XML against OOXML schemas and auto-repairs common issues.

Can I convert PowerPoint slides to images for visual inspection?

Yes, convert the .pptx to PDF with LibreOffice's soffice in headless mode, then use pdftoppm to render each page as a JPEG at 150 DPI. This produces individual slide images suitable for visual QA of layout and contrast issues.