creating-presentations
Creates, edits, and analyzes PowerPoint presentations (.pptx files), including slide design, chart and table insertion, HTML-to-PPTX conversion, and template-based generation. Activates when the user works with .pptx files or requests presentation authoring.
What this skill does
# PowerPoint (.pptx) Guide
This guide covers creating, editing, and analyzing PowerPoint presentations. For HTML-to-PPTX conversion, see [html2pptx.md](references/html2pptx.md). For OOXML technical details, see [ooxml.md](references/ooxml.md).
## Workflows Overview
| Task | Approach | Reference |
|------|----------|-----------|
| Read/analyze slides | Markdown conversion or raw XML | This file |
| Create from HTML | html2pptx library | html2pptx.md |
| Create from template | Python scripts | This file |
| Edit existing PPTX | Unpack/modify/repack | ooxml.md |
**Important**: .pptx files are ZIP archives containing XML and resources.
## Reading & Analysis
### Convert to Markdown
```bash
# Using markitdown
markitdown presentation.pptx > slides.md
```
### Access Raw XML
```bash
# Unpack
python ooxml/scripts/unpack.py presentation.pptx unpacked/
# View slide content
cat unpacked/ppt/slides/slide1.xml
# View speaker notes
cat unpacked/ppt/notesSlides/notesSlide1.xml
```
### Create Thumbnail Grid
```bash
python scripts/thumbnail.py presentation.pptx thumbnails/
```
Creates a visual grid showing all slides for quick analysis.
## Creating New Presentations
### Using html2pptx (Recommended)
1. Create HTML slides with proper dimensions
2. Convert using html2pptx library
3. Add charts/data programmatically
See [html2pptx.md](references/html2pptx.md) for complete guide.
### Using Template
```python
# 1. Analyze template
python scripts/inventory.py template.pptx > inventory.json
# 2. Create replacements JSON
# Map placeholder text to new content
# 3. Apply replacements
python scripts/replace.py template.pptx replacements.json output.pptx
```
## Design Principles
### Required
- State design approach before writing code
- Use **web-safe fonts only**: Arial, Helvetica, Times New Roman, Georgia, Courier New, Verdana, Tahoma, Trebuchet MS
- Ensure text contrast ratio ≥ 4.5:1 for readability
- Validate output immediately after creation
### Recommended
- Content-informed design (colors/style match topic)
- Consistent visual hierarchy across slides
- Maximum 6 bullet points per slide
- Meaningful use of whitespace
## Example Color Palettes
Choose palette based on content:
| Style | Background | Primary | Secondary | Accent |
|-------|------------|---------|-----------|--------|
| Corporate | FFFFFF | 2C3E50 | 34495E | 3498DB |
| Creative | F5F5F5 | E74C3C | F39C12 | 9B59B6 |
| Tech | 1A1A2E | 16213E | 0F3460 | E94560 |
| Nature | F0F4F0 | 27AE60 | 2ECC71 | 16A085 |
| Elegant | FAF9F5 | 141413 | B0AEA5 | D97757 |
## Supporting Scripts
### thumbnail.py
Creates thumbnail grids for visual analysis.
```bash
python scripts/thumbnail.py input.pptx output_dir/ [--columns 5]
```
### inventory.py
Extracts all text shapes with properties.
```bash
python scripts/inventory.py input.pptx > inventory.json
```
Output includes:
- Slide number and shape ID
- Text content and formatting
- Position (x, y) and dimensions
- Overflow detection
### replace.py
Applies text replacements from JSON.
```bash
python scripts/replace.py input.pptx replacements.json output.pptx
```
Replacements format:
```json
{
"slide_1": {
"shape_2": "New title text",
"shape_5": "Updated bullet points"
}
}
```
### rearrange.py
Duplicates, reorders, or deletes slides.
```bash
python scripts/rearrange.py input.pptx operations.json output.pptx
```
Operations format (0-indexed):
```json
{
"operations": [
{"action": "duplicate", "source": 0, "count": 2},
{"action": "delete", "index": 5},
{"action": "move", "from": 3, "to": 1}
]
}
```
### validate.py
Validates PPTX structure and content.
```bash
python ooxml/scripts/validate.py output.pptx
```
Checks:
- XML well-formedness
- Required files present
- Relationship integrity
- Content overflow
## Editing Existing Presentations
### Workflow
1. **Unpack**: `python ooxml/scripts/unpack.py input.pptx unpacked/`
2. **Modify**: Edit XML files directly
3. **Validate**: `python ooxml/scripts/validate.py unpacked/`
4. **Repack**: `python ooxml/scripts/pack.py unpacked/ output.pptx`
### Common Modifications
- Text changes: Edit `<a:t>` elements in slide XML
- Add images: Add to `ppt/media/`, update relationships
- Reorder slides: Modify `presentation.xml` `<p:sldIdLst>`
See [ooxml.md](references/ooxml.md) for detailed XML patterns.
## Dependencies
```bash
# Python
pip install markitdown python-pptx Pillow defusedxml
# JavaScript (for html2pptx)
npm install pptxgenjs playwright sharp
# System tools (for thumbnails)
brew install libreoffice poppler # macOS
apt-get install libreoffice poppler-utils # Ubuntu
```
## Best Practices
1. **Always validate** output immediately after creation
2. **Use web-safe fonts** to ensure cross-platform compatibility
3. **Check overflow** - text that doesn't fit won't render
4. **Batch similar operations** for efficiency
5. **Keep unused resources** out of final file (fonts, media)
6. **Test on target platform** - PowerPoint vs Keynote vs Google Slides
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".