simple-deck
它能做什么
这个工具用于创建简单的、可交互的 HTML 幻灯片演示文稿。它使用预设模板和一套规则,确保演示文稿既美观又易于理解。
适用场景
- ✓当你需要为会议快速准备一份演示文稿时。
- ✓当你要展示公司增长或业绩数据时。
- ✓当你想把一个项目或想法做成可视化摘要时。
技能链接
https://github.com/nexu-io/open-design/blob/main/design-templates/simple-deck/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我做一个关于我们公司过去三年增长情况的演示文稿,重点讲销售额和新客户。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会获取一个 HTML 模板,并把你的内容填进去。它遵循一些具体规则,规定某些视觉风格的使用频率,以保持演示文稿的吸引力。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Simple Deck Skill
Produce a single-file horizontal-swipe HTML deck using the seed and layout library.
Resource map
simple-deck/
├── SKILL.md ← you're reading this
├── assets/
│ └── template.html ← seed: tokens + slide primitives + proven nav script (READ FIRST)
└── references/
├── layouts.md ← 8 paste-ready slide layouts + theme-rhythm rules
└── checklist.md ← P0/P1/P2 self-review (rhythm spot-check at bottom)
Workflow
Step 0 — Pre-flight
- Read
assets/template.htmlend-to-end through the<style>block AND the<script>block. The script solves five iframe-specific bugs (real scroller detection, dual capture-phase listeners, auto-focus, noscrollIntoView, position persistence) — do not rewrite it. - Read
references/layouts.mdso you know the 8 layouts. Pay special attention to the "Theme rhythm" section — it's the rule that prevents the deck from feeling sleepy. - Read the active DESIGN.md — map its tokens to the six
:rootvariables in the seed.
Step 1 — Copy the seed
Copy assets/template.html to the project root as index.html. Replace the six :root variables with the active design system's tokens. Replace the page <title>.
Step 2 — Decide slide count + theme rhythm BEFORE writing any slide
Default: 6 slides unless the brief says otherwise.
| Audience / format | Slides |
|---|---|
| Product overview / lightning talk (5–10 min) | 6 |
| Pitch deck (15 min) | 8–10 |
| Investor update / longer talk (20–30 min) | 12–18 |
Then write out the rhythm before any HTML — for example, 8 slides:
01 hero light center Cover
02 light Problem
03 hero dark center Big stat
04 light Three points
05 dark Pipeline
06 hero light center Quote
07 light Before / after
08 hero dark center Ask
A healthy sequence has:
- No 3+ same theme in a row
- ≥ 1
hero darkAND ≥ 1hero light(for 8+ slides) - Alternating breath every 3–4 slides
Show this rhythm sketch to the user before writing slide HTML — they can redirect cheaply.
Step 3 — Paste and fill
For each planned slide, copy the matching <section> from layouts.md into the body. Replace bracketed text with real, specific copy. No filler / no lorem. If a slide feels empty, the layout is wrong — pick a different one.
Tag each slide with data-screen-label="01 Cover", "02 Problem", etc., in the order you wrote them. (The seed's first three slides already do this — extend the pattern.)
Step 4 — Self-check
Run through references/checklist.md. The "Theme rhythm spot-check" at the end is non-negotiable:
grep 'class="slide' index.html
Read the resulting class list. If you see light × 4 in a row, swap one to dark. If no hero dark exists in an 8+ slide deck, promote one big-stat or closing slide.
Step 5 — Write the project file
Write the completed deck HTML to index.html.
Then send one short ordinary assistant summary naming index.html and describing the deck. Do not output the full HTML source in chat and do not emit a source-code <artifact> block.
Hard rules
- Theme class on every slide (
light|dark|hero light|hero dark). Bareclass="slide"= regression. - No 3+ same theme in a row.
- Display = serif via
var(--font-display)..h-hero/.h-xl/.h-mdalready enforce. - One accent per slide, used at most twice.
- Don't rewrite the nav script. It's proven.
- No
scrollIntoView(). Breaks iframe. data-screen-labelon every slide.
常见问题
演示文稿默认有多少页?
默认是 6 页,但会根据演示类型有所变化,例如路演通常是 8 到 10 页,较长的进展汇报可能是 12 到 18 页。
什么是“主题节奏”(theme rhythm)?
这是一条交替使用视觉风格(如“浅色”和“深色”)的规则,每隔几页切换一次,避免演示文稿显得单调乏味。
我可以使用自己的设计吗?
可以。你可以调整模板的颜色和字体,使其符合你的品牌视觉识别。
详情
作者的原始描述
OpenDesign's operating review: growth, burn, and the concrete path to sustainability without losing the open ethos. Built as a decision-grade corporate strategy deck for leadership team.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #956
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …