python-pptx-generator

Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content.

31,392 stars

Best use case

python-pptx-generator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content.

Teams using python-pptx-generator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/python-pptx-generator/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/python-pptx-generator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/python-pptx-generator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How python-pptx-generator Compares

Feature / Agentpython-pptx-generatorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 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:

1. Title slide
2. Agenda or context
3. Core teaching or business points
4. 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

```text
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

```text
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
- ✅ Write audience-appropriate bullet points instead of placeholders
- ✅ Save the output file explicitly in the script, for example `output.pptx`
- ✅ Keep slide titles short and the bullet hierarchy readable
- ❌ Do not return partial snippets that require the user to assemble the rest
- ❌ Do not invent unsupported styling APIs without checking `python-pptx` capabilities

## Security & Safety Notes

- Install `python-pptx` only in an environment you control, for example a local virtual environment
- If the user will run the script on a shared machine, choose a safe output path and avoid overwriting existing presentations without confirmation
- If the request includes proprietary or sensitive presentation content, keep it out of public examples and sample filenames

## Common Pitfalls

- **Problem:** The generated script uses placeholder text instead of real content  
  **Solution:** Draft the narrative first, then turn each slide into specific titles and bullets

- **Problem:** The deck uses too many slides for the requested audience  
  **Solution:** Compress the outline to the most important 4 to 8 slides unless the user explicitly wants a longer deck

- **Problem:** The script forgets to save or print a completion message  
  **Solution:** Always end with `prs.save(...)` and a short success print

## Related Skills

- `@pptx-official` - Use when the task is about inspecting or editing existing PowerPoint files
- `@docx-official` - Use when the requested output should be a document instead of a slide deck

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Related Skills

magic-ui-generator

31392
from sickn33/antigravity-awesome-skills

Utilizes Magic by 21st.dev to generate, compare, and integrate multiple production-ready UI component variations.

UI GenerationClaude

landing-page-generator

31392
from sickn33/antigravity-awesome-skills

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

Front-End DevelopmentClaudeCursorGemini

k8s-manifest-generator

31392
from sickn33/antigravity-awesome-skills

Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims.

DevOps ToolsClaude

dbos-python

31392
from sickn33/antigravity-awesome-skills

Guide for building reliable, fault-tolerant Python applications with DBOS durable workflows. Use when adding DBOS to existing Python code, creating workflows and steps, or using queues for concurrency control.

Developer ToolsClaude

biopython

31392
from sickn33/antigravity-awesome-skills

Biopython is a comprehensive set of freely available Python tools for biological computation. It provides functionality for sequence manipulation, file I/O, database access, structural bioinformatics, phylogenetics, and many other bioinformatics tasks.

n8n-code-python

31355
from sickn33/antigravity-awesome-skills

Write Python code in n8n Code nodes. Use when writing Python in n8n, using _input/_json/_node syntax, working with standard library, or need to understand Python limitations in n8n Code nodes.

Code GenerationClaude

viral-generator-builder

31392
from sickn33/antigravity-awesome-skills

Expert in building shareable generator tools that go viral - name generators, quiz makers, avatar creators, personality tests, and calculator tools. Covers the psychology of sharing, viral mechanics, and building tools people can't resist sharing with friends.

temporal-python-testing

31392
from sickn33/antigravity-awesome-skills

Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios.

temporal-python-pro

31392
from sickn33/antigravity-awesome-skills

Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment.

seo-aeo-schema-generator

31392
from sickn33/antigravity-awesome-skills

Generates valid JSON-LD structured data for 10 schema types with rich result eligibility validation and implementation-ready script blocks. Activate when the user wants to generate schema markup, JSON-LD, or structured data for any page.

seo-aeo-meta-description-generator

31392
from sickn33/antigravity-awesome-skills

Writes 3 title tag variants and 3 meta description variants per page with SERP preview, OG tags, and Twitter Card tags. Activate when the user wants to write meta tags, title tags, or social sharing tags for any page.

python-testing-patterns

31392
from sickn33/antigravity-awesome-skills

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.