slidev:export

slidev:export is a command for Claude Code from rhuss/cc-slidev. It costs 16 tokens per session (1,006 once invoked), scanned A, original, MIT.

A command for exporting a Slidev presentation, which is a presentation written in Markdown, to PDF, PowerPoint, or PNG files. It finds the presentation and checks whether the browser tools needed for rendering are available.

In plain words
What is it for?
Use it to export a Slidev `slides.md` file as PDF, PPTX, or PNG.
Why use it?
It removes the manual work of converting presentation slides into files that can be printed, shared, or opened in PowerPoint. It also explains when a required browser dependency is missing.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the slidev plugin — 8 skills, 18 commands, 2 agents shipped together

Good fit Use it to export a Slidev slides.md file as PDF, PPTX, or PNG.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rhuss/cc-slidev/export
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.

Clone the repo
git clone --depth 1 https://github.com/rhuss/cc-slidev

Made for: Claude Code.

Or install slidev, the plugin that ships this one along with the rest of its 8 skills, 18 commands, 2 agents.

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 slidev:export

README.md
[![agentmods](https://agentmods.dev/badge/commands/rhuss/cc-slidev/export/github.svg)](https://agentmods.dev/commands/rhuss/cc-slidev/export)
Your own site
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/export"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/export/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for slidev:export

Your own site · 80×15
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/export"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,006 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00016 $0.01006
Opus 5.5 $0.00006 $0.00402
Sonnet 5.5 $0.00003 $0.00201
Haiku 4.5 $0.00002 $0.00101

Measured 1mo ago against content hash 388037aafe22, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

slidev:export 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 1mo 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/export.md · 209 lines

How it starts

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

Export Presentation

Export Slidev presentation to various formats (PDF, PPTX, PNG).

Execution

1. Parse Format Argument

Extract from $ARGUMENTS:

  • Valid formats: pdf, pptx, png
  • Default: pdf (if not specified)

If invalid format:

  • Error: "Supported formats: pdf, pptx, png"
  • Ask which format they want

2. Find Presentation

Locate slides.md:

  • Check current directory
  • Check subdirectories
  • If multiple, ask which one

3. Check Dependencies

Slidev export requires Playwright browsers:

# Check if playwright is available
npx playwright --version

If not installed:

Slidev export requires Playwright browsers for rendering.

**Install:**
```bash
npx playwright install chromium

This downloads Chromium browser for PDF/PPTX generation.

Should I install it now? (Y/n)


If user approves, install:
```bash
npx playwright install chromium

4. Export to Format

PDF Export:

cd [presentation-dir]
slidev export slides.md --output exports/slides.pdf
  • Vector format (best quality)
  • Suitable for printing
  • Animations become static
  • Interactive elements removed

PPTX Export:

cd [presentation-dir]
slidev export slides.md --format pptx --output exports/slides.pptx
  • PowerPoint format
  • Editable in PowerPoint/Keynote
  • Some styling may change
  • Good for sharing/editing

PNG Export:

cd [presentation-dir]
slidev export slides.md --output exports/slides --format png --per-slide
  • Creates PNG for each slide
  • Numbered files: slide-1.png, slide-2.png, etc.
  • Useful for handouts, social media, thumbnails
  • High resolution images

5. Monitor Progress

Slidev export can take time:

  • Show progress if possible
  • Inform user it's processing
  • Typical time: 30-60 seconds

6. Verify Output

Check if export succeeded:

ls -lh exports/slides.*

If successful:

  • Show file size
  • Show location
  • Offer to open

If failed:

  • Check error output
  • Common issues:
    • Playwright not installed
    • Syntax errors in slides
    • Missing images
    • Memory issues (large presentation)

Read the full file on GitHub · 209 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. 1mo ago First seen · 209 lines · 16 tokens per session scan A 388037aafe22

Subscribe to this mod's changes

slidev:export is a command published in the GitHub repository rhuss/cc-slidev (54 stars, last pushed 2mo ago), licensed MIT. It adds 16 tokens to every session and 1,006 once invoked, about $0.0001 per session on Opus 5.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.