pptx

Create, edit, and inspect PowerPoint .pptx presentations using OOXML manipulation and pptxgenjs.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill pptx-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/pptx
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill pptx-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markitdown, Pillow, pptxgenjs, playwright, sharp, defusedxml, react-icons, 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 new decks from scratch each require different tools and deep knowledge of the Office Open XML format. 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 a .pptx, duplicate or reorder slides, edit slide XML content, clean orphaned resources, and repack into a valid file. - Create decks from scratch: Generate presentations with pptxgenjs or convert HTML slides to PowerPoint via the html2pptx library, including charts, tables, images, and icons. - Design and QA guidance: Curated color palettes, typography pairings, layout patterns, and a required render-and-inspect verification loop to catch overflow, overlap, and contrast issues. - Use Case: Ask for a quarterly sales pitch deck and receive a styled .pptx with charts, icons, and consistent layouts that has been visually verified slide by slide. ## Quick Start Create a 10-slide pitch deck about our product roadmap as a .pptx file with charts and a consistent color palette.

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?

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

How do I edit an existing PowerPoint template programmatically?

Unpack the .pptx with the office/unpack.py script, duplicate or reorder slides using add_slide.py, edit the slide XML content directly, then clean orphaned files and repack with pack.py. The workflow preserves template layouts and relationships.

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

Use the pptxgenjs library to define slides, add text, shapes, images, charts, and tables, then write the file. Alternatively, design slides in HTML and convert them with the html2pptx library for precise positioning.

Can I convert HTML slides to PowerPoint?

Yes, the html2pptx.js library renders HTML files with Playwright and maps elements to pptxgenjs slide objects with accurate positioning. All text must be wrapped in p, h1-h6, ul, or ol tags, and CSS gradients must be pre-rasterized as PNG images.

Why does my generated .pptx file get corrupted?

Common causes include using # prefixes on hex colors in pptxgenjs, encoding opacity in 8-character hex strings, negative shadow offsets, and reusing option objects across calls. Follow the documented pitfalls and validate with the pack script.

How do I visually check generated slides for layout problems?

Convert the .pptx to PDF with LibreOffice via soffice.py, then render pages to JPEG images with pdftoppm. Inspect the images for overlapping elements, text overflow, low contrast, and inconsistent spacing before finalizing.