Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
slidevjs avatar

Slidev

  • 9.8k installs
  • 48k repo stars
  • Updated August 5, 2026
  • slidevjs/slidev

This is a copy of slidev by antfu - installs and ranking accrue to the original listing.

slidev is an agent skill that teaches Claude Code correct Slidev markdown syntax, animations, layouts, and export workflows so developers who build technical presentations can create and edit Slidev decks without syntax

About

slidev is an agent skill from slidevjs/slidev that equips coding agents with Slidev presentation knowledge for create, edit, and export workflows. Install it with `npx skills add slidevjs/slidev`. The skill covers core markdown frontmatter and slide separators, click animations and transitions, Monaco code blocks with line highlighting and magic-move, Mermaid and PlantUML diagrams, built-in layouts with slots, and presenter-mode features like recording and timers. Developers reach for slidev when generating conference talks, internal tech demos, or documentation decks in the Slidev format instead of PowerPoint or Google Slides.

  • Provides core Markdown syntax, slide separators and frontmatter knowledge
  • Handles animations, transitions, click reveals and motion effects
  • Supports code features including line highlighting, magic-move and code groups
  • Understands Mermaid, PlantUML, LaTeX math and built-in layouts
  • Covers exporting to PDF, PPTX, PNG plus presenter mode and SPA hosting

Slidev by the numbers

  • 9,780 all-time installs (skills.sh)
  • +304 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/slidevjs/slidev --skill slidev

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs9.8k
repo stars48k
Security audit2 / 3 scanners passed
Last updatedAugust 5, 2026
Repositoryslidevjs/slidev

How do you write correct Slidev presentation markdown?

Enable Claude Code to create, edit, and export professional Slidev presentations with correct syntax and features.

Who is it for?

Developers and technical speakers who author Slidev decks in the terminal and want an agent that knows Slidev syntax, layouts, and export options.

Skip if: Teams standardizing on PowerPoint, Google Slides, or Reveal.js without Slidev in their toolchain.

When should I use this skill?

The user asks to create, edit, or export a Slidev presentation, fix Slidev syntax, or add animations, code highlights, or Mermaid slides.

What you get

Valid Slidev markdown decks with frontmatter, slide separators, animations, diagrams, and export-ready presentation files.

  • Slidev markdown deck
  • Animated slide definitions
  • Export-ready presentation

By the numbers

  • Install command: npx skills add slidevjs/slidev
  • Covers 6 feature areas: syntax, animations, code, diagrams, layouts, presenter mode

Files

SKILL.mdMarkdownGitHub ↗

Slidev - Presentation Slides for Developers

Web-based slides maker built on Vite, Vue, and Markdown.

When to Use

  • Technical presentations or slidedecks with live code examples
  • Syntax-highlighted code snippets with animations
  • Interactive demos (Monaco editor, runnable code)
  • Mathematical equations (LaTeX) or diagrams (Mermaid, PlantUML)
  • Record presentations with presenter notes
  • Export to PDF, PPTX, or host as SPA
  • Code walkthroughs for developer talks or workshops

Quick Start

pnpm create slidev    # Create project
pnpm run dev          # Start dev server (opens http://localhost:3030)
pnpm run build        # Build static SPA
pnpm run export       # Export to PDF (requires playwright-chromium)

Verify: After pnpm run dev, confirm slides load at http://localhost:3030. After pnpm run export, check the output PDF exists in the project root.

Basic Syntax

---
theme: default
title: My Presentation
---

# First Slide

Content here

---

# Second Slide

More content

<!--
Presenter notes go here
-->
  • --- separates slides
  • First frontmatter = headmatter (deck config)
  • HTML comments = presenter notes

Core References

TopicDescriptionReference
Markdown SyntaxSlide separators, frontmatter, notes, code blockscore-syntax
Animationsv-click, v-clicks, motion, transitionscore-animations
HeadmatterDeck-wide configuration optionscore-headmatter
FrontmatterPer-slide configuration optionscore-frontmatter
CLI CommandsDev, build, export, theme commandscore-cli
ComponentsBuilt-in Vue componentscore-components
LayoutsBuilt-in slide layoutscore-layouts
ExportingPDF, PPTX, PNG export optionscore-exporting
HostingBuild and deploy to various platformscore-hosting
Global Context$nav, $slidev, composables APIcore-global-context

Feature Reference

Code & Editor

FeatureUsageReference
Line highlighting` `ts {2,3} `code-line-highlighting
Click-based highlighting` ``ts {1\2-3\
Line numberslineNumbers: true or {lines:true}code-line-numbers
Scrollable code{maxHeight:'100px'}code-max-height
Code tabs::code-group (requires comark: true)code-groups
Monaco editor` `ts {monaco} `editor-monaco
Run code` `ts {monaco-run} `editor-monaco-run
Edit files<<< ./file.ts {monaco-write}editor-monaco-write
Code animations` ``md magic-move `code-magic-move
TypeScript types` `ts twoslash `code-twoslash
Import code<<< @/snippets/file.jscode-import-snippet

Diagrams & Math

FeatureUsageReference
Mermaid diagrams` `mermaid `diagram-mermaid
PlantUML diagrams` `plantuml `diagram-plantuml
LaTeX math$inline$ or $$block$$diagram-latex

Layout & Styling

FeatureUsageReference
Canvas sizecanvasWidth, aspectRatiolayout-canvas-size
Zoom slidezoom: 0.8layout-zoom
Scale elements<Transform :scale="0.5">layout-transform
Layout slots::right::, ::default::layout-slots
Scoped CSS<style> in slidestyle-scoped
Global layersglobal-top.vue, global-bottom.vuelayout-global-layers
Draggable elementsv-drag, <v-drag>layout-draggable
Icons<mdi-icon-name />style-icons

Animation & Interaction

FeatureUsageReference
Click animationsv-click, <v-clicks>core-animations
Rough markersv-mark.underline, v-mark.circleanimation-rough-marker
Drawing modePress C or config drawings:animation-drawing
Direction stylesforward:delay-300style-direction
Note highlighting[click] in notesanimation-click-marker

Syntax Extensions

FeatureUsageReference
Comark syntaxcomark: true + {style="color:red"}syntax-comark
Block frontmatter` `yaml instead of ---`syntax-block-frontmatter
Import slidessrc: ./other.mdsyntax-importing-slides
Merge frontmatterMain entry winssyntax-frontmatter-merging

Presenter & Recording

FeatureUsageReference
RecordingPress G for camerapresenter-recording
Timerduration: 30min, timer: countdownpresenter-timer
Remote controlslidev --remotepresenter-remote
Ruby textnotesAutoRuby:presenter-notes-ruby

Export & Build

FeatureUsageReference
Export optionsslidev exportcore-exporting
Build & deployslidev buildcore-hosting
Build with PDFdownload: truebuild-pdf
Cache imagesAutomatic for remote URLsbuild-remote-assets
OG imageseoMeta.ogImage or og-image.pngbuild-og-image
SEO tagsseoMeta:build-seo-meta

Export prerequisite: pnpm add -D playwright-chromium is required for PDF/PPTX/PNG export. If export fails with a browser error, install this dependency first.

Editor & Tools

FeatureUsageReference
Side editorClick edit iconeditor-side
VS Code extensionInstall antfu.slideveditor-vscode
Prettierprettier-plugin-slideveditor-prettier
Eject themeslidev theme ejecttool-eject-theme

Lifecycle & API

FeatureUsageReference
Slide hooksonSlideEnter(), onSlideLeave()api-slide-hooks
Navigation API$nav, useNav()core-global-context

Common Layouts

LayoutPurpose
coverTitle/cover slide
centerCentered content
defaultStandard slide
two-colsTwo columns (use ::right::)
two-cols-headerHeader + two columns
image / image-left / image-rightImage layouts
iframe / iframe-left / iframe-rightEmbed URLs
quoteQuotation
sectionSection divider
fact / statementData/statement display
intro / endIntro/end slides

Resources

  • Documentation: https://sli.dev
  • Theme Gallery: https://sli.dev/resources/theme-gallery
  • Showcases: https://sli.dev/resources/showcases

Related skills

FAQ

How do you install the Slidev skill for Claude Code?

The Slidev skill installs with `npx skills add slidevjs/slidev`, which registers Slidev syntax, layout, animation, and export knowledge with Claude Code so agents can author valid sli.dev presentations.

What Slidev features does the skill cover?

The slidev skill documents core markdown and frontmatter, click animations and transitions, Monaco editor code features including line highlighting and magic-move, Mermaid and PlantUML diagrams, built-in layouts with slots, and presenter-mode recording and timers.

Is Slidev safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.