pptx

Automate PPTX creation, editing, and analysis with Python and Node tools.

Updated Dec 21, 2025
One-click install
npx skills add https://github.com/Takaaki-Yokoyama/skills --skill pptx-takaaki-yokoyama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/Takaaki-Yokoyama/skills/tree/main/pptx
Command: npx skills add https://github.com/Takaaki-Yokoyama/skills --skill pptx-takaaki-yokoyama

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-pptx, Pillow, playwright, pptxgenjs, sharp.

What problem does it solve?

This Skill provides end-to-end tooling to create, edit, and analyze PowerPoint presentations (.pptx) with template-driven design, on-demand content manipulation, and OOXML-aware editing workflows.

Core Features & Use Cases

  • Template-based slide creation: Generate decks from professional templates to ensure branding consistency.
  • Content inventory & replacement: Extract structured text inventories and safely replace content while preserving formatting.
  • Slide orchestration: Rearrange, duplicate, and prune slides to assemble the final deck.
  • OOXML editing & validation: Modify slides at the OOXML level and run integrity checks on relationships and content types.

Quick Start

Use this skill to assemble a templated deck: extract inventory, rearrange slides, and apply replacements using the provided scripts (inventory.py, rearrange.py, replace.py). For example:

  • python scripts/inventory.py deck.pptx inventory.json
  • python scripts/rearrange.py template.pptx final.pptx 0,2,2,4
  • python scripts/replace.py final.pptx inventory.json final.out.pptx

Frequently Asked Questions about pptx

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

FAQPage Schema
How do I automate PPTX creation from a template using python-pptx?

Automate PPTX creation by running inventory.py to extract text, rearrange.py to map slide order, and replace.py to inject content using python-pptx, producing a final templated deck.

What is OOXML validation for PowerPoint slides and when do I need it?

OOXML validation checks PPTX relationships and content types for structural integrity. You need it when editing slides at the OOXML level to prevent file corruption in generated decks.

Can I extract and replace text in PowerPoint slides while preserving formatting?

Yes, extract a structured text inventory from the PPTX and apply replacements via replace.py, which preserves original formatting while updating content across the presentation slides.

Does this PPTX automation workflow work with both Python and Node tools?

Yes, the workflow integrates python-pptx and Pillow with pptxgenjs and Playwright, enabling cross-environment template-driven deck generation, slide orchestration, and OOXML-aware editing.

What is the best way to rearrange and duplicate slides in a large presentation library?

Use rearrange.py to rearrange, duplicate, and prune slides by passing index sequences like 0,2,2,4, assembling final decks from large slide libraries efficiently via command line.

What are the limitations of editing PPTX files at the OOXML level?

OOXML-level PPTX editing risks breaking relationships and content types if not validated. Run integrity checks after modifying slide XML to ensure the presentation file remains structurally sound.