Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器unknown未标认证来源可访问许可证需确认审计未展示

create-slidev-presentation创建幻灯片演示文稿

Agent Skill

create-slidev-presentation 用于查找、检索和筛选相关信息,适合在 Local Agent 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

392

周安装

16

下载量

125
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-slidev-presentation(创建幻灯片演示文稿)
来源仓库:https://smithery.ai
仓库路径:create-slidev-presentation
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

create-slidev-presentation 用于创建基于 Markdown 的高交互性演示文稿,支持实时编辑与动画效果。

  • 适用于 Local Agent 环境,适合需要快速生成专业级幻灯片的场景。
  • 集成 Mermaid、LaTeX、Monaco 编辑器并支持导出多种格式,提供丰富布局与组件支持。
  • 安装方式未知,使用前请确认运行环境及是否会触发文件生成或外部依赖加载。
  • 适用宿主包括 Local Agent,接入前应确认版本、权限和运行环境要求。

SKILL.md

Slidev

Overview

Enable creation and editing of high-quality Slidev presentations. Slidev is a web-based presentation framework that uses Markdown with Vue 3 components, providing features like live code editing, syntax highlighting, animations, and export to multiple formats.

Key capabilities:

  • Create presentations from markdown with YAML configuration
  • Use 17 built-in layouts plus custom layouts
  • Add click animations, transitions, and motion effects
  • Embed live code editors (Monaco) with TypeScript support
  • Include diagrams (Mermaid, PlantUML), LaTeX math, and media
  • Export to PDF, PPTX, PNG, or static web application

Requirements: Node.js >= 24.0.0

Quick Start

Creating a New Presentation

# Initialize project
pnpm create slidev

# Or with specific entry file
pnpm create slidev my-slides

# Start development server
cd my-slides
pnpm run dev

Minimal Presentation Structure

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

# Welcome

Introduction slide

---

# Second Slide

Content here

---
layout: end
---

# Thank You

Slide separator: Three dashes (---) padded with new lines

Creating Presentations

Structure Decision Tree

Is this a new presentation?

  • Yes → Use template from assets/slide-templates.md or assets/example-configurations.md
  • No → See "Editing Presentations" section

What type of presentation?

  • Business/Professional → Use seriph theme, simple transitions
  • Technical/Code-heavy → Enable monaco, lineNumbers, use code templates
  • Conference/Workshop → Enable drawings, record, presenter mode
  • Educational → Use clear layouts, diagrams, progressive disclosure
  • Design-focused → Minimalist theme, fade transitions, large typography

Configuration Approach

Start with minimal headmatter, add features as needed:

Step 1 - Minimal (always include):

---
theme: default
title: Presentation Title
---

Step 2 - Add features (based on content):

---
theme: seriph
title: Presentation Title
author: Your Name
mdc: true
lineNumbers: true  # For code
monaco: dev        # For live code
transition: slide-left
---

Step 3 - Optimize (for specific use case):

  • Code presentations: Add twoslash, higher canvasWidth (1200)
  • Media-heavy: Set aspectRatio: 16/9, optimize fonts
  • Export-focused: Configure export options, set exportFilename

Layout Selection

Use appropriate layout for each slide's purpose:

Slide PurposeLayoutExample
Title slidecoverOpening slide
Section dividersectionNew topic
Standard contentdefaultBullet points, text
Centred contentcenterShort quotes
Two columnstwo-colsComparisons
Image + textimage-left/rightDiagrams with explanation
Big number/statfactKey metrics
QuotequoteTestimonials
Final slideendThank you, Q&A

Specify layout in per-slide frontmatter:

---
layout: two-cols
---

Reference: references/layouts-reference.md for all 17 layouts with examples

Component Usage

Built-in components for common needs:

Click animations:

<v-clicks>

- Item 1
- Item 2
- Item 3

</v-clicks>

Media embedding:

<Youtube id="dQw4w9WgXcQ" />
<Tweet id="1234567890" />

Navigation:

<Link to="42">Go to slide 42</Link>
<Toc minDepth="1" maxDepth="2" />

Reference: references/components-reference.md for complete component library

Code Presentation

Basic code block:

const greeting: string = 'Hello, Slidev!' console.log(greeting)

With line highlighting (incremental):

const step1 = 'First' // Highlight line 1 const step2 = 'Second' const step3 = 'Third' // Then highlight lines 3-4 // Finally highlight all

Interactive editor:

console.log('Runs in browser!')

Best practices:

  1. Always specify language for syntax highlighting
  2. Use incremental highlighting to guide attention
  3. Keep code blocks under 20 lines (use {maxHeight:'200px'} if longer)
  4. Enable lineNumbers: true for code-heavy presentations

Animations

Progressive disclosure (most common):

<v-clicks>

- Point 1
- Point 2
- Point 3

</v-clicks>

Element-level control:

<div v-click>Appears on click 1</div>
<div v-click>Appears on click 2</div>
<div v-click="3">Appears on click 3</div>

Motion animations:

<div
  v-motion
  :initial="{ x: -80, opacity: 0 }"
  :enter="{ x: 0, opacity: 1 }"
>
  Animated entrance
</div>

Slide transitions:

---
transition: slide-left
---

Options: fade, slide-left, slide-right, slide-up, slide-down, view-transition

Editing Presentations

Modification Strategy

Step 1 - Read and understand:

  1. Read slides.md to understand structure
  2. Identify headmatter (first frontmatter block)
  3. Note layouts and components used

Step 2 - Make targeted changes:

  • Add slides: Insert --- separator and new content
  • Modify content: Edit markdown between separators
  • Change layouts: Update per-slide frontmatter
  • Adjust config: Modify headmatter or create slidev.config.ts

Step 3 - Test changes:

slidev  # Verify in dev server

Common Editing Tasks

Add slide after specific slide:

  1. Find target slide content
  2. Add separator (---) after it
  3. Add new slide content

Change slide layout:

---
layout: two-cols  # Change this
---

Add click animations to list:

<v-clicks>

- Existing item 1
- Existing item 2

</v-clicks>

Enable feature globally: Update headmatter:

---
# Add/update these
monaco: dev
lineNumbers: true
---

Split long presentation: Create pages/section1.md, then in main slides.md:

---
src: ./pages/section1.md
---

Common Patterns

Use pre-built templates from assets/slide-templates.md:

Title slide pattern:

---
layout: cover
background: /cover.jpg
class: text-center
---

# Title

## Subtitle

Author · Date

Code demo pattern:

---
layout: two-cols
---

// Interactive code


::right::

# Explanation

- Point 1
- Point 2

Comparison pattern:

---
layout: two-cols
---

# Before

Old approach

::right::

# After

New approach

Section divider pattern:

---
layout: section
background: linear-gradient(to right, #667eea, #764ba2)
class: text-white
---

# Part 2: Implementation

Complete examples: See assets/example-configurations.md for full presentation templates

Export & Build

Export to PDF

# Basic export
slidev export

# With options
slidev export --output presentation.pdf
slidev export --with-clicks  # Include animations
slidev export --dark         # Dark mode
slidev export --range 1,4-8  # Specific slides

Prerequisites: Install playwright-chromium

pnpm add -D playwright-chromium

Export to Other Formats

slidev export --format pptx   # PowerPoint
slidev export --format png    # PNG images
slidev export --format md     # Markdown with PNGs

Build Static Site

slidev build
slidev build --base /slides/  # For subdirectory hosting

Deploy dist/ directory to static hosting (Netlify, Vercel, GitHub Pages).

Configuration Reference

Essential Headmatter Options

---
# Theme
theme: seriph  # or: default, apple-basic, carbon, dracula, nord, etc.

# Metadata
title: Presentation Title
author: Your Name
info: |
  ## Description
  Multi-line supported

# Features
mdc: true              # Enable MDC syntax
monaco: dev            # Enable Monaco editor
lineNumbers: true      # Line numbers in code
twoslash: true         # TypeScript type info
download: true         # PDF download button

# Appearance
colorSchema: auto      # auto, light, or dark
transition: slide-left # Global transition

# Layout
aspectRatio: 16/9
canvasWidth: 980

# Fonts
fonts:
  sans: Inter
  mono: JetBrains Mono
  weights: '300,400,600,700'
  provider: google

# Export
exportFilename: my-presentation
export:
  format: pdf
  withClicks: false
  dark: false
---

Complete reference: See references/configuration-reference.md

Per-Slide Frontmatter

---
layout: center           # Slide layout
background: /image.jpg   # Background image
class: text-white        # CSS classes
transition: fade         # Override global
clicks: 5                # Number of clicks
hideInToc: true         # Hide from TOC
zoom: 0.8               # Scale content
routeAlias: solutions   # Navigation alias
---

Troubleshooting

Common Issues

Slides not updating:

slidev --force  # Clear cache

Layout not found:

  • Check layout name spelling (case-sensitive)
  • Verify theme includes layout
  • Create custom layout in ./layouts/

Code not highlighting:

  • Specify language: ``` `typescript `` not `` ` ```
  • Check for syntax errors
  • Clear cache: slidev --force

Export fails or hangs:

pnpm add -D playwright-chromium  # Install first
slidev export --timeout 60000    # Increase timeout
slidev export --wait 2000         # Add wait time

Monaco not working:

  • Set monaco: 'dev' or monaco: true in headmatter
  • Clear cache
  • Check browser console for errors

Images not loading:

  • Path must start with / for public folder
  • Verify file in public/ directory
  • Check browser console for 404s

Complete guide: See references/troubleshooting.md

Best Practices

Content Organisation

  1. One idea per slide - Don't overcrowd
  2. 6x6 rule - Max 6 lines, 6 words per line
  3. Visual hierarchy - Use heading levels consistently
  4. Progressive disclosure - Use <v-clicks> for lists
  5. Consistent styling - Stick to theme

Code Presentation

  1. Specify language - Always enable syntax highlighting
  2. Line highlighting - Guide attention: {1|3-5|all}
  3. Keep it short - Under 20 lines per block
  4. Use Monaco - For interactive demos
  5. Font size - Ensure readability (use zoom if needed)

Performance

  1. Optimise images - Compress, use WebP
  2. Lazy load - preload: false on heavy slides
  3. Limit animations - Balance engagement vs. performance
  4. Local assets - Use /public folder
  5. Disable unused features - monaco: false if not needed

Accessibility

  1. Colour contrast - Minimum 4.5:1 ratio
  2. Alt text - Describe images
  3. Font size - Minimum 24pt body text
  4. Test keyboard navigation - Arrow keys should work
  5. Avoid flashing - No rapid animations (<3/second)

Resources

This skill includes comprehensive documentation:

references/

  • layouts-reference.md - All 17 built-in layouts with examples
  • components-reference.md - Complete component library and custom patterns
  • configuration-reference.md - All configuration options and setup files
  • troubleshooting.md - Common issues and solutions

assets/

  • slide-templates.md - Ready-to-use templates for common slide types
  • example-configurations.md - Complete example configurations for different use cases

Official Documentation

Workflow Example

User request: "Create a technical presentation about TypeScript best practices"

Step 1: Choose template from assets/example-configurations.md → "Technical/Code-Heavy Presentation"

Step 2: Create slides.md with appropriate headmatter:

---
theme: default
title: TypeScript Best Practices
author: Developer Name
monaco: dev
lineNumbers: true
twoslash: true
---

Step 3: Add slides using templates from assets/slide-templates.md:

  • Cover slide
  • Section dividers
  • Code demonstration slides
  • Comparison slides
  • End slide

Step 4: Start dev server to preview:

slidev

Step 5: Export when ready:

slidev export --format pdf

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

90.05%
按下载量换算113

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills