| name | python-pptx-generator |
| description | Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content. |
| category | development |
| risk | safe |
| source | self |
| source_type | self |
| date_added | 2026-04-06 |
| author | spideyashith |
| tags | ["python","powerpoint","python-pptx","presentations","slide-decks"] |
| tools | ["claude","cursor","gemini","codex"] |
Python PPTX Generator
Overview
Use this skill when the user wants a ready-to-run Python script that creates a PowerPoint presentation with python-pptx.
It focuses on turning a topic brief into a complete slide deck script with real slide content, sensible structure, and a working save step.
When to Use This Skill
- Use when the user wants a Python script that generates a
.pptx file automatically
- Use when the user needs slide content drafted and encoded directly into
python-pptx
- Use when the user wants a quick presentation generator for demos, classes, or internal briefings
How It Works
Step 1: Collect the Deck Brief
Ask for the topic, audience, tone, and target number of slides if the request does not already include them.
If constraints are missing, pick conservative defaults and state them in the generated script comments.
Step 2: Plan the Narrative Arc
Outline the deck before writing code:
- Title slide
- Agenda or context
- Core teaching or business points
- Summary or next steps
Keep the slide count realistic for the requested audience and avoid filler slides.
Step 3: Generate the Python Script
Write a complete script that:
- imports
Presentation from python-pptx
- creates the deck
- selects appropriate built-in layouts
- writes real titles and bullet points
- saves the file with a clear filename
- prints a success message after saving
Step 4: Keep the Output Runnable
The final answer should be a Python code block that can run after installing python-pptx.
Avoid pseudocode, placeholders, or missing imports.
Examples
Example 1: Educational Deck
User: Create a 5-slide presentation on the basics of machine learning for a high school class.
Output: A complete Python script that creates a title slide, overview, core concepts, examples, and recap.
Example 2: Business Briefing
User: Generate a 7-slide deck for sales leadership on Q2 pipeline risks and mitigation options.
Output: A python-pptx script with executive-friendly slide titles, concise bullets, and a final recommendations slide.
Best Practices
- ✅ Use standard
python-pptx layouts unless the user asks for custom positioning