pptx

Generate and edit PowerPoint PPTX files with Python scripts.

Updated Mar 24, 2025
One-click install
npx skills add https://github.com/Leon0050/m_pro --skill pptx-leon0050
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/Leon0050/m_pro/tree/main/llm/trae/pptx
Command: npx skills add https://github.com/Leon0050/m_pro --skill pptx-leon0050

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pptxgenjs, playwright, sharp, defusedxml, Pillow, python-pptx, and includes scripts (resource) components.

What problem does it solve?

This Skill automates PowerPoint PPTX generation, editing, and content alignment for professional decks.

Core Features & Use Cases

  • Automated PPTX creation, editing, and analysis workflows with template support and content replacement.
  • Inventory-driven text replacement, slide ordering, and layout mapping to ensure consistent decks at scale.
  • Real-world use case: generate a 12-slide investor deck from a template, automatically populate sections, and apply a uniform design.

Quick Start

Create a new presentation from a template and apply inventory-driven replacements to produce the final deck.

Frequently Asked Questions about pptx

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

FAQPage Schema
How do I automate PowerPoint PPTX generation and populate slides from a template?

Automate PowerPoint PPTX generation by using Python scripts to create new slides from templates and apply inventory-driven text replacements. This workflow populates sections automatically to produce consistent professional decks at scale.

Can I batch update slide text and apply inventory replacements across multiple PPTX presentations?

Yes, you can batch process presentations using inventory-driven replacements to update slide text and ensure consistent formatting. The scripts parse PPTX files, apply text substitutions, and preserve the original layout mapping across all decks.

What's the best way to modify slide ordering and layout mapping in existing PowerPoint files?

The best way to modify slide ordering is by running dedicated scripts like rearrange.py that parse the PPTX structure. These scripts remap layouts and reorder slides programmatically while preserving the underlying template formatting.

Does this workflow support converting HTML content into PowerPoint slides?

Yes, the workflow includes an html2pptx.js script designed to convert HTML content into PowerPoint slides. This allows you to map web-based layouts directly into PPTX format while maintaining content alignment.

What Python and JavaScript libraries are needed to parse and edit PPTX files programmatically?

You need python-pptx and Pillow for Python-based PPTX parsing and image processing, plus pptxgenjs and playwright for JavaScript generation and browser automation. Sharp and defusedxml handle image manipulation and secure XML parsing.

Can I generate a full investor deck automatically by applying inventory replacements to a template?

Yes, you can generate a complete investor deck by defining a template and supplying an inventory of content replacements. The scripts populate the 12-slide template automatically, applying uniform design and validating the final PPTX output.