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.
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
tailored-resume-generator
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
changelog-generator
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
zarr-python
Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.
pptx-posters
Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual integration.
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.
python-pro
Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices. Expert in the latest Python ecosystem including uv, ruff, pydantic, and FastAPI.
python-performance-optimization
Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.