/ 目录 / 演练场 / frontend-slides
● 社区 zarazhangrui ⚡ 即开即用

frontend-slides

作者 zarazhangrui · zarazhangrui/frontend-slides

Generate web-native slide decks with Claude — HTML/CSS slides, real transitions, no PowerPoint, shareable via URL.

frontend-slides is a Claude Code skill that produces slide decks as single-page HTML/CSS sites. Each slide is a section; transitions are CSS; code snippets render properly; you host on any static server. Good for tech talks, demos, and pitches where a browser-first deck beats a file to download.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "frontend-slides-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/zarazhangrui/frontend-slides",
        "~/.claude/skills/frontend-slides"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "frontend-slides-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/zarazhangrui/frontend-slides",
        "~/.claude/skills/frontend-slides"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "frontend-slides-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/zarazhangrui/frontend-slides",
        "~/.claude/skills/frontend-slides"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "frontend-slides-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/zarazhangrui/frontend-slides",
        "~/.claude/skills/frontend-slides"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "frontend-slides-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/zarazhangrui/frontend-slides",
        "~/.claude/skills/frontend-slides"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "frontend-slides-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/zarazhangrui/frontend-slides",
          "~/.claude/skills/frontend-slides"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add frontend-slides-skill -- git clone https://github.com/zarazhangrui/frontend-slides ~/.claude/skills/frontend-slides

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: frontend-slides

Build a 20-minute tech talk deck from an outline

👤 Devs presenting at meetups / conferences ⏱ ~90 min intermediate

何时使用: You have an outline and 48 hours. You don't want to wrestle with Keynote templates.

前置条件
  • Skill installed — git clone https://github.com/zarazhangrui/frontend-slides ~/.claude/skills/frontend-slides
  • Outline in markdown — One file with section headings = slides
步骤
  1. Scaffold
    Use frontend-slides. From /talks/outline.md, generate a deck in /talks/deck/. One HTML per slide pattern, shared CSS.✓ 已复制
    → Folder with index.html + slide assets; opens in browser
  2. Polish code slides
    For code slides, use my repo's actual style (look at src/example.ts). Add syntax highlighting.✓ 已复制
    → Code renders with proper highlighting and your formatting
  3. PDF backup
    Export to PDF for the "projector won't connect" scenario.✓ 已复制
    → PDF saved alongside HTML

结果: A deck you can iterate on with git, host on GitHub Pages, and present from a browser.

注意事项
  • Venue WiFi is bad and your deck has remote assets — Inline/embed everything; test offline before the talk
搭配使用: filesystem

A demo deck where code + UI embed live in slides

👤 Founders showing a prototype ⏱ ~120 min intermediate

何时使用: You want slides where you can actually interact with the product mid-deck.

步骤
  1. Layout
    Generate a 10-slide pitch deck. On slide 4, embed an iframe of the product demo. On slide 7, embed a live CodePen.✓ 已复制
    → Deck has iframes at the right slides
  2. Rehearse responsiveness
    Re-render for a 1024x768 projector. Does anything break?✓ 已复制
    → Breakpoint fixes applied

结果: A deck that doesn't feel like a deck — it feels like the product.

注意事项
  • Iframe CSP blocks embed — Host the demo under a domain that allows framing, or use a recording

组合

与其他 MCP 搭配,撬动十倍杠杆

frontend-slides-skill + filesystem

Version-control the deck alongside your repo

Scaffold into /talks/2026-05-conf/ and commit.✓ 已复制
frontend-slides-skill + github

Deploy via GitHub Pages

Push the deck to a gh-pages branch and show me the URL.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
scaffold_deck outline.md Start of any deck 0
add_slide title, content Append a slide 0
pdf_export deck/ Backup deliverable 0

成本与限制

运行它的成本

API 配额
N/A
每次调用 Token 数
Proportional to deck size
费用
Free
提示
Generate the skeleton first, then polish slide by slide rather than one huge pass

安全

权限、密钥、影响范围

最小权限: filesystem-write
凭据存储: None
数据出站: None; your deck may reference remote assets

故障排查

常见错误与修复

Transitions don't work in Safari

Check browser compatibility table in skill docs; default config uses prefixed properties

Code syntax highlighting missing

Bundled Prism/Shiki requires asset loading — make sure relative paths resolve when hosted

PDF export mangles layouts

Use Chrome headless for print — the skill's default is Puppeteer with landscape preset

替代方案

frontend-slides 对比其他方案

替代方案何时用它替代权衡
reveal.js / SlidevYou want a full framework and are comfortable configuring itMore features; more learning
Keynote / PowerPointCorporate settings require file-based decksNot web-native; harder to share

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills