pptx

Create, edit, and validate PowerPoint .pptx and .potx presentation files.

6|1|Updated Sep 3, 2026
One-click install
npx skills add https://github.com/jasonzhu0922-sketch/agentloop --skill pptx-jasonzhu0922-sketch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/jasonzhu0922-sketch/agentloop/tree/main/packages/agentloop-skills/skills/pptx
Command: npx skills add https://github.com/jasonzhu0922-sketch/agentloop --skill pptx-jasonzhu0922-sketch

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with PowerPoint files programmatically is error-prone: .pptx files are ZIP archives of XML with strict schema rules, and common libraries like pptxgenjs silently produce corrupt files through wrong hex colors, invalid chart axes, or negative shadow offsets. This Skill provides the operational knowledge and scripts to create, edit, theme, and validate decks without corrupting them. ## Core Features & Use Cases - Deck Creation with pptxgenjs: Generate new presentations with correct layouts, colors, charts, icons, and speaker notes while avoiding documented corruption pitfalls. - Template Editing & Theming: Unpack existing decks or .potx templates, duplicate slides with full package bookkeeping, apply unified color/font themes declaratively, and clean orphaned parts. - Validation & Visual QA: Run schema, relationship, and chart validation against an original baseline, then render slides to images for overflow, overlap, and contrast inspection. - Use Case: A user asks to restyle a 40-slide training deck with a new brand palette. The Skill inventories the deck's colors, applies a declarative theme map, validates against the original, and renders every slide for visual review. ## Quick Start Use the pptx skill to create a 10-slide pitch deck about our product roadmap with a dark navy theme and native charts.

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 with pptxgenjs?

Write a Node script that requires pptxgenjs, set pres.layout before adding slides, and use hex colors without # prefixes. After writeFile(), run the validate.py script to catch chart and slide XML defects that PowerPoint would reject.

How do I edit an existing .pptx file or template?

Unzip the .pptx into a directory, edit the slide XML under ppt/slides/, then rezip from inside the directory. Use add_slide.py to duplicate slides with proper registration and clean.py to remove orphaned parts after deletions.

Why does my pptxgenjs file report as corrupt in PowerPoint?

Common causes include hex colors with # prefixes or 8 digits, negative shadow offsets, outEnd data labels on stacked charts, and combo charts missing valAxes or catAxes entries. The validate.py script identifies each fault and names its fix.

Can python-pptx duplicate slides or preserve formatting?

python-pptx cannot duplicate slides; its only entry point is add_slide(layout). Assigning text_frame.text collapses paragraphs into a single unstyled run, so assign run.text instead, and use add_slide.py for duplication with full package bookkeeping.

How do I convert legacy .ppt files to .pptx?

Run the soffice.py wrapper with --headless --convert-to pptx on the .ppt file. Bare soffice hangs in sandboxed environments, so the wrapper manages the user profile and socket shim required for conversion.

How do I check slides for text overflow and visual defects?

Convert the deck to PDF with soffice.py, then run pdftoppm to generate per-slide JPEG images and inspect each one. Check text overflow first, then overlaps, contrast, alignment, and leftover placeholder text.