Skip to content
OpenSmartRoute
Skillv1.0.0

python-pptx-generator

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

by yashas-30(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from yashas-30/NYX (src-tauri/.agents/skills/python-pptx-generator/SKILL.md). Install upstream with npx skills add yashas-30/NYX --skill python-pptx-generator. Copyright stays with the author.

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

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
  • ✅ 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.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/yashas-30-nyx-python-pptx-generator/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

yashas-30-nyx-python-pptx-generator.ocm.jsonjson
{
  "ocm": "1",
  "id": "yashas-30-nyx-python-pptx-generator",
  "kind": "skill",
  "name": "python-pptx-generator",
  "description": "Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content.",
  "publisher": "yashas-30",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "python",
      "powerpoint",
      "python-pptx",
      "presentations",
      "slide-decks",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generate complete Python scripts that build polished PowerPoint decks with python-pptx and real slide content."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/yashas-30/NYX",
      "path": "src-tauri/.agents/skills/python-pptx-generator/SKILL.md",
      "ref": "dd26e5d48ff01223b24acc58beb71200f2258004",
      "url": "https://github.com/yashas-30/NYX/blob/dd26e5d48ff01223b24acc58beb71200f2258004/src-tauri/.agents/skills/python-pptx-generator/SKILL.md",
      "key": "yashas-30/NYX/src-tauri/.agents/skills/python-pptx-generator/SKILL.md"
    }
  },
  "instructions": "# Python PPTX Generator\n\n## Overview\n\nUse this skill when the user wants a ready-to-run Python script that creates a PowerPoint presentation with `python-pptx`.\nIt focuses on turning a topic brief into a complete slide deck script with real slide content, sensible structure, and a working save step.\n\n## When to Use This Skill\n\n- Use when the user wants a Python script that generates a `.pptx` file automatically\n- Use when the user needs slide content drafted and encoded directly into `python-pptx`\n- Use when the user wants a quick presentation generator for demos, classes, or internal briefing",
  "cost": {
    "context_tokens": 1019
  }
}

Fetch it by URL: GET /api/v1/registry/yashas-30-nyx-python-pptx-generator/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.