--- name: pptx description: "Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks" license: Proprietary. LICENSE.txt has complete terms --- # PPTX creation, editing, and analysis ## Overview Create, edit, or analyze the contents of .pptx files when requested. A .pptx file is essentially a ZIP archive containing XML files and other resources. Different tools and workflows are available for different tasks. ## Reading and analyzing content ### Text extraction To read just the text content of a presentation, convert the document to markdown: ```bash # Convert document to markdown python -m markitdown path-to-file.pptx ``` ### Raw XML access Use raw XML access for: comments, speaker notes, slide layouts, animations, design elements, and complex formatting. To access these features, unpack a presentation and read its raw XML contents. #### Unpacking a file `python ooxml/scripts/unpack.py ` **Note**: The unpack.py script is located at `skills/pptx/ooxml/scripts/unpack.py` relative to the project root. If the script doesn't exist at this path, use `find . -name "unpack.py"` to locate it. #### Key file structures - `ppt/presentation.xml` - Main presentation metadata and slide references - `ppt/slides/slide{N}.xml` - Individual slide contents (slide1.xml, slide2.xml, etc.) - `ppt/notesSlides/notesSlide{N}.xml` - Speaker notes for each slide - `ppt/comments/modernComment_*.xml` - Comments for specific slides - `ppt/slideLayouts/` - Layout templates for slides - `ppt/slideMasters/` - Master slide templates - `ppt/theme/` - Theme and styling information - `ppt/media/` - Images and other media files #### Typography and color extraction **To emulate example designs**, analyze the presentation's typography and colors first using the methods below: 1. **Read theme file**: Check `ppt/theme/theme1.xml` for colors (``) and fonts (``) 2. **Sample slide content**: Examine `ppt/slides/slide1.xml` for actual font usage (``) and colors 3. **Search for patterns**: Use grep to find color (``, ``) and font references across all XML files ## Creating a new PowerPoint presentation **without a template** When creating a new PowerPoint presentation from scratch, use the **html2pptx** workflow to convert HTML slides to PowerPoint with accurate positioning. ### Workflow 1. **MANDATORY - READ ENTIRE FILE NOW**: Read [`html2pptx.md`](html2pptx.md) completely from start to finish. **NEVER set any range limits when reading this file.** Read the full file content for detailed syntax, critical formatting rules, and best practices before proceeding with presentation creation. 2. **PREREQUISITE - Install html2pptx library**: - Check and install if needed: `npm list -g @ant/html2pptx || npm install -g skills/pptx/html2pptx.tgz` - **Note**: If you see "Cannot find module '@ant/html2pptx'" error later, the package isn't installed 3. **CRITICAL**: Plan the presentation - Plan the shared aspects of the presentation. Describe the tone of the presentation's content and the colors and typography that should be used in the presentation. - Write a DETAILED outline of the presentation - For each slide, describe the slide's layout and contents - For each slide, write presenter notes (1 to 3 sentences per slide) 4. **CRITICAL**: Set CSS variables - In a shared `.css` file, override CSS variables to use on each slide for colors, typography, and spacing. DO NOT create classes in this file. 5. Create an HTML file for each slide with proper dimensions (e.g., 960px × 540px for 16:9) - Recall the outline, layout/content description, and speaker notes you wrote for this slide in Step 3. Think out loud how to best apply them to this slide. - Embed the contents of the shared `.css` file in a `