pptx-slides

pptx-slides is a skill for Claude Code from proyecto26/slides-ai-plugin. It costs 135 tokens per session (2,132 once invoked), scanned A, original, MIT.

A tool for generating editable PowerPoint presentation files (.pptx) from code using PptxGenJS, a Node.js library.

In plain words
What is it for?
Use it to create corporate decks, slide decks for sharing, and other editable PowerPoint presentations.
Why use it?
It removes the need to build every slide manually and helps check text sizing, layout, and overlapping elements.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the slides-ai-plugin plugin — 3 skills shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add proyecto26/slides-ai-plugin
Claude Code
/plugin install slides-ai-plugin

Made for: Claude Code.

Or install slides-ai-plugin, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pptx-slides

README.md
[![agentmods](https://agentmods.dev/badge/skills/proyecto26/slides-ai-plugin/pptx-slides.svg)](https://agentmods.dev/skills/proyecto26/slides-ai-plugin/pptx-slides)
Your own site
<a href="https://agentmods.dev/skills/proyecto26/slides-ai-plugin/pptx-slides"><img src="https://agentmods.dev/badge/skills/proyecto26/slides-ai-plugin/pptx-slides.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.02132
Opus 5 $0.00068 $0.01066
Sonnet 5 $0.00027 $0.00426
Haiku 4.5 $0.00014 $0.00213

Measured 6d ago against content hash 4c1ca1d988aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pptx-slides scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/code.ts, scripts/decorative.ts, scripts/image.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pptx-slides/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PPTX Slides — Programmatic PowerPoint Generation

Generate professional, editable PowerPoint presentations using PptxGenJS (Node.js). Produces OOXML-compliant .pptx files with precise layout, text measurement, and overlap validation.

Bundled Helpers

Every PPTX generation script imports the bundled TypeScript helper modules via bun:

import pptxgen from 'pptxgenjs';
import * as h from '${CLAUDE_PLUGIN_ROOT}/skills/pptx-slides/scripts/main.ts';
const pptx = new pptxgen();
pptx.layout = 'LAYOUT_16x9'; // 10" × 5.625"

Run generation scripts with bun (no build step needed):

npx -y bun ${CLAUDE_PLUGIN_ROOT}/skills/pptx-slides/scripts/main.ts theme list

Dependencies (skia-canvas, fontkit, linebreak, prismjs) are auto-installed by bun on first run — no manual install step needed.

Module Summary

Module Key Exports Purpose
text autoFontSize(), calcTextBoxHeightSimple(), scale() Font-aware text measurement via skia-canvas, adaptive sizing
theme createTheme(), PRESETS, sectionBackground() Design token system with 12 curated presets
layout warnIfSlideHasOverlaps(), alignSlideElements(), distributeSlideElements() Overlap detection, bounds checking, positioning
layout_builders addFeatureGrid(), addCardRow(), addTimeline(), addMetricsRow(), addComparisonTable() High-level component builders
decorative addStaircase(), addSectionBadge(), addProgressBar(), addSlideNumber() Visual personality elements
validation validateDeck() Consolidated pre-save quality validation
code codeToRuns() Prism.js syntax highlighting to PptxGenJS text runs
image getImageDimensions(), imageSizingCrop(), imageSizingContain() Binary dimension detection and aspect-ratio sizing
svg svgToDataUri() SVG sanitization and base64 data URI encoding
util safeOuterShadow(), normalizeColor(), inchesToEmu() Shadow effects, color/unit conversion

Read the full file on GitHub · 167 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 167 lines · 135 tokens per session scan A 4c1ca1d988aa

Subscribe to this mod's changes

pptx-slides is a skill published in the GitHub repository proyecto26/slides-ai-plugin (37 stars, last pushed 4mo ago), licensed MIT. It adds 135 tokens to every session and 2,132 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.