Pptx Slides logo

Pptx Slides

Organization
proyecto26
pptx-slides

Used when the user asks to "create a PowerPoint", "generate PPTX slides", "make a PowerPoint presentation", "build a .pptx deck", "create editable slides", "PptxGenJS", "editable presentation", "corporate deck", "slide deck for sharing", or when the output format is PPTX for any presentation task. Also triggers on "export to PowerPoint", "pitch deck PPTX", "offline presentation", or when the context implies an editable/corporate format. Generates OOXML-compliant .pptx files with PptxGenJS, precise layout, text measurement, and overlap validation.

Overview

Publisherproyecto26
Repositoryslides-ai-plugin
Skill namepptx-slides
Stars
41
Forks
6
Bundled files
15
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 15 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by proyecto26 on GitHub. Read the source before you install it.

Installation

Install the Pptx Slides AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/proyecto26/slides-ai-plugin/tree/main/skills/pptx-slides
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/proyecto26/slides-ai-plugin.git /tmp/slides-ai-plugin
mkdir -p .claude/skills
cp -r /tmp/slides-ai-plugin/skills/pptx-slides .claude/skills/pptx-slides
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pptx Slides in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pptx Slides on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pptx Slides is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

typescript
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):

bash
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

ModuleKey ExportsPurpose
textautoFontSize(), calcTextBoxHeightSimple(), scale()Font-aware text measurement via skia-canvas, adaptive sizing
themecreateTheme(), PRESETS, sectionBackground()Design token system with 12 curated presets
layoutwarnIfSlideHasOverlaps(), alignSlideElements(), distributeSlideElements()Overlap detection, bounds checking, positioning
layout_buildersaddFeatureGrid(), addCardRow(), addTimeline(), addMetricsRow(), addComparisonTable()High-level component builders
decorativeaddStaircase(), addSectionBadge(), addProgressBar(), addSlideNumber()Visual personality elements
validationvalidateDeck()Consolidated pre-save quality validation
codecodeToRuns()Prism.js syntax highlighting to PptxGenJS text runs
imagegetImageDimensions(), imageSizingCrop(), imageSizingContain()Binary dimension detection and aspect-ratio sizing
svgsvgToDataUri()SVG sanitization and base64 data URI encoding
utilsafeOuterShadow(), normalizeColor(), inchesToEmu()Shadow effects, color/unit conversion

Theme Selection

Pick a curated preset or create a custom theme:

javascript
// Use a preset
const theme = h.createTheme(h.PRESETS.darkMonospace);

// Or customize
const theme = h.createTheme({
  accent: 'ff6b35',
  font: { heading: 'Poppins', body: 'Inter' },
});

Available presets: darkMonospace, swissModern, boldSignal, darkBotanical, cleanCorporate, neonCyber, warmMinimal, vintageEditorial, terminalGreen, gradientWave, midnightBlue, paperInk.

For mixed-background decks, define a section map:

javascript
const sectionMap = { '0': 'brand', '1-3': 'light', '4-8': 'default' };
const colors = { brand: theme.accent, light: theme.bg.secondary, default: theme.bg.primary };
slide.background = { color: h.sectionBackground(slideIndex, sectionMap, colors) };

Adaptive Font Sizing

Use scale() instead of hardcoded font sizes — the PPTX equivalent of CSS clamp():

javascript
const titleSize = h.scale(theme.size.title.min, theme.size.title.max, { bullets: 0, textLength: title.length });
const bodySize = h.scale(theme.size.body.min, theme.size.body.max, { bullets: 5, textLength: 800 });

For precise text box fitting, use autoFontSize() with skia-canvas measurement:

javascript
const opts = h.autoFontSize('Long paragraph text...', 'Arial', { w: 8, h: 3, minFontSize: 14, maxFontSize: 28 });
slide.addText(text, { x: 1, y: 1.5, ...opts });

Generation Workflow

  1. Plan layout — Map content outline to slide types from references/slide-patterns.md
  2. Select theme — Pick preset or define custom theme tokens
  3. Generate slides — Build with helpers: addFeatureGrid(), addCardRow(), etc.
  4. Validate — Run h.validateDeck(pptx) before saving
  5. Fix issues — Adjust based on validation report, re-validate
  6. Deliver — Provide .pptx file with speaker notes on every content slide

Core Design Rules

Typography

  • Minimum body text: 18pt (24-28pt preferred). Use scale() for adaptive sizing.
  • Title text: 36-44pt
  • Caption/footnote: 14-16pt minimum (absolute floor: 14pt)
  • Font families: Use h.resolveFont(theme, 'heading') for proper fallback chains

Layout

  • Slide dimensions: 10" × 5.625" (widescreen 16:9)
  • Safe margins: 0.5" from all edges (theme.spacing.margin)
  • White space: Target 40-50% empty space per slide
  • Alignment: Use h.alignSlideElements() and h.distributeSlideElements() for precision

Color & Accessibility

  • Contrast ratio: WCAG AA minimum (4.5:1 body, 3:1 large text)
  • Color-blind safe: Wong or IBM palettes for data visualization
  • Theme tokens: Always use theme.text.primary, theme.accent — never hardcode colors

Validation Workflow

Run h.validateDeck(pptx) before saving every deck. It checks:

  • Element overlaps on every slide
  • Elements within slide boundaries
  • Font sizes above 14pt minimum
  • Bullet count per slide (max 6)
  • Speaker notes presence

Anti-Patterns

  • Text smaller than 14pt anywhere
  • More than 6 bullets per slide
  • Elements extending beyond slide boundaries
  • Hardcoded colors instead of theme tokens
  • Hardcoded font sizes instead of scale() or autoFontSize()
  • Skipping validateDeck() before saving
  • Missing speaker notes on content slides
  • Using PptxGenJS fit or autoFit instead of h.autoFontSize()

Editability Guidance

Design for editability — recipients must be able to modify the deck:

  • Native text boxes — Click and edit directly. Never flatten text into images.
  • Group related elements — Card layouts move as a unit.
  • Native shapes — Use rounded rectangles, circles, lines instead of embedded SVG where possible.
  • Speaker notes — Add talking points via slide.addNotes('...') on every content slide.
  • Master layouts — For template decks, define slide layouts for consistent new slides.

Architecture Diagrams with Shapes

Build architecture diagrams using PptxGenJS native shapes rather than images:

  • Rectangles for services/components: slide.addShape('rect', { ... })
  • Lines and arrows for connections: slide.addShape('line', { ... })
  • Color coding: Use theme.accent for active components, theme.text.secondary for inactive
  • Progressive revelation: Build the same diagram across 2-3 slides, adding complexity

Reference Files

  • references/pptxgenjs-helpers.md — Full API reference for bundled helper modules
  • references/slide-patterns.md — Detailed slide type patterns with dimensions and positioning

Script Files

  • scripts/main.ts — TypeScript CLI entry point and library re-exports (run via npx -y bun)
  • scripts/types.ts — Shared TypeScript interfaces for all helper modules
  • scripts/theme.ts — 12 curated theme presets with createTheme() and resolveFont()
  • scripts/text.ts — Font-aware text measurement via skia-canvas, autoFontSize(), scale()
  • scripts/layout.ts — Overlap detection, element alignment, bounds checking
  • scripts/layout_builders.ts — addFeatureGrid(), addCardRow(), addTimeline(), etc.
  • scripts/decorative.ts — addStaircase(), addSectionBadge(), addProgressBar()
  • scripts/validation.ts — validateDeck() pre-save quality validation
  • scripts/code.ts — Prism.js syntax highlighting to PptxGenJS text runs
  • scripts/image.ts — Binary dimension detection and aspect-ratio sizing
  • scripts/svg.ts — SVG sanitization and base64 data URI encoding
  • scripts/util.ts — Shadow effects, color normalization, unit conversion

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pptx Slides AI skill do?

Used when the user asks to "create a PowerPoint", "generate PPTX slides", "make a PowerPoint presentation", "build a .pptx deck", "create editable slides", "PptxGenJS", "editable presentation", "corporate deck", "slide deck for sharing", or when the output format is PPTX for any presentation task. Also triggers on "export to PowerPoint", "pitch deck PPTX", "offline presentation", or when the context implies an editable/corporate format. Generates OOXML-compliant .pptx files with PptxGenJS, precise layout, text measurement, and overlap validation.

Why use Pptx Slides on TypingMind?

Because you install it once and use it with any model. Pptx Slides is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pptx Slides in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/proyecto26/slides-ai-plugin/tree/main/skills/pptx-slides. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pptx Slides?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pptx Slides?

As many as you like. As long as a model supports skills, you can use Pptx Slides with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pptx Slides AI skill free?

Yes. It is published on GitHub by proyecto26 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇