python-pptx-generator
Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content.
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/python-pptx-generator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How python-pptx-generator Compares
| Feature / Agent | python-pptx-generator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
AI Agent for YouTube Script Writing
Find AI agent skills for YouTube script writing, video research, content outlining, and repeatable channel production workflows.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
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
Utilizes Magic by 21st.dev to generate, compare, and integrate multiple production-ready UI component variations.
landing-page-generator
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.
k8s-manifest-generator
Step-by-step guidance for creating production-ready Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, and PersistentVolumeClaims.
dbos-python
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.
biopython
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
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.
viral-generator-builder
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
Comprehensive testing approaches for Temporal workflows using pytest, progressive disclosure resources for specific testing scenarios.
temporal-python-pro
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
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
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
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.