AgentSkillsCN

text-to-slidev

借助 @alexop/slidev-theme-brand 将技术笔记、文档和文本转换为 Slidev 演示文稿。适用于被要求制作幻灯片、创建演示文稿、将笔记转化为幻灯片、将文档改写为演讲内容,或生成 Slidev 演示文稿时使用。触发条件包括:“create presentation”、“make slides”、“convert to slidev”、“slides from”、“turn into a talk”、“presentation from”。

SKILL.md
--- frontmatter
name: text-to-slidev
description: Convert technical notes, documentation, and text into Slidev presentations using @alexop/slidev-theme-brand. Use when asked to create slides, presentations, convert notes to slides, turn documentation into a talk, or generate a slidev deck. Triggers: "create presentation", "make slides", "convert to slidev", "slides from", "turn into a talk", "presentation from".

Text to Slidev Converter

Convert technical text into diagram-first, minimal-text Slidev presentations.

IMPORTANT: Load References First

Before generating slides, read the reference files for available layouts, components, and advanced features:

Core Philosophy

"You are the content. Your slides are your Table of Contents."

  • Diagrams replace text — a good diagram replaces 200+ words
  • One concept per slide — if you need "and", split it
  • Speaker provides context; slides provide visual anchors
  • Max 3-4 bullet points — prefer a diagram instead

Required Frontmatter

yaml
---
theme: '@alexop/slidev-theme-brand'
addons:
  - '@alexop/slidev-addon-utils'
title: [Generated Title]
layout: cover
---

Workflow

  1. Read references - Load layout/component/advanced docs
  2. Analyze - Identify concepts that can be visualized
  3. Diagram First - Ask: "Can this be a flowchart, sequence, or architecture diagram?"
  4. Minimize Text - Short phrases, not sentences
  5. Structure - Intro (cover) → body → conclusion (section)

Diagram-First Approach

Content TypeUse
Process/workflowflowchart LR or TD
API calls, interactionssequenceDiagram
System architectureflowchart with subgraphs
Data relationshipserDiagram
State transitionsstateDiagram-v2

See references/advanced.md for Mermaid syntax and examples.

Quick Layout Reference

PatternLayout
Title slidecover
New sectionsection
Diagram/contentdefault
Side-by-sidetwo-cols
Single metricfact
Bold statementstatement
Closingsection or end

See references/layouts.md for complete documentation.

Key Rules

Do:

  • One diagram per slide with short title (3-5 words)
  • Use line highlighting for code: ts {1|3-4|all}
  • Progressive reveal with <VClicks> (max 4 items)

Don't:

  • Bullet lists explaining processes → use flowchart
  • Paragraphs about architecture → use diagram
  • Full sentences on slides → use 2-3 word phrases
  • Diagram + long explanation → diagram + title only

Example Transformation

Input: "When a user logs in, the frontend sends credentials to the auth service, which validates them against the database and returns a JWT token."

Output:

markdown
# Login Flow

```mermaid
sequenceDiagram
  participant F as Frontend
  participant A as Auth Service
  participant D as Database
  F->>A: POST /login
  A->>D: Validate
  D-->>A: User found
  A-->>F: {token}
code

No bullet points. The diagram IS the explanation.