slidev:export

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

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/export
Clone the repo
git clone --depth 1 https://github.com/rhuss/cc-slidev
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. 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.00016 $0.01006
Opus 5 $0.00008 $0.00503
Sonnet 5 $0.00003 $0.00201
Haiku 4.5 $0.00002 $0.00101

Measured 2d ago against content hash 388037aafe22, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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/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. 2d 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 (49 stars, last pushed 13d ago), licensed MIT. It adds 16 tokens to every session and 1,006 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.