dev-slides
БесплатноБез исполняемых скриптовНе проверенCreate developer-friendly presentations using Slidev. Build Vue-powered slides with live code execution, syntax highlighting, and diagrams. Use when a user…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Dev Slides
Overview
Create developer-friendly presentations using Slidev, a markdown-based slide framework powered by Vue. Supports live code execution, syntax highlighting, Mermaid diagrams, LaTeX math, and speaker notes. Ideal for tech talks, team demos, and conference presentations.
Instructions
When a user asks you to create a presentation or slide deck, follow this process:
Step 1: Set up the Slidev project
Slidev needs Node.js 22.12 or newer. The npm package is @slidev/cli (there is no package called slidev), so install it into a project instead of relying on a bare npx slidev:
# Scaffold a project with prompts (creates slides.md, package.json, scripts)
npm init slidev@latest
# Or add it to an existing folder
mkdir api-design-talk && cd api-design-talk
npm init -y
npm i -D @slidev/cli @slidev/theme-seriph
Inside the project, npx slidev and the dev / build / export scripts all work.
Step 2: Gather the presentation requirements
Before writing slides, determine:
- Topic: What is the presentation about?
- Audience: Developers, managers, mixed?
- Length: How many slides? (Typical: 10-20 for a talk)
- Style: Technical deep-dive, overview, tutorial, demo?
- Code focus: Which languages and frameworks?
Step 3: Write the slides in Markdown
Slidev uses Markdown with YAML frontmatter and --- separators between slides.
Basic structure:
---
theme: default
title: "Your Presentation Title"
info: |
Presentation description
class: text-center
drawings:
persist: false
transition: slide-left
---
# Your Presentation Title
Subtitle or tagline
---
## Slide Title
- Bullet point one
- Bullet point two
- Bullet point three
---
Code blocks with syntax highlighting:
---
## API Example
\`\`\`typescript {2-3|4-5}{lines:true}
async function fetchUsers() {
const response = await fetch('/api/users');
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
return data;
}
\`\`\`
---
The {2-3|4-5} part highlights lines step by step on each click (use all or none as stages too); the second brace group {lines:true} turns on line numbers for this block.
Mermaid diagrams:
---
## Architecture
\`\`\`mermaid
graph LR
A[Client] --> B[API Gateway]
B --> C[Auth Service]
B --> D[Data Service]
D --> E[(Database)]
\`\`\`
---
Two-column layouts need layout: two-cols in the slide's frontmatter; ::right:: starts the right column (use two-cols-header for a full-width heading row):
---
layout: two-cols
---
## Comparison
### Before
- Manual deploys
- No tests
- 2-hour releases
::right::
### After
- CI/CD pipeline
- 95% coverage
- 5-minute releases
---
Speaker notes:
---
## Key Metrics
- 99.9% uptime
- 50ms p99 latency
<!--
Speaker notes go here.
Mention that we achieved this after the migration in Q3.
-->
---
Step 4: Add theme and configuration
The first slide's frontmatter (headmatter) configures the whole deck. Themes are npm packages (@slidev/theme-seriph, @slidev/theme-default, community themes such as slidev-theme-*); Slidev offers to install a missing one on first run.
---
theme: seriph
title: REST API Design
author: Dana Whitfield
class: text-center
lineNumbers: true # line numbers in every code block
transition: slide-left
drawings:
persist: false
exportFilename: rest-api-design
---
Syntax highlighting (Shiki) and UnoCSS are built in, so the old highlighter: shiki and css: unocss keys are not needed.
Step 5: Preview and export
# Dev server with live reload (default port 3030)
npx slidev slides.md --open
# Build as a static SPA into dist/ (add --download to offer a PDF)
npx slidev build slides.md
PDF, PPTX and PNG export use Playwright, which is not bundled. Install it once, then export:
npm i -D playwright-chromium
npx slidev export slides.md --output rest-api-design # PDF
npx slidev export slides.md --format png --output rest-api-design-png # one PNG per slide
npx slidev export slides.md --format pptx-editable # PowerPoint with native shapes
Add --with-clicks to get one page per click step and --range 1,4-6 to export only some slides. Without Playwright the export command fails with an error from importPlaywright. The built-in browser exporter (the Export entry in the dev server's menu, or /export) works in Chromium without the CLI.
Examples
Example 1: Create a tech talk on API design
User request: "Create slides for a talk on REST API best practices"
Output: Write slides.md with approximately 12-15 slides covering:
- Title slide with talk info
- Agenda / outline
- What makes a good API (principles)
- Resource naming conventions with examples
- HTTP methods and status codes (code table)
- Request/response design wit
Установить dev-slides в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dev-slides?
Create developer-friendly presentations using Slidev. Build Vue-powered slides with live code execution, syntax highlighting, and diagrams. Use when a user asks to create a presentation, build slides, make a tech talk, create a slide deck, or prepare a developer presentation.
Как установить скилл dev-slides?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dev-slides запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic