generate-slides

generate-slides is a command for Claude Code from luanmorenommaciel/agentspec. It costs 13 tokens per session (432 once invoked), scanned A, a copy of generate-slides, MIT.

A command that creates a slide deck as a self-contained HTML page. It follows supplied visual templates and patterns for layouts, diagrams, charts, and typography.

In plain words
What is it for?
Use it to generate presentation slides with narrative structure, diagrams, charts, and a consistent visual style.
Why use it?
It gives a coding agent a defined process for turning a topic into a structured visual presentation instead of a plain list of notes.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/luanmorenommaciel/agentspec/generate-slides
Clone the repo
git clone --depth 1 https://github.com/luanmorenommaciel/agentspec

Made for: Claude Code.

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 generate-slides

README.md
[![agentmods](https://agentmods.dev/badge/commands/luanmorenommaciel/agentspec/generate-slides.svg)](https://agentmods.dev/commands/luanmorenommaciel/agentspec/generate-slides)
Your own site
<a href="https://agentmods.dev/commands/luanmorenommaciel/agentspec/generate-slides"><img src="https://agentmods.dev/badge/commands/luanmorenommaciel/agentspec/generate-slides.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00013 $0.00432
Opus 5 $0.00006 $0.00216
Sonnet 5 $0.00003 $0.00086
Haiku 4.5 $0.00001 $0.00043

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

Security

Grade A, and why

generate-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 4d ago.

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.

Origin

This is a copy

100% identical to generate-slides — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/visual-explainer/generate-slides.md · 19 lines

What it actually says

Load the visual-explainer skill, then generate a slide deck for: $@

Follow the visual-explainer skill workflow. Read the reference template at ./templates/slide-deck.html and slide patterns at ./references/slide-patterns.md before generating. Also read ./references/css-patterns.md for shared patterns (Mermaid zoom controls, depth tiers, overflow protection) and ./references/libraries.md for Mermaid theming, Chart.js, and font pairings.

Slide output is always opt-in. Only generate slides when this command is invoked or the user explicitly asks for a slide deck.

Aesthetic: Pick a distinctive direction from the 4 slide presets in slide-patterns.md (Midnight Editorial, Warm Signal, Terminal Mono, Swiss Clean) or riff on the existing 8 aesthetic directions adapted for slides. Vary from previous decks. Commit to one direction and carry it through every slide.

Narrative structure: Slides have a temporal dimension — compose a story arc, not a list of sections. Start with impact (title), build context (overview), deep dive (content, diagrams, data), resolve (summary/next steps). Plan the slide sequence and assign a composition (centered, left-heavy, split, full-bleed) to each slide before writing HTML.

Visual richness: Proactively reach for visuals. If surf CLI is available (which surf), generate images for title slide backgrounds and full-bleed slides via surf gemini --generate-image. Add SVG decorative accents, inline sparklines, mini-charts, and small Mermaid diagrams where they make the story more compelling. Visual-first, text-second.

Compositional variety: Consecutive slides must vary their spatial approach. Alternate between centered, left-heavy, right-heavy, split, edge-aligned, and full-bleed. Three centered slides in a row means push one off-axis.

Write to ~/.agent/diagrams/ and open the result in the browser.

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. 4d ago First seen · 19 lines · 13 tokens per session scan A 980d281d33c4

Subscribe to this mod's changes

generate-slides is a command published in the GitHub repository luanmorenommaciel/agentspec (245 stars, last pushed 3d ago), licensed MIT. It adds 13 tokens to every session and 432 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to generate-slides, differing in 2 lines, and is treated as a copy.