pptx

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

Updated Oct 7, 2022
One-click install
npx skills add https://github.com/tamagusko/linux-cfg --skill pptx-tamagusko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/tamagusko/linux-cfg/tree/main/dotfiles/claude/skills/pptx
Command: npx skills add https://github.com/tamagusko/linux-cfg --skill pptx-tamagusko

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 overlap 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, clean orphaned files, and repack with schema validation. - Create decks from scratch: Generate presentations with pptxgenjs, including charts, tables, icons, images, and styled layouts with curated color palettes and typography guidance. - Mandatory visual QA: Convert slides to images via LibreOffice and pdftoppm, then inspect for overflow, overlap, contrast, and leftover placeholders in a fix-and-verify loop. - Use Case: Given a corporate template deck and a project brief, produce a polished 10-slide pitch deck by mapping content to varied template layouts, editing slide XML, and verifying every rendered slide. ## Quick Start Use the pptx skill to create a five-slide presentation about our quarterly results and save it as results.pptx.

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 raw access to the underlying structure, unpack the file with the provided unpack.py script to inspect slide XML directly.

How do I create a PowerPoint presentation from scratch programmatically?

Use the pptxgenjs library to build slides with text, shapes, images, charts, and tables in JavaScript, then write the result to a .pptx file. The skill's pptxgenjs.md guide covers layouts, styling, and common pitfalls like hex color formatting.

How do I edit slides in an existing PowerPoint template?

Unpack the .pptx with unpack.py, duplicate or reorder slides using add_slide.py and the sldIdLst in presentation.xml, edit each slide's XML, then clean orphaned files and repack with validation. Never manually copy slide files since relationships and content types must stay consistent.

Why does my generated pptx file appear corrupt in PowerPoint?

Common causes include using '#' prefixes on hex colors, encoding opacity in 8-character hex strings, negative shadow offsets, or broken relationship references. The pack.py script validates against OOXML schemas and auto-repairs issues before producing the final file.

How do I visually check generated slides for layout problems?

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