Slides Skill
Description
A comprehensive Claude Code skill for generating beautiful HTML presentations using Reveal.js
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Slides Skill — AI 驱动的交互式网页 PPT 生成器
基于 Reveal.js 的 Claude Code 技能包,从零生成专业级 HTML 演示文稿
这个技能做什么
**Slides Skill** 帮助用户通过 Claude Code 快速生成交互式网页演示文稿(PPT),无需 CSS/JS 知识。采用"先看效果再选"的工作流:自动生成风格预览,你挑选喜欢的风格后完成生成。
核心特性
- 零依赖 — 单个 HTML 文件,内联 CSS/JS,无需 npm 或构建工具
- 19 套主题预设 — 暗色/亮色/特色三类,含 6 套品牌风格,每套有独特的字体、配色和签名元素
- 33 种布局模式 — 封面/数据/图表/列表/对比/图文卡片/特殊功能/总结,根据内容焦点自动匹配
- 视觉风格发现 — 生成 3 种风格预览供你选择,不用文字描述审美偏好
- 页面入场动画 — CSS 预隐藏 + JS 渐显双轨方案,流畅无闪烁
- Fragment 叙事动画 — 基于 Reveal.js 原生 fragment,点击逐步展示焦点数字、结论条目等关键内容
- ECharts 图表动画 — 按图表类型匹配不同入场节奏(折线/饼图/柱图/雷达图),相邻页面图表类型自动轮替
- 悬停高亮 — 卡片、数据块鼠标悬停时浮起 + 主题色光晕,深色/浅色背景自动适配
- 浏览器内编辑 — 按 E 键进入编辑模式,直接修改文字内容,保存不丢失
- 画笔标注 — 按 D 键切换画笔,右键清除,适合演讲演示
- 演讲者模式 — 按 S 键打开独立演讲者窗口,显示当前页备注讲稿、下一页预览、计时器
- 固定顶部导航栏 — 章节跳转链接,滚动自动高亮当前章节
- 无障碍动画 — 自动检测系统
prefers-reduced-motion设置,尊重无障碍需求
输出与导出
- PDF 导出 — 附带导出脚本,支持打印质量输出,可选
--compact压缩(体积减少 50-70%) - Vercel 部署 — 一键部署脚本,生成在线访问链接
- 离线版本导出 — CDN 资源内联为完全离线的 HTML,适用于无网络环境
内容处理
- 多格式素材支持 — 直接读取 Word(.docx)、PDF、Markdown 文件,提取内容生成 PPT
- PPT 转换 — 从已有 .pptx 提取文本和图片,转换为网页版 PPT
- 本地图片嵌入 — 支持 JPG/PNG/WebP/SVG 等格式,自动 base64 内联
- 自动内容优化 — 聚焦去冗、一的法则、先结论后展开、数据与故事交汇
快速开始
安装
将技能文件复制到 Claude Code skills 目录:
mkdir -p ~/.claude/skills/slides
cp SKILL.md STYLE_PRESETS.md LAYOUT_PATTERNS.md animation-patterns.md html-template.md viewport-base.css ~/.claude/skills/slides/
cp -r scripts ~/.claude/skills/slides/
使用
在 Claude Code 中说:
帮我做一个关于XXX的PPT
技能自动触发 7 阶段工作流:读取规则 → 配置 → 内容准备 → 内容优化 → 大纲 → 风格与封面 → 生成
操作方式
| 操作 | 方法 |
|---|---|
| 下一页 | 方向键 / 点击空白处 / 滚轮 |
| 上一页 | 右键点击空白处 |
| 编辑模式 | 按 E 键 |
| 画笔模式 | 按 D 键 |
| 演讲者模式 | 按 S 键 |
| 清除画笔 | 右键 |
技术栈
| 技术 | 用途 |
|---|---|
| Reveal.js 4.x | 演示框架 |
| ECharts 5.x | 图表渲染 |
| Font Awesome 6 | 图标库 |
| Google Fonts | 字体 |
项目结构
slides/
├── SKILL.md # 主技能文件(7阶段工作流)
├── STYLE_PRESETS.md # 19 套主题预设(含6套品牌风格)
├── LAYOUT_PATTERNS.md
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11