pptx

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

8|3|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/chongdashu/claude-code-skills-demo --skill pptx-chongdashu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/chongdashu/claude-code-skills-demo/tree/main/.claude/skills/document-skills/pptx
Command: npx skills add https://github.com/chongdashu/claude-code-skills-demo --skill pptx-chongdashu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markitdown, pptxgenjs, playwright, react-icons, sharp, libreoffice, poppler-utils, defusedxml, and includes scripts (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 complete workflows for creating new presentations from scratch, editing existing slides at the raw XML level, applying template designs, and extracting content for analysis. ## Core Features & Use Cases - Create from scratch: Convert HTML slides to PowerPoint with accurate positioning using the html2pptx workflow, then add charts, tables, and images via PptxGenJS. - Edit existing files: Unpack the OOXML structure, edit slide XML directly, validate changes, and repack the presentation. - Template-based creation: Analyze template decks with thumbnail grids, duplicate and reorder slides, and replace placeholder text while preserving formatting. - Content analysis: Extract text with markitdown, read speaker notes and comments from raw XML, and generate thumbnail grids for visual review. - Use Case: Ask for a quarterly sales deck and get a branded .pptx with charts, consistent color palettes, and validated layouts, or restyle an existing deck by swapping its template. ## Quick Start Ask the assistant to create a 10-slide PowerPoint presentation about your project with charts and a consistent color theme.

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 programmatically?

Create HTML files for each slide with fixed dimensions (720pt x 405pt for 16:9), then convert them with the html2pptx library and PptxGenJS. Add charts and tables to placeholder areas, and save the result with pptx.writeFile().

How do I edit an existing .pptx file?

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.

Can I extract text from a PowerPoint file?

Yes, run python -m markitdown on the .pptx file to convert its text content to markdown. For speaker notes, comments, and layouts, unpack the file and read the raw XML in ppt/notesSlides and ppt/comments.

Why do CSS gradients not work when converting HTML to PowerPoint?

CSS gradients cannot be represented in PowerPoint and cause validation errors. Rasterize gradients and icons to PNG images with Sharp first, then reference them as background images in the HTML.

What fonts are safe to use in generated presentations?

Only web-safe fonts such as Arial, Helvetica, Times New Roman, Georgia, Courier New, Verdana, Tahoma, Trebuchet MS, and Impact are supported. Custom fonts like Roboto or Segoe UI may cause rendering issues.

How do I reuse an existing template design for a new deck?

Extract template text with markitdown, build a thumbnail grid with thumbnail.py, then use rearrange.py to duplicate and reorder template slides and replace.py to swap placeholder text while preserving formatting.