pptx

Create, edit, and analyze PowerPoint presentations using HTML conversion and OOXML manipulation.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/ramshan00/hackaton --skill pptx-ramshan00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/ramshan00/hackaton/tree/main/Hackathon2-phase2/.claude/skills/pptx
Command: npx skills add https://github.com/ramshan00/hackaton --skill pptx-ramshan00

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markitdown, pptxgenjs, playwright, react-icons, sharp, libreoffice, poppler-utils, defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve? Working with .pptx files programmatically is complex because they are ZIP archives of XML files. This Skill provides structured workflows for creating new presentations from scratch, editing existing slides at the raw XML level, applying existing templates, and extracting content for analysis. ## Core Features & Use Cases - HTML-to-PowerPoint Creation: Design slides in HTML with precise positioning, then convert them to .pptx using the html2pptx.js library with PptxGenJS for charts, tables, and images. - Raw OOXML Editing: Unpack presentations, edit slide XML directly (comments, speaker notes, layouts, animations), validate changes, and repack into valid .pptx files. - Template-Based Generation: Analyze template decks with thumbnail grids and text inventories, then duplicate, reorder, and populate slides with replacement content. - Use Case: A user asks for a quarterly sales deck matching their company template. The Skill extracts the template's layouts, maps content to appropriate slide designs, replaces placeholder text with formatted content, and validates the output visually via thumbnails. ## Quick Start Create a 5-slide PowerPoint presentation about our Q4 results using a teal and coral color scheme with a bar chart of quarterly revenue.

Frequently Asked Questions about pptx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a PowerPoint presentation from HTML?

Design each slide as an HTML file with fixed body dimensions (720pt x 405pt for 16:9), then use the html2pptx.js library with PptxGenJS to convert them into slides. Charts and tables are added to placeholder areas via the PptxGenJS API before saving with pptx.writeFile().

How do I edit an existing .pptx file programmatically?

Unpack the .pptx with the unpack.py script to expose its OOXML structure, edit the slide XML files directly, validate changes with validate.py against the original, then repack with pack.py. This is required for comments, speaker notes, layouts, and animations.

How do I extract text from a PowerPoint file?

Run python -m markitdown on the .pptx file to convert its text content to Markdown. For structured extraction with positions, fonts, and formatting, use the inventory.py script which outputs a JSON inventory of all text shapes.

Can I use CSS gradients in HTML slides for PowerPoint?

No, CSS gradients do not convert to PowerPoint and cause validation errors. Rasterize gradients as PNG images using Sharp first, then reference them as background images in the HTML.

Why does my generated pptx file fail to open in PowerPoint?

Common causes include using # prefixes on hex colors in PptxGenJS, broken relationship references after slide duplication, or missing Content_Types.xml declarations. Always run validate.py after OOXML edits and check _rels files for orphaned references.

How do I apply an existing PowerPoint template to new content?

Extract the template's text and generate thumbnail grids to inventory its layouts, then use rearrange.py to duplicate and reorder template slides, and replace.py with a JSON file of formatted paragraphs to populate placeholders while preserving styling.