pptx

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with PowerPoint files programmatically is error-prone: templates break, placeholders linger, layouts look generic, and visual defects slip through. This Skill provides a complete workflow for reading, editing, and creating .pptx files with built-in QA so decks come out polished and valid. ## 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 a .pptx, duplicate or reorder slides, edit slide XML in place, clean orphaned files, and repack with schema validation. - Create decks from scratch: Use pptxgenjs to build slides with text, shapes, images, icons, tables, and styled charts, guided by curated color palettes and typography rules. - Mandatory visual QA: Convert slides to images via LibreOffice and pdftoppm, then inspect for overflow, overlap, contrast, and leftover placeholder text. - Use Case: Given a corporate template and a meeting brief, produce a branded pitch deck with varied layouts, then verify every slide renders cleanly before delivery. ## Quick Start Use the pptx skill to create a five-slide pitch deck about our product launch using a dark navy and coral color scheme.

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, or unpack the file to inspect raw slide XML.

How do I edit an existing PowerPoint template programmatically?

Unpack the .pptx with scripts/office/unpack.py, then duplicate, reorder, or delete slides by editing presentation.xml and using add_slide.py. Edit each slide's XML content, run clean.py to remove orphaned files, and repack with pack.py for validation.

How do I create a PowerPoint presentation from scratch in JavaScript?

Use the pptxgenjs library: create a new presentation, set a layout like LAYOUT_16x9, and add slides with text, shapes, images, tables, and charts. Never use # prefixes in hex colors or unicode bullet characters, as these corrupt the output file.

Why does my generated pptx file appear corrupt in PowerPoint?

Common causes include hex colors with # prefixes, opacity encoded in 8-character color strings, negative shadow offsets, and broken relationship references after manual slide copying. Use pack.py with validation to auto-repair issues and catch broken references.

How do I visually check slides for layout problems?

Convert the .pptx to PDF with soffice, then to images with pdftoppm at 150 DPI. Inspect the images for overlapping elements, text overflow, low contrast, uneven spacing, and leftover placeholder text, then fix and re-render affected slides.

What dependencies are required to work with pptx files?

You need markitdown[pptx] for text extraction, Pillow for thumbnail grids, pptxgenjs via npm for creating decks, LibreOffice (soffice) for PDF conversion, and Poppler's pdftoppm for rendering slide images.