Skip to main content
skill CX Codex

slides · fcakyon — Claude Code skill: build .pptx presentations

slides assembles PowerPoint decks with PptxGenJS, layout helpers, PNG rendering, and overflow detection for slide content.

MIT ★ 1,216 updated 2026-10-24

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add fcakyon/claude-codex-settings
/plugin install openai-office-skills@claude-settings
Open on GitHub

What slides does

Bundles PptxGenJS, an assets/pptxgenjs_helpers/ folder with text-sizing, image-cropping, and LaTeX-rendering functions, plus render_slides.py, slides_test.py, create_montage.py, detect_font.py, and ensure_raster_image.py scripts. Generates editable .pptx files with native PowerPoint charts and SVG diagrams, rasterizes output to PNG for visual review, flags out-of-bounds elements and substituted fonts.

Requires LibreOffice for rendering; render_slides.py will not run without it. Defaults to 16:9 aspect ratio, saves JavaScript source alongside .pptx.

Recreates decks from PDF or screenshots while preserving editability: text stays text, charts stay native. Built-in warnIfSlideHasOverlaps() and warnIfSlideElementsOutOfBounds() functions catch overlapping or clipped elements before final delivery.

What it helps with

  • generate PowerPoint presentations from JavaScript code
  • recreate slides from screenshots or PDFs with editable text
  • embed LaTeX equations, syntax-highlighted code, and native charts in .pptx
  • detect slide overflow, element overlaps, and font substitution
  • render .pptx to PNG montage for quick visual check

Example prompts for the agent

  • Build a 5-slide deck: title, monthly sales chart, Python code block, and two bullet slides
  • Recreate the presentation from reference.pdf as editable .pptx, keep text as text
  • Render deck.pptx to PNG and show the montage, run overflow check with slides_test.py

How to install slides

1Plugin marketplace

/plugin marketplace add fcakyon/claude-codex-settings
/plugin install openai-office-skills@claude-settings

This installs the whole openai-office-skills plugin with all its skills

2Skills CLI (Vercel)

npx skills add fcakyon/claude-codex-settings --skill slides -a claude-code

3Manually: put the files in place

~/.claude/skills/slides/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/slides/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about slides

How to install slides in Claude Code?

Run /plugin marketplace add fcakyon/claude-codex-settings, then /plugin install openai-office-skills@claude-settings, run npx skills add fcakyon/claude-codex-settings --skill slides -a claude-code, and open ~/.claude/skills/slides/SKILL.md.

What does slides do?

Builds PowerPoint presentations with PptxGenJS, rasterizes slides to PNG, detects out-of-bounds elements and substituted fonts. Saves both .pptx and source JavaScript for rebuilds.

What is needed to render slides to PNG?

LibreOffice. Without it, render_slides.py will not convert. Python dependencies are installed by the skill.

Source text

SKILL.md · MIT
---
name: slides
description: Create and edit presentation slide decks (`.pptx`) with PptxGenJS, bundled layout helpers, and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding charts/diagrams/visuals, or diagnosing layout issues such as overflow, overlaps, and font substitution.
license: MIT
---

# Slides

## Overview

Use PptxGenJS for slide authoring. Do not use `python-pptx` for deck generation unless the task is inspection-only; keep editable output in JavaScript and deliver both the `.pptx` and the source `.js`.

Keep work in a task-local directory. Only copy final artifacts to the requested destination after rendering and validation pass.

## Bundled Resources

- `assets/pptxgenjs_helpers/`: Copy this folder into the deck workspace and import it locally instead of reimplementing helper logic.
- `scripts/render_slides.py`: Rasterize a `.pptx` or `.pdf` to per-slide PNGs.
- `scripts/slides_test.py`: Detect content that overflows the slide canvas.
- `scripts/create_montage.py`: Build a contact-sheet style montage of rendered slides.
- `scripts/detect_font.py`: Report missing or substituted fonts as LibreOffice resolves them.
- `scripts/ensure_raster_image.py`: Convert SVG/EMF/HEIC/PDF-like assets into PNGs for quick inspection.
- `references/pptxgenjs-helpers.md`: Load only when you need API details or dependency notes.

## Workflow

1. Inspect the request and determine whether you are creating a new deck, recreating an existing deck, or editing one.
2. Set the slide size up front. Default to 16:9 (`LAYOUT_WIDE`) unless the source material clearly uses another aspect ratio.
3. Copy `assets/pptxgenjs_helpers/` into the working directory and import the helpers from there.
4. Build the deck in JavaScript with an explicit theme font, stable spacing, and editable PowerPoint-native elements when practical.
5. Run the bundled scripts from this skill directory or copy the needed ones into the task workspace. Render the result with `render_slides.py`, review the PNGs, and fix layout issues before delivery.
6. Run `slides_test.py` for overflow checks when slide edges are tight or the deck is dense.
7. Deliver the `.pptx`, the authoring `.js`, and any generated assets that are required to rebuild the deck.

## Authoring Rules

- Set theme fonts explicitly. Do not rely on PowerPoint defaults if typography matters.
- Use `autoFontSize`, `calcTextBox`, and related helpers to size text boxes; do not use PptxGenJS `fit` or `autoFit`.
- Use bullet options, not literal `•` characters.
- Use `imageSizingCrop` or `imageSizingContain` instead of PptxGenJS built-in image sizing.
- Use `latexToSvgDataUri()` for equations and `codeToRuns()` for syntax-highlighted code blocks.
- Prefer native PowerPoint charts for simple bar/line/pie/histogram style visuals so reviewers can edit them later.
- For charts or diagrams that PptxGenJS cannot express well, render SVG externally and place the SVG in the slide.
- Include both `warnIfSlideHasOverlaps(slide, pptx)` and `warnIfSlideElementsOutOfBounds(slide, pptx)` in the submitted JavaScript whenever you generate or substantially edit slides.
- Fix all unintentional overlap and out-of-bounds warnings before delivering. If an overlap is intentional, leave a short code comment near the relevant element.

## Recreate Or Edit Existing Slides

- Render the source deck or reference PDF first so you can compare slide geometry visually.
- Match the original aspect ratio before rebuilding layout.
- Preserve editability where possible: text should stay text, and simple charts should stay native charts.
- If a reference slide uses raster artwork, use `ensure_raster_image.py` to generate debug PNGs from vector or odd image formats before placing them.

## Validation Commands

Examples below assume you copied the needed scripts into the working directory. If not, invoke the same script paths relative to this skill folder.

```bash
# Render slides to PNGs for review
python3 scripts/render_slides.py deck.pptx --output_dir rendered

# Build a montage for quick scanning
python3 scripts/create_montage.py --input_dir rendered --output_file montage.png

# Check for overflow beyond the original slide canvas
python3 scripts/slides_test.py deck.pptx

# Detect missing or substituted fonts
python3 scripts/detect_font.py deck.pptx --json
```

Load `references/pptxgenjs-helpers.md` if you need the helper API summary or dependency details.

© fcakyon · MIT · fcakyon/claude-codex-settings

Similar skills

All skills for Office documents →

slides by other authors comes first.

slides claudekit slides is a Claude Code skill for building strategic HTML presentations with Chart.js and responsive layouts. It handles pitch decks, marketing slides, and data-driven presentations. CX Codex +1 49,800installs slides nexu-io slides — a skill for creating and editing .pptx presentations with PptxGenJS. Ideal for sales decks, kickoff briefs, and design-system showcases. CX Codex +1 3,000installs slides marswaveai slides builds slide decks with AI visuals from topics, links or text. No narration by default, optional voice-over available. CX Codex +1 581installs pptx official anthropics Skill for Claude Code creates, parses, and edits .pptx and .potx files. It activates whenever a prompt involves slides, slide decks, or presentation templates. CX Codex +1 241,433installs pptx-official davila7 pptx-official — a Claude skill that handles .pptx files end to end: reading, editing and building slide decks. Useful whenever a presentation lands in your task. CX Codex +1 257installs explorable-pptx claesbackman explorable-pptx generates explorable-style PowerPoint slide decks with per-frame speaker notes and automated screenshot validation. CX Codex +1 ★ 579repo stars acid-labels-pptx happycapy-ai acid-labels-pptx builds PowerPoint decks in one fixed Acid Labels look: acid-green panels, forest plates, black pill labels. Useful when a presentation has to stay visually consistent end to end. CX Codex +1 ★ 138repo stars azure-host-pptx happycapy-ai azure-host-pptx creates widescreen PowerPoint decks styled for the Azure Host Forum aesthetic with high-contrast grotesk type, olive accents, and speaker slots. CX Codex +1 ★ 138repo stars scientific-slides K-Dense-AI scientific-slides builds presentation decks for academic conferences, seminars, and thesis defenses. Supports PowerPoint and LaTeX Beamer with structured layouts, timing guidance, and visual consistency. CX Codex +1 2,400installs

From the same set113

The whole set →
update-readme update-readme — a command for Claude Code and Codex rebuilds the plugin sections in README.md. It reads the plugin folders and marketplace data. CX Codex +1 ★ 1,216repo stars openship-deploy openship-deploy — a skill for running and maintaining a self-hosted OpenShip instance from the CLI: app deploys, domains, backups, upgrades. CX Codex +1 ★ 1,216repo stars list-performance-function-references list-performance-function-references instructs the AI agent to keep object references stable in virtualized lists. It prevents full list re-renders by moving state derivation into child items. CX Codex +1 ★ 1,216repo stars server-hoist-static-io The server-hoist-static-io rule for Claude Code and Codex moves static asset I/O to module scope, loading files once instead of on every server-function request. CX Codex +1 ★ 1,216repo stars ui-menus ui-menus — a rule for Claude Code and Codex that switches menu generation from custom JS components to native platform elements via zeego. Triggered when creating dropdowns or context menus. CX Codex +1 ★ 1,216repo stars schema A skill for Claude Code and Codex reviews and fixes JSON-LD structured data. It helps choose schema types and trace why a page is not getting a rich result. CX Codex +1 ★ 1,216repo stars python-guidelines python-guidelines — a skill that enforces rules for writing and reviewing Python code: fitting new code into existing patterns, blocking premature abstractions, and standardizing docstrings. CX Codex +1 ★ 1,216repo stars simplify simplify runs four parallel agents to inspect and clean up recent diffs across reuse, complexity, and performance before committing. CX Codex +1 ★ 1,216repo stars

Project sponsors

Companies that keep this analytics open