跳到正文
cccskills
免费在 GitHub 公开

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.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright
查看安装方法

包含的文件(2)

  • SKILL.md8.1 KB
  • _scores.json2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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:

  1. Title slide with talk info
  2. Agenda / outline
  3. What makes a good API (principles)
  4. Resource naming conventions with examples
  5. HTTP methods and status codes (code table)
  6. Request/response design with code blocks
  7. Pagination patterns with code
  8. Error handling with JSON examples
  9. Versioning strategies
  10. Authentication overview (diagram)
  11. Rate limiting
  12. Documentation tools
  13. Summary and key takeaways

Each slide uses appropriate Slidev features: code blocks for examples, Mermaid for architecture diagrams, two-column layouts for comparisons.

Example 2: Create an internal team demo

User request: "Make slides for demoing our new auth system to the team"

Output: Write slides.md with 8-10 slides:

  1. Title: "New Auth System Demo"
  2. Problem statement (what was wrong with the old system)
  3. Architecture diagram (Mermaid flowchart)
  4. Code walkthrough: login flow with highlighted steps
  5. Code walkthrough: token refresh mechanism
  6. Before/after metrics comparison (two-column layout)
  7. Migration plan timeline
  8. Q&A slide

Example 3: Generate slides from an outline

User request: "Turn this outline into slides: Intro to Docker - what it is, images vs containers, Dockerfile basics, docker-compose, best practices"

Output: Convert each outline item into 2-3 slides with:

  • Explanatory text and bullet points
  • Relevant code blocks (Dockerfile syntax, docker-compose.yml)
  • A Mermaid diagram showing the image-to-container lifecycle
  • A best practices checklist slide

Guidelines

  • Keep each slide focused on one idea. If a slide has more than 5 bullet points, split it.
  • Use code blocks liberally for developer audiences. Highlight key lines with the {lines} syntax.
  • Add Mermaid diagrams for architecture, flows, and relationships instead of describing them in text.
  • Use speaker notes for context you want to say but not display.
  • Prefer the seriph or default theme for professional presentations.
  • For live demos, use Slidev's Monaco editor: mark a block ```ts {monaco} to make it editable, or {monaco-run} to run it in the browser.
  • Always structure slides with a clear narrative: problem, solution, details, summary.
  • Export to PDF before sharing to ensure consistent rendering; interactive features (Monaco, click animations) are not preserved in PDF/PPTX, so host the slidev build output when they matter. Plain pptx exports slides as images; use pptx-editable if the recipient must edit text.
  • Keep total slide count reasonable: 1-2 minutes per slide is typical pacing.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Scripts and configures production rendering in Autodesk 3ds Max with the V-Ray and Corona renderers: output size and files, render elements, denoising, light mix, batch and command-line rendering, and network rendering. Use when a user asks to set up a production render, render several cameras in one batch, render from the command line or on a render farm, add render passes for compositing, or cut render time for archviz and product shots.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Covers scripting Autodesk 3ds Max, the 3D modeling and rendering application, with MAXScript and Python (pymxs): scene manipulation, object creation, material assignment, camera and light setup, batch operations, and file I/O. Use when tasks involve automating repetitive 3ds Max workflows, batch processing scenes, running scripts headless with 3dsmaxbatch, creating custom tools, or scripting scene setup for archviz, product visualization, or VFX.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

3proxy

免费

3proxy is a small open-source proxy server that runs HTTP/HTTPS, SOCKS4/5, SNI and TCP/UDP port-mapping proxies from one config file. Use when a user asks to set up an HTTP or SOCKS5 proxy, add proxy users and passwords, write 3proxy access rules, chain or rotate upstream (parent) proxies, limit bandwidth, connections or monthly traffic per user, run 3proxy in Docker, or fix a 3proxy.cfg that will not start.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Builds Agent2Agent (A2A) servers and clients, the open protocol (originally from Google, now under the Linux Foundation) that lets AI agents from different frameworks call each other. Use when the user wants to create an A2A-compliant agent, build an Agent Card, implement task management, connect agents across frameworks, set up agent discovery, handle streaming responses, implement push notifications, or orchestrate multi-agent workflows. Trigger words: a2a, agent to agent, agent2agent, a2a protocol, a2a server, a2a client, agent card, agent interoperability, agent collaboration, multi-agent, agent discovery, a2a sdk, a2a task.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Plans a controlled experiment (A/B test) so its result can be trusted: writes the hypothesis, picks one primary metric and the guardrails, computes sample size and run time, specifies how visitors are assigned and when exposure is logged, and reads out the result with a confidence interval. Use when someone says "set up an A/B test", "split test this page", "how many visitors do I need", "how long should the experiment run", "is this result significant", "can I stop the test early", or wants to test a headline, price, layout or onboarding change against the current version.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

ably

免费

Ably is a hosted realtime messaging service: clients publish and subscribe to named channels over WebSockets, see who is present, replay message history, and resume after a dropped connection. Use when a user asks to "add realtime updates", "push live notifications to the browser", "show who is online", "add a chat room with typing indicators", "publish from a serverless function", or "authenticate Ably clients without exposing the API key". Covers the ably 2.x JavaScript SDK (Realtime and REST), JWT token authentication, presence, history and rewind, batch publishing, and the @ably/chat 1.x SDK.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

查看 TerminalSkills 的全部技能

报告此技能的问题