slidev:generate

A command that turns a prepared outline into a Slidev presentation, a web-based slide format written in Markdown. It creates the presentation files and applies accessibility and design rules.

In plain words
What is it for?
Use it to create a new presentation from outline.md, with optional style preferences and supporting notes.
Why use it?
It removes the repetitive work of setting up slides, folders, and formatting from an outline. It also flags when the required outline is missing.

Command

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/rhuss/cc-slidev/generate
Clone the repo
git clone --depth 1 https://github.com/rhuss/cc-slidev
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,647 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 $0.00011 $0.05647
Opus 5 $0.00005 $0.02823
Sonnet 5 $0.00002 $0.01129
Haiku 4.5 $0.00001 $0.00565

Measured 2d ago against content hash 4b5683af5326, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

slidev:generate 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 2d 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.

slidev/commands/generate.md · 742 lines

How it starts

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

Slide Generation

Generate clean, accessible Slidev slides from validated outline with enforced design limits.

Research Basis: These guidelines are based on cognitive load studies (Miller's Law), TED presentation research, and MIT Communication Lab recommendations. See references/presentation-best-practices.md for detailed research.

Default Timing: 90 seconds (1.5 minutes) per slide (configurable: 60s-180s)

Execution

1. Prerequisites

Check for required files:

  • outline.md - Must exist
  • presentation-config.md - For style/theme preferences (optional)
  • brainstorm.md - For additional context (optional)

If outline.md missing:

  • Inform user outline is needed first
  • Offer to run /slidev:outline
  • Exit

2. Determine Project Directory

Extract topic from outline title and create directory name:

Title: "Introduction to Kubernetes"
→ Directory: "introduction-to-kubernetes"

Create project structure:

mkdir -p [topic-slug]/{slides,public/images,exports}

Note: The slides/ subdirectory will contain individual markdown files for each slide.

3. Generate Slidev Frontmatter (Accessibility-First)

Using slidev-mastery skill, create frontmatter with accessibility defaults:

Professional/Corporate (Default):

---
theme: default
background: '#ffffff'
class: text-center
highlighter: shiki
lineNumbers: false
transition: slide-left
title: [Title]
---

<style>
/* Accessibility defaults: 18pt+ fonts, 4.5:1+ contrast */
h1 { font-size: 3rem; }      /* ~48pt - headings ≥24pt required */
h2 { font-size: 2rem; }      /* ~32pt */
h3 { font-size: 1.5rem; }    /* ~24pt */
p, li { font-size: 1.25rem; } /* ~20pt - body ≥18pt required */

body {
  font-family: 'Helvetica Neue', Arial, sans-serif; /* Sans-serif for body */
}

/* Colorblind-safe default palette: Blue + Orange */
:root {
  --primary: #3b82f6;    /* Blue - 8.6:1 contrast on white */
  --secondary: #f97316;  /* Orange - 3.4:1 (headings only) */
  --neutral: #6b7280;    /* Gray */
  --text: #1f2937;       /* Dark gray - 16.1:1 contrast */
}
</style>

Read the full file on GitHub · 742 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. 2d ago First seen · 742 lines · 11 tokens per session scan A 4b5683af5326

Subscribe to this mod's changes

slidev:generate is a command published in the GitHub repository rhuss/cc-slidev (49 stars, last pushed 14d ago), licensed MIT. It adds 11 tokens to every session and 5,647 once invoked, about $0.0001 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.