← ClaudeAtlas

pptxlisted

USE WHEN a user wants to create a PowerPoint (.pptx) presentation or slides — generates a deck programmatically with python-pptx, adding a title slide, content slides with headings and bullet points, and saving the result as a .pptx file.
hesorchen/muselab · ★ 64 · Data & Documents · score 81
Install: claude install-skill hesorchen/muselab
# PPTX creation ## Overview Create PowerPoint (.pptx) presentations programmatically using the cross-platform [`python-pptx`](https://python-pptx.readthedocs.io/) library. This works on macOS, Linux, and Windows with no native Office install and no bundled scripts — you write and run a short Python program with the Bash tool. ## Dependencies ```bash pip install python-pptx ``` That is the only dependency. Do not rely on LibreOffice, `apt-get`, or any platform-specific tooling. ## Workflow 1. **Plan the deck**: Decide the title and the list of content slides (each with a heading and a few bullet points). Keep bullets short — aim for 3–6 per slide. 2. **Design choices**: Briefly state the intended tone/palette before writing code if the user cares about styling; otherwise the default template is fine. 3. **Generate the file**: Run a Python program (below) that builds and saves the deck. 4. **Report the output path** so the user can open the .pptx. ## Generating a presentation Run inline Python with the Bash tool. The example below creates a title slide plus content slides with bullet points: ```bash python3 - <<'PY' from pptx import Presentation from pptx.util import Pt prs = Presentation() # default 4:3; use Presentation() then set slide size for 16:9 if needed # --- Title slide (layout 0: Title + Subtitle) --- slide = prs.slides.add_slide(prs.slide_layouts[0]) slide.shapes.title.text = "Quarterly Review" slide.placeholders[1].text = "Prepared for the team"