html-ppt-skill README

项目的 README,来自 github.com/lewislulu/html-ppt-skill。合并为一个 markdown 文件:README.md。

html-ppt — HTML PPT Studio

A world-class AgentSkill for producing professional HTML presentations in 36 themes, 15 full-deck templates, 36 page layouts, 47 animations (27 CSS + 20 canvas FX), and a true presenter mode with pixel-perfect previews + speaker script + timer — all pure static HTML/CSS/JS, no build step.

Author: lewis <[email protected]> License: MIT 中文文档: README.zh-CN.md

html-ppt — cover with live previews

One command installs 36 themes × 20 canvas FX × 36 layouts × 15 full decks + presenter mode. Every preview above is a live iframe of a real template file rendering inside the deck — no screenshots, no mock-ups.

🎤 Presenter Mode (new!)

Press S on any deck to pop open a dedicated presenter window with four draggable, resizable magnetic cards: current slide, next slide preview, speaker script (逐字稿), and timer. Two windows stay in sync via BroadcastChannel.

Presenter mode with 4 magnetic cards

Why previews are pixel-perfect: each card is an <iframe> that loads the same deck HTML with a ?preview=N query param. The runtime detects this and renders only slide N with no chrome — so the preview uses the same CSS, theme, fonts and viewport as the audience view. Colors and layout are guaranteed identical.

Smooth (no-reload) navigation: on slide change, the presenter window sends postMessage({type:'preview-goto', idx:N}) to each iframe. The iframe just toggles .is-active between slides — no reload, no flicker.

Speaker script rules (3 golden):

  1. Prompt signals, not lines to read — bold the keywords, separate transition sentences into their own paragraphs
  2. 150–300 words per slide — that's the ~2–3 min/page pace
  3. Write it like you speak — conversational, not written prose

See references/presenter-mode.md for the full authoring guide, or copy the ready-made template at templates/full-decks/presenter-mode-reveal/ which ships with full 150-300 word speaker scripts on every slide.

Install (one command)

npx skills add https://github.com/lewislulu/html-ppt-skill

That registers the skill with your agent runtime. After install, any agent that supports AgentSkills can author presentations by asking things like:

"做一份 8 页的技术分享 slides,用 cyberpunk 主题" "turn this outline into a pitch deck" "做一个小红书图文,9 张,白底柔和风"

Offline / manual install

npx skills add <url> needs network on the target machine. Three alternatives, in decreasing order of how much network they need.

1. Install from a local copy. Fetch the repo anywhere, move the folder over (git, zip, USB), then point the CLI at the directory instead of the URL:

git clone https://github.com/lewislulu/html-ppt-skill
npx skills add ./html-ppt-skill

npx still downloads the skills package itself once. For a fully air-gapped machine, run npm i -g skills on a connected one first, or use method 2.

2. Copy it in by hand — no Node, no CLI. A skill is just a folder with SKILL.md at its root. Drop it in the directory your agent scans:

Agent Project scope Global scope
Claude Code .claude/skills/html-ppt/ ~/.claude/skills/html-ppt/
Codex .agents/skills/html-ppt/ ~/.codex/skills/html-ppt/
Cursor .agents/skills/html-ppt/ ~/.cursor/skills/html-ppt/
OpenCode .agents/skills/html-ppt/ ~/.config/opencode/skills/html-ppt/
Gemini CLI .agents/skills/html-ppt/ ~/.gemini/skills/html-ppt/
Windsurf .windsurf/skills/html-ppt/ ~/.codeium/windsurf/skills/html-ppt/
mkdir -p ~/.claude/skills
cp -R html-ppt-skill ~/.claude/skills/html-ppt
ls ~/.claude/skills/html-ppt/SKILL.md      # must exist

Only SKILL.md, assets/, templates/, references/ and scripts/ are needed at runtime. docs/ is ~4.6 MB of README artwork and can be dropped from an offline copy.

3. No agent at all. The templates are plain static files — usable directly:

./scripts/new-deck.sh my-talk
open examples/my-talk/index.html

Does it run without a network?

Yes, with one caveat. Themes, layouts, animations, presenter mode and PNG rendering are all local static HTML/CSS/JS with no build step and no runtime fetches. The single remote dependency is assets/fonts.css, which @imports Google Fonts.

Offline, those imports simply fail and the browser falls back to the system stack already declared in assets/base.css (-apple-system / Helvetica / Georgia / Menlo), so decks render correctly — just in different typefaces. To pin typography offline, replace assets/fonts.css with @font-face rules pointing at font files you ship yourself, or delete the imports and accept the system stack.

What's in the box

Count Where
🎤 Presenter mode NEW S key / ?preview=N
🎨 Themes 36 assets/themes/*.css
📑 Full-deck templates 15 templates/full-decks/<name>/
🧩 Single-page layouts 36 templates/single-page/*.html
✨ CSS animations 27 assets/animations/animations.css
💥 Canvas FX animations 20 assets/animations/fx/*.js
🖼️ Showcase decks 4 templates/*-showcase.html
📸 Verification screenshots 56 scripts/verify-output/

36 Themes

minimal-white, editorial-serif, soft-pastel, sharp-mono, arctic-cool, sunset-warm, catppuccin-latte, catppuccin-mocha, dracula, tokyo-night, nord, solarized-light, gruvbox-dark, rose-pine, neo-brutalism, glassmorphism, bauhaus, swiss-grid, terminal-green, xiaohongshu-white, rainbow-gradient, aurora, blueprint, memphis-pop, cyberpunk-neon, y2k-chrome, retro-tv, japanese-minimal, vaporwave, midcentury, corporate-clean, academic-paper, news-broadcast, pitch-deck-vc, magazine-bold, engineering-whiteprint.

36 themes · 8 of them

Each is a pure CSS-tokens file — swap one <link> to reskin the entire deck. Browse them all in templates/theme-showcase.html (each slide rendered in an isolated iframe so theme ≠ theme is visually guaranteed).

15 full-deck templates

15 Full-deck templates

Eight extracted from real-world decks, seven generic scenario scaffolds:

Extracted looks

Scenario decks

Each is a self-contained folder with scoped .tpl-<name> CSS so multiple decks can be previewed side-by-side without collisions. Browse the full gallery in templates/full-decks-index.html.

31 single-page layouts

36 Single-page layouts

cover · toc · section-divider · bullets · two-column · three-column · big-quote · stat-highlight · kpi-grid · table · code · diff · terminal · flow-diagram · timeline · roadmap · mindmap · comparison · pros-cons · todo-checklist · gantt · image-hero · image-grid · chart-bar · chart-line · chart-pie · chart-radar · arch-diagram · process-steps · cta · thanks

Every layout ships with realistic demo data so you can drop it into a deck and immediately see it render.

36 layouts auto-cycling through real template files

The big iframe is loading templates/single-page/<name>.html directly and cycling through all 36 layouts every 2.8 seconds.

47 animations — 27 CSS + 20 canvas FX

27 CSS animations + 20 Canvas FX

CSS (lightweight) — directional fades, rise-in, zoom-pop, blur-in, glitch-in, typewriter, neon-glow, shimmer-sweep, gradient-flow, stagger-list, counter-up, path-draw, morph-shape, parallax-tilt, card-flip-3d, cube-rotate-3d, page-turn-3d, perspective-zoom, marquee-scroll, kenburns, ripple-reveal, spotlight, …

Canvas FX (cinematic) — particle-burst, confetti-cannon, firework, starfield, matrix-rain, knowledge-graph (force-directed physics), neural-net (signal pulses), constellation, orbit-ring, galaxy-swirl, word-cascade, letter-explode, chain-react, magnetic-field, data-stream, gradient-blob, sparkle-trail, shockwave, typewriter-multi, counter-explosion. Each is a real hand-rolled canvas module auto-initialised on slide enter via fx-runtime.js.

Quick start (manual, after install or git clone)

# Scaffold a new deck from the base template
./scripts/new-deck.sh my-talk

# ...or from a full-deck template, into any directory you like.
# Asset paths are computed for wherever the deck lands, then verified.
./scripts/new-deck.sh my-talk ~/decks -t pitch-deck

# Browse everything
open templates/theme-showcase.html         # all 36 themes (iframe-isolated)
open templates/layout-showcase.html        # all 36 layouts
open templates/animation-showcase.html     # all 47 animations
open templates/full-decks-index.html       # all 15 full decks

# Render any template to PNG via headless Chrome
./scripts/render.sh templates/theme-showcase.html
./scripts/render.sh examples/my-talk/index.html 12

Images on a slide

Five layouts take real images — pick by how many the page has to carry:

I have… Layout
one screenshot / diagram / chart image-single.html — letterboxed, never cropped
one photo that should carry the page image-full-bleed.html — fills the slide, scrim keeps the title readable
one image plus an argument image-text-split.html — 50/50, flip to swap sides
3–6 images image-gallery.html — uniform grid, one caption each
a before and an after image-compare.html — both sides identical size

They share one primitive from assets/base.css:

<figure class="img-frame"><img src="shot.png" alt=""></figure>          <!-- crops to fill -->
<figure class="img-frame contain"><img src="diagram.svg" alt=""></figure> <!-- letterboxed -->

The frame owns the aspect ratio (--img-ratio) and the crop, so you can drop in a portrait, square or ultrawide image without touching the layout. Placeholder artwork in assets/demo-images/ is hand-written SVG (~1 KB each) so every layout renders offline.

Brand a deck with one attribute — no per-slide <img> copy-paste:

<body data-logo="logo.svg" data-logo-position="bottom-right" data-logo-size="40px">

data-logo-position takes top-left / top-right / bottom-left / bottom-right (default top-right); data-logo-size sets the height. Skip it on a single slide with <section class="slide" data-no-logo> — handy for the cover. The logo also shows in the presenter preview, and on every page of a PDF export (skipping the data-no-logo ones).

Prefer to place it yourself? <img class="deck-logo" data-pos="top-left" src="logo.svg"> inside .deck works with no JS at all.

Keyboard cheat sheet

On a phone or tablet, swipe left for the next slide, right for the previous one — no keyboard needed. Pinch-zoom, vertical scrolling, the overview grid and the notes drawer are left alone.

← → Space PgUp PgDn Home End   navigate
swipe ← / →  (touch)           navigate
F                               fullscreen
S                               open presenter window (magnetic cards)
N                               quick notes drawer (bottom)
R                               reset timer (in presenter window)
O                               slide overview grid
T                               cycle themes (syncs to presenter)
A                               cycle a demo animation on current slide
#/N (URL)                       deep-link to slide N
?preview=N (URL)                preview-only mode (single slide, no chrome)

Project structure

html-ppt-skill/
├── SKILL.md                      agent-facing dispatcher
├── README.md                     this file
├── references/                   detailed catalogs
│   ├── themes.md                 36 themes with when-to-use
│   ├── layouts.md                31 layout types
│   ├── animations.md             27 CSS + 20 FX catalog
│   ├── full-decks.md             15 full-deck templates
│   └── authoring-guide.md        full workflow
├── assets/
│   ├── base.css                  shared tokens + primitives
│   ├── fonts.css                 webfont imports
│   ├── runtime.js                keyboard + presenter + overview
│   ├── themes/*.css              36 theme token files
│   └── animations/
│       ├── animations.css        27 named CSS animations
│       ├── fx-runtime.js         auto-init [data-fx] on slide enter
│       └── fx/*.js               20 canvas FX modules
├── templates/
│   ├── deck.html                 minimal starter
│   ├── theme-showcase.html       iframe-isolated theme tour
│   ├── layout-showcase.html      all 36 layouts
│   ├── animation-showcase.html   47 animation slides
│   ├── full-decks-index.html     15-deck gallery
│   ├── full-decks/<name>/        15 scoped multi-slide decks
│   └── single-page/*.html        31 layout files with demo data
├── scripts/
│   ├── new-deck.sh               scaffold
│   ├── render.sh                 headless Chrome → PNG
│   └── verify-output/            56 self-test screenshots
└── examples/demo-deck/           complete working deck

Philosophy

License

MIT © 2026 lewis <[email protected]>.

html-ppt-skill (lewislulu/html-ppt-skill)

正在搜索数据库…

这是什么?html-ppt(HTML PPT Studio)是一个 AgentSkill,让 AI 编程智能体生成专业的 HTML 演示文稿——包含 36 套主题、31 种页面版式、15 套整套模板和 47 种动画,还带演讲者模式——全部是纯静态 HTML/CSS/JS,没有任何构建步骤。
这是一个独立应用,还是要安装到我的 AI 智能体里的东西?它是一个 AgentSkill 包,不是独立应用——注册之后,任何支持 AgentSkills 的 AI 编程智能体都能按需生成演示文稿,输出是纯静态 HTML/CSS/JS,完全不需要构建步骤。
怎么完成设置?一条安装命令即可把技能注册到你的智能体运行时;之后你只需用自然语言向智能体提需求,例如“把这份大纲变成一份路演幻灯片”。
使用它需要特定的 AI 智能体吗?你需要一个支持 AgentSkills 的智能体运行时——安装之后,任何这类智能体都能根据“用赛博朋克主题做一份 8 页的技术分享幻灯片”这样的通俗请求生成演示文稿。
零构建的做法有什么需要注意的吗?它是无需构建步骤的纯静态 HTML/CSS/JS,但 webfonts、highlight.js 和 chart.js 等可选组件仍需从 CDN 拉取,因此这些功能需要联网。
它在 Windows、macOS 和 Linux 上都能用吗?可以——由于每份演示文稿和技能本身都是纯静态 HTML/CSS/JS,浏览器能运行的地方它们就能运行,没有任何操作系统特定的依赖。
演讲者模式是什么?在任何演示文稿中按 S 会打开一个同步的演讲者窗口,带有可拖拽的卡片:当前幻灯片、下一页预览、演讲稿和计时器,并通过 BroadcastChannel 与观众视图保持同步,因此切换幻灯片不会引发重新加载或闪烁。
它自带多少套主题和版式?它自带 36 套 CSS token 主题、31 种单页版式、15 套整套模板和 47 种动画(27 个 CSS 动画 + 20 个 canvas 特效),只需换掉一个主题文件就能彻底改变整套幻灯片的风格。
它支持中文内容吗?支持——它以中文 + 英文为一等公民,预置了 Noto Sans SC / Noto Serif SC 字体,并附带专门的中文 README(README.zh-CN.md)。
演示文稿的预览有什么独特之处?每一个实时预览——无论是在主题画廊、版式展示还是演讲者模式中——都是一个真实的隔离 iframe,通过 ?preview=N 查询参数加载真正的模板文件,而不是截图,因此颜色和版式始终与观众看到的完全一致。
作者
lewislulu
大小
9.4 MB
星标
9.1K
更新
提交Sep 14
时长
7个月
提交 · 90 天