/office-plugin:pptxfrom office-plugin
This skill should be activated when the user asks to make a presentation, slide deck, pitch deck, or anything involving .pptx output. Also triggers when the user says 'make me slides', 'create a deck', 'presentation about X', or mentions PowerPoint. Creates polished PowerPoint (.pptx) presentations using PptxGenJS for all slide generation. Can also edit existing PPTX templates. Activates even for simple 'make a quick 3-slide deck' requests — the skill ensures quality output every time.
Ships in office-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create professional PowerPoint presentations using PptxGenJS for all slide generation.
This skill works on its own. If media-plugin is installed, use its skills for better visuals — they are optional, never required.
| Visual | If media-plugin is installed | Otherwise |
|---|---|---|
| Deck-wide visual plan | Run visual-planning FIRST when you decide the visuals yourself — it picks which concepts deserve a visual and binds them to one style | Plan the visuals in Step 3 |
| Charts, data viz | graph-generation (D3), embedded as PNG | Native PptxGenJS chart — see the Chart Slide layout |
| Diagrams, flows, architecture | graph-generation (Mermaid / Draw.io), embedded as PNG | Shapes and connectors — see the Timeline / Process Flow layout |
| Photos | image-sourcing (Unsplash) | Photos the user provides; if there are none, pick layouts without photos |
| Illustrations, gradient backgrounds | image-generation | Layered-shape backgrounds from references/design.md |
Never use AI image generation for charts or diagrams — it mangles labels and layout. AI images are only for photos, illustrations, backgrounds, and mockups.
| Task | Go To |
|---|---|
| Create from scratch | Creating from Scratch below |
| Edit existing template | editing.md |
| Read content from PPTX | Reading Content below |
# Install dependencies (first time only)
npm install -g pptxgenjs react react-dom react-icons sharp
pip install "markitdown[pptx]" Pillow --break-system-packages
# Verify LibreOffice is available
which soffice || echo "LibreOffice not installed — install with: sudo apt install libreoffice"
# Verify pdftoppm is available
which pdftoppm || echo "pdftoppm not installed — install with: sudo apt install poppler-utils"
If LibreOffice or poppler-utils are not installed, tell the user they are needed for visual QA and ask if they'd like to install them. If the user declines or installation is not possible, skip visual QA and rely on structural checks.
Define the high-level narrative arc. What story does this deck tell? Output: an ordered list of slide titles and their purpose.
Example:
This step is about the skeleton — no content details yet.
Before choosing colors and fonts individually, select a design template from references/templates.md that matches the presentation's purpose. The template provides a complete, pre-tested design system: palette, fonts, motif, rhythm, and background strategy.
Available templates: Pitch Deck, Corporate Quarterly, Tech/Product, Educational/Workshop, Creative/Portfolio, Minimalist Executive, Bold Marketing.
For each slide in the structure, define:
Vary slide layouts. Monotonous decks with the same layout repeated are the most common failure. Use at least 3 different layout types across a deck.
Read references/design.md for the full design system. Key requirements:
charSpacing: 4-8 on uppercase headers for a premium, editorial feelGather all planned images BEFORE writing any code. This avoids mid-script interruptions.
For each photo/illustration in the plan, get it through the route in Visuals:
title-bg-cityscape.jpg, split-solar-farm.jpgFor each chart/diagram in the plan:
Always match the image aspect ratio to its placement dimensions. See Image Sizing Rules.
Read references/pptxgenjs-api.md for the full PptxGenJS API reference and references/layouts.md for slide layout implementations.
Write a Node.js script that generates the .pptx using PptxGenJS:
const pptxgen = require("pptxgenjs");
const fs = require("fs");
async function main() {
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9"; // 10" x 5.625"
pres.author = "Claude";
pres.title = "Presentation Title";
// --- Slide 1: Title with photo background ---
const slide1 = pres.addSlide();
const bgData = fs.readFileSync("title-bg.jpg");
slide1.background = { data: "image/jpeg;base64," + bgData.toString("base64") };
// Dark overlay
slide1.addShape(pres.shapes.RECTANGLE, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: "000000", transparency: 45 }
});
slide1.addText("Presentation Title", {
x: 0.8, y: 1.5, w: 8.4, h: 1.5,
fontSize: 44, fontFace: "Georgia", color: "FFFFFF",
bold: true, align: "left"
});
// --- Add more slides using layout functions from layouts.md ---
await pres.writeFile({ fileName: "output.pptx" });
console.log("Done: output.pptx");
}
main().catch(console.error);
Use the layout functions from references/layouts.md — copy the relevant functions into your script and call them with your content.
# prefix on hex colors — "FF0000" not "#FF0000"opacity property insteadaddShape/addText calls — PptxGenJS mutates them in place. Use factory functions instead.bullet: true, never unicode bullet charactersbreakLine: true between text array itemsAfter generating the .pptx, verify it with a rigorous QA process.
Generate thumbnails and visually inspect via a subagent:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/pptx/scripts/thumbnail.py output.pptx thumbnails
Then launch a subagent to inspect the generated slide images. The subagent should read each thumbnails-N.jpg grid and check for:
Validate the PPTX against OOXML XSD schemas to catch XML corruption:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/office/validate.py output.pptx -v
If validation fails, use --auto-repair to fix common issues automatically, or inspect the errors and fix the generation script.
Check for placeholder text and structural issues:
# Extract all text content
python -m markitdown output.pptx
Review the output for:
Search for common placeholder patterns that should never appear in final output:
python -m markitdown output.pptx | grep -iE "(lorem|ipsum|placeholder|todo|tbd|insert|example|sample text)"
If any matches are found, fix the content and regenerate.
If QA reveals issues:
For editing existing PPTX templates (updating content, adding/removing slides, preserving branding), see editing.md.
To extract text content from an existing PPTX:
python -m markitdown output.pptx
To generate visual thumbnails:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/pptx/scripts/thumbnail.py input.pptx thumbnails/
When using images (sourced or AI-generated) in the presentation, always match the image aspect ratio to its placement dimensions on the slide. Mismatched aspect ratios cause distortion.
| Placement | w x h (inches) | Aspect Ratio | Generate At |
|---|---|---|---|
| Full-bleed background | 10 x 5.625 | 16:9 | 1920x1080 or 16:9 |
| Half-slide (left/right column) | 4.3 x 3.5 | ~1.23:1 | 1230x1000 or 5:4 |
| Half-slide (tall) | 5 x 5.625 | ~0.89:1 | 890x1000 or 9:10 |
| Quarter block (2x2 grid) | 4.3 x 1.8 | ~2.4:1 | 2400x1000 or 12:5 |
| Hero image (wide strip) | 9 x 3.0 | 3:1 | 2700x900 or 3:1 |
| Square icon/photo | 2 x 2 | 1:1 | 1:1 |
sizing: { type: "cover", w: W, h: H } on every addImage call so images fill their box without distortionSee references/templates.md for 7 topic-aware design templates — complete presets for palette, fonts, motif, and rhythm.
See references/design.md for:
See Step 6 above for the full QA process. Key points:
thumbnail.py and visually inspectmarkitdown to catch missing/wrong text| Script | Purpose | Usage |
|---|---|---|
soffice.py | LibreOffice integration (convert, env) | python3 ${CLAUDE_PLUGIN_ROOT}/scripts/office/soffice.py input.pptx output.pdf |
validate.py | XSD schema + structural validation | python3 ${CLAUDE_PLUGIN_ROOT}/scripts/office/validate.py input.pptx [-v] [--auto-repair] |
unpack.py | Extract PPTX ZIP, pretty-print XML | python3 ${CLAUDE_PLUGIN_ROOT}/scripts/office/unpack.py input.pptx [output_dir] |
pack.py | Repack directory into PPTX ZIP | python3 ${CLAUDE_PLUGIN_ROOT}/scripts/office/pack.py unpacked_dir [output.pptx] |
| Script | Purpose | Usage |
|---|---|---|
thumbnail.py | PPTX → labeled slide grid image | python3 ${CLAUDE_PLUGIN_ROOT}/skills/pptx/scripts/thumbnail.py input.pptx [output_prefix] [--cols N] |
add_slide.py | Duplicate a slide in unpacked PPTX | python3 ${CLAUDE_PLUGIN_ROOT}/skills/pptx/scripts/add_slide.py unpacked_dir slide_number |
clean.py | Remove unreferenced slides/media | python3 ${CLAUDE_PLUGIN_ROOT}/skills/pptx/scripts/clean.py unpacked_dir |
| File | When to Read |
|---|---|
| references/templates.md | Always — 7 topic-aware design templates (palette, fonts, motif, rhythm) |
| references/design.md | Always — color palettes, dark themes, fonts, typography, motifs, depth techniques |
| references/layouts.md | Always — 14 slide layouts with PptxGenJS implementations |
| references/pptxgenjs-api.md | Always — full PptxGenJS API reference |
| editing.md | When editing existing PPTX templates |
Read templates.md first (to pick a design system), then design.md and layouts.md before generating any presentation.
editing.md (opens in a new tab)references/design.md (opens in a new tab)references/layouts.md (opens in a new tab)references/pptxgenjs-api.md (opens in a new tab)references/templates.md (opens in a new tab)scripts/add_slide.py (opens in a new tab)scripts/clean.py (opens in a new tab)scripts/thumbnail.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lukaskellerstein/claude-my-marketplace --plugin office-plugin3 skills in this plugin
/docxThis skill should be activated when the user asks to create a Word document, report, memo, letter, proposal, whitepaper, or anything involving .docx output. Also triggers when the user says 'write a report', 'create a document', 'make a Word file', 'draft a proposal', 'generate a whitepaper', or mentions .docx. Creates polished Word documents (.docx) using the docx npm package (docx-js) for all document generation. Can also edit existing DOCX files. Activates even for simple requests like 'write a one-page memo' — the skill ensures professional output every time./xlsxThis skill should be activated when the user asks to create, edit, read, or analyze Excel spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Triggers for: building financial models, creating data tables, formatting spreadsheets, adding formulas, cleaning tabular data, converting between tabular formats. Also triggers when user mentions 'spreadsheet', 'Excel', 'workbook', or references an .xlsx file. Do NOT trigger when the primary deliverable is a document, presentation, or visualization.