Dev Slides

作者 claude-office-skills9c4c7d5cd281MIT499 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

>

仅含说明Documents & Office
AI 生成的概览

为面向开发者的技术演示生成 Slidev Markdown,包含代码、图表和 Vue 组件。

功能
该技能生成面向开发者的 Slidev Markdown 演示文稿,涵盖幻灯片分隔符、布局、frontmatter、代码块、Monaco 实时代码块、Mermaid 图表、Vue 组件和点击动画。它提供语法说明和一个完整示例,例如 API 工作坊幻灯片。交付物是演示文稿源 Markdown,而不是渲染后的文件。
适用场景
当你需要以 Slidev Markdown 编写技术演讲、工作坊、入职培训或实时代码演示幻灯片时使用。它适合需要代码高亮、可运行代码片段和图表的开发者受众。
运行要求
仅为说明文档,不附带脚本。Slidev 本身需另行通过 npm 安装(npm init slidev@latest)才能渲染或运行生成的幻灯片。元数据还提到一个 office-mcp 服务器,带有 create_pptx 和 md_to_pptx 工具。

Developer Slides Skill

Overview

This skill enables creation of developer-focused presentations using Slidev - a Vue-powered presentation framework. Write slides in Markdown with live code demos, diagrams, and components.

How to Use

  1. Describe your technical presentation needs
  2. I'll generate Slidev markdown with proper syntax
  3. Includes code blocks, diagrams, and Vue components

Example prompts:

  • "Create a Vue.js workshop presentation"
  • "Build slides with live code execution"
  • "Make a technical talk with diagrams"
  • "Create developer onboarding slides"

Domain Knowledge

Slidev Basics

markdown
---theme: defaulttitle: My Presentation---
# Welcome
This is the first slide
---
# Second Slide
Content here

Slide Separators

markdown
---   # New horizontal slide
---   # Another slidelayout: center---
# Centered Content

Layouts

markdown
---layout: cover---# Title Slide
---layout: intro---# Introduction
---layout: center---# Centered
---layout: two-cols---# Left::right::# Right
---layout: image-rightimage: ./image.png---# Content with Image

Code Blocks

markdown
# Code Example
\`\`\`ts {all|1|2-3|4}const name = 'Slidev'const greeting = \`Hello, \${name}!\`console.log(greeting)// Outputs: Hello, Slidev!\`\`\`
<!-- Lines highlighted step by step -->

Monaco Editor (Live Code)

markdown
\`\`\`ts {monaco}// Editable code blockfunction add(a: number, b: number) {  return a + b}\`\`\`
\`\`\`ts {monaco-run}// Runnable codeconsole.log('Hello from Slidev!')\`\`\`

Diagrams (Mermaid)

markdown
\`\`\`mermaidgraph LR  A[Start] --> B{Decision}  B -->|Yes| C[Action 1]  B -->|No| D[Action 2]\`\`\`
\`\`\`mermaidsequenceDiagram  Client->>Server: Request  Server-->>Client: Response\`\`\`

Vue Components

markdown
<Counter :count="10" />
<Tweet id="1390115482657726468" />
<!-- Custom component --><MyComponent v-click />

Animations

markdown
<v-click>
This appears on click
</v-click>
<v-clicks>
- Item 1- Item 2- Item 3
</v-clicks>
<!-- Or with v-click directive --><div v-click>Animated content</div>

Frontmatter

yaml
---theme: seriphbackground: https://source.unsplash.com/collection/94734566/1920x1080class: text-centerhighlighter: shikilineNumbers: truedrawings:  persist: falsecss: unocss---

Examples

Example: API Workshop

markdown
---theme: seriphbackground: https://source.unsplash.com/collection/94734566/1920x1080class: text-center---
# REST API Workshop
Building Modern APIs with Node.js
<div class="pt-12">  <span @click="$slidev.nav.next" class="px-2 py-1 rounded cursor-pointer">    Press Space for next page <carbon:arrow-right />  </span></div>
---layout: two-cols---
# What We'll Cover
<v-clicks>
- RESTful principles- Express.js basics- Authentication- Error handling- Testing
</v-clicks>
::right::
\`\`\`ts// Previewconst app = express()app.get('/api/users', getUsers)app.listen(3000)\`\`\`
---
# Live Demo
\`\`\`ts {monaco-run}const users = [  { id: 1, name: 'Alice' },  { id: 2, name: 'Bob' }]
console.log(JSON.stringify(users, null, 2))\`\`\`
---layout: center---
# Questions?
[GitHub](https://github.com) · [Documentation](https://docs.example.com)

Installation

bash
npm init slidev@latest

Resources

来源与署名

来源:claude-office-skills/skills位于dev-slides提交9c4c7d5

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架