Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

slidev

БесплатноБез исполняемых скриптовНе проверен

Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and…

nicepkgот nicepkg★ 298 звёзд на GitHub

Об этом скилле

Slidev

Overview

Slidev is a presentation platform for developers that enables creating slides using Markdown while leveraging Vue and web technologies for interactive, pixel-perfect designs. This skill provides complete guidance for creating, customizing, and exporting Slidev presentations.

Use this skill when:

  • Creating new developer presentations
  • Working with Markdown-based slides
  • Adding interactive components and animations
  • Customizing slide layouts and themes
  • Integrating code blocks with syntax highlighting
  • Exporting presentations to PDF, PPTX, or PNG
  • Setting up Slidev projects

Official LLM Documentation

For complete API reference, advanced features, or edge cases not covered here, fetch the official LLM-optimized documentation:

https://sli.dev/llms-full.txt

Quick Start

Installation and Setup

Create a new Slidev presentation:

# Using pnpm (recommended)
pnpm create slidev

# Using npm
npm init slidev

# Using yarn
yarn create slidev

# Using bun
bun create slidev

Or try online at https://sli.dev/new (StackBlitz)

Essential Commands

Start development server:

slidev
# or specify entry file
slidev slides.md

Build for production:

slidev build

Export to PDF:

slidev export

Export to other formats:

slidev export --format pptx
slidev export --format png
slidev export --format md

Format slides:

slidev format

Markdown Syntax

Slide Separators

Separate slides with --- padded by blank lines:

# Slide 1

Content here

---

# Slide 2

More content

Frontmatter and Headmatter

Configure entire deck with headmatter (first YAML block):

---
theme: default
background: https://cover.sli.dev
title: My Presentation
info: |
  ## Slidev Starter
  Presentation slides for developers
class: text-center
highlighter: shiki
---

Configure individual slides with frontmatter:

---
layout: center
background: ./images/bg.jpg
class: text-white
---

# Centered Slide

Content here

Code Blocks

Code with syntax highlighting:

```ts
console.log('Hello, World!')
```

With line numbers:

```ts {lines:true}
function greet(name: string) {
  console.log(`Hello, ${name}!`)
}
```

With line highlighting:

```ts {2,4-6}
function calculate() {
  const x = 10  // highlighted
  const y = 20
  const sum = x + y  // highlighted
  const product = x * y  // highlighted
  const difference = x - y  // highlighted
  return sum
}
```

Presenter Notes

Add notes at the end of slides using comment blocks:

# Slide Title

Content visible to audience

<!--
Notes for presenter only
Can include **markdown** and HTML
-->

Layouts

Using Layouts

Specify layout in frontmatter:

---
layout: cover
---

# Presentation Title

Built-in Layouts

Basic Layouts:

  • default - Standard layout for any content
  • center - Centers content on screen
  • cover - Opening slide for presentations
  • end - Closing slide
  • none - Unstyled layout

Content Layouts:

  • intro - Introduction with title and author details
  • section - Marks new presentation sections
  • quote - Displays quotations with emphasis
  • fact - Highlights data or facts prominently
  • statement - Features affirmations as main content
  • full - Utilizes entire screen space

Image Layouts:

  • image - Full-screen image display
  • image-left - Image on left, content on right
  • image-right - Image on right, content on left

Iframe Layouts:

  • iframe - Full-screen web page embedding
  • iframe-left - Web page on left side
  • iframe-right - Web page on right side

Multi-Column Layouts:

  • two-cols - Two-column content separation
  • two-cols-header - Header spanning both columns with left/right split

Two-Column Layout Example

---
layout: two-cols
---

# Left Column

Content for left side

::right::

# Right Column

Content for right side

Two-Column with Header

---
layout: two-cols-header
---

# Header Across Both Columns

::left::

Left column content

::right::

Right column content

Components

Built-in Components

Navigation:

  • <Link> - Navigate between slides
  • <Arrow> - Directional lines with customization
  • <VDragArrow> - Draggable arrows

Text:

  • <AutoFitText> - Auto-sizing text to fit container
  • <TitleRenderer> - Display parsed slide titles
  • <Toc> - Table of contents generation

Media:

  • <Youtube> - Embed YouTube videos
  • <Tweet> - Embed Twitter posts
  • <SlidevVideo> - HTML5 video with autoplay

Utilities:

  • <SlideCurrentNo> - Current slide number
  • <SlidesTotal> - Total slide count
  • <Transform> - Scaling and transformation
  • <LightOrDark> - Theme-based content rendering
  • <RenderWhen> - Conditional rendering by context
  • <VSwitch> - Cycle between content on click
  • <VDrag> - Draggable functionality

Component Usage Examples

Полный SKILL.md на GitHub

Установить slidev в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdreferences/components-api.mdreferences/features.mdreferences/syntax-guide.md

FAQ

Что делает скилл slidev?

Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and exporting. Use this skill when creating or working with developer presentations using Slidev.

Как установить скилл slidev?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл slidev запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить slidev с