pptx-editor

Edit and add slides to PowerPoint files using python-pptx while matching existing design tokens.

11|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/qa-aman/next-leap-claude-code --skill pptx-editor-qa-aman
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pptx-editor
Source: https://github.com/qa-aman/next-leap-claude-code/tree/main/.claude/skills/pptx-editor
Command: npx skills add https://github.com/qa-aman/next-leap-claude-code --skill pptx-editor-qa-aman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-pptx, and includes scripts (resource) and references (resource) components.

What problem does it solve? Programmatic PowerPoint edits often produce slides that look visually inconsistent with the rest of the deck because of mismatched backgrounds, fonts, colors, and shape styling. This Skill enforces an inspect-edit-verify workflow so new or modified slides match the existing deck's design system exactly. ## Core Features & Use Cases - Deck Inspection: Run the inspect-deck.py script to extract every shape, text style, color, position, and font across all slides, producing a design token summary. - Design-Consistent Editing: Add, edit, reorder, or delete slides while matching background colors, theme font inheritance, decorative shapes, and Emu-based positioning. - Verification Workflow: Compare new slides against existing ones to confirm backgrounds, text styles, and decorative elements align. - Use Case: A PM needs to add a closing "thank you" slide with a LinkedIn hyperlink to a dark-themed workshop deck. The Skill inspects the deck first, then builds the new slide with the exact background color, accent bar, and font inheritance of the existing slides. ## Quick Start Use the pptx-editor skill to add a thank-you slide to the end of 02-presentation/deck.pptx that matches the existing design.

Frequently Asked Questions about pptx-editor

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

FAQPage Schema
How do I add a slide to a PowerPoint file with python-pptx?▼

Use prs.slides.add_slide(layout) with the same layout as existing slides, then set the slide background explicitly since the Blank layout does not inherit the master background. Match fonts, colors, and decorative shapes from the existing deck.

How do I edit text on existing PowerPoint slides in Python?▼

Locate the shape by name or by iterating over slide.shapes, then modify shape.text_frame.paragraphs[n].runs[m]. Preserve the original bold value, since None means inherit from style while True and False are explicit settings.

Why does my new PowerPoint slide look different from the existing ones?▼

Common causes are a missing explicit background fill, setting font.name when originals use theme fonts, or mismatched decorative shape line styles. Inspect the deck first and copy exact Emu positions, colors, and line settings.

Can python-pptx reorder or delete slides?▼

python-pptx has no native reorder API, so you must reorder elements in prs.slides._sldIdLst directly. To delete, drop the relationship via prs.part.drop_rel and remove the entry from _sldIdLst, deleting from highest index first.

How do I add a hyperlink to text in a PowerPoint slide?▼

Set run.hyperlink.address on the text run rather than using shape-level links. Add the run, set its text and styling, then assign the URL to run.hyperlink.address.