frontend-slides README

项目的 README,来自 github.com/zarazhangrui/frontend-slides。合并为一个 markdown 文件:README.md。

Frontend Slides

A coding-agent skill for creating stunning HTML presentations — from scratch or by converting PowerPoint files. It is packaged as a Claude Code plugin, and the core SKILL.md can also be read by other coding agents with filesystem and shell access.

📺 Watch the Walkthrough & Tutorial

New here? This beginner-friendly video walks you through the whole thing, start to finish.

Watch the Frontend Slides walkthrough and tutorial on YouTube

▶️ Watch on YouTube → (beginner-friendly walkthrough and tutorial)

What This Does

Frontend Slides helps non-designers create beautiful web presentations without knowing CSS or JavaScript. It uses a "show, don't tell" approach: instead of asking you to describe your aesthetic preferences in words, it generates visual previews and lets you pick what you like.

Here is a deck about the skill, made through the skill:

https://github.com/user-attachments/assets/ef57333e-f879-432a-afb9-180388982478

Key Features

Installation

Via Claude Code Custom Marketplace Source

Install directly from this public GitHub repo. Run these as two separate Claude Code messages; do not paste both lines into the prompt at once.

/plugin marketplace add https://github.com/zarazhangrui/frontend-slides

After that finishes, run:

/plugin install frontend-slides@frontend-slides

Use the HTTPS URL. The shorter zarazhangrui/frontend-slides form may make Claude Code try SSH, which can fail if GitHub is not already in your known_hosts file.

Then use it by typing /frontend-slides:frontend-slides in Claude Code. Claude Code namespaces plugin-installed skills as /plugin-name:skill-name.

Claude Code Manual Installation

Copy the skill files to your Claude Code skills directory:

# Create the skill directory
mkdir -p ~/.claude/skills/frontend-slides/scripts

# Copy the user-facing skill files
cp SKILL.md STYLE_PRESETS.md viewport-base.css html-template.md animation-patterns.md ~/.claude/skills/frontend-slides/
cp -R bold-template-pack ~/.claude/skills/frontend-slides/
cp scripts/extract-pptx.py scripts/deploy.sh scripts/export-pdf.sh ~/.claude/skills/frontend-slides/scripts/

Or clone directly:

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

Then use it by typing /frontend-slides in Claude Code. Standalone skills are not namespaced.

Other Coding Agents

Agents such as Codex, Kimi Code, OpenCode, Gemini CLI, or other local coding assistants can use the same core skill. The simplest path is to send the agent this GitHub repo link and ask it to use the Frontend Slides skill:

https://github.com/zarazhangrui/frontend-slides

If the agent can read GitHub repos or browse files, it should start from SKILL.md and load only the referenced support files it needs:

Some agents can also install the skill for you if they have filesystem access and a known local skills directory. If not, they can still follow SKILL.md directly for the current session.

The Claude Code plugin gives Claude Code a custom marketplace-source install flow and /frontend-slides:frontend-slides command. Other agents usually do not use that command surface.

Usage

Create a New Presentation

/frontend-slides:frontend-slides

> "I want to create a pitch deck for my AI startup"

If installed manually as a standalone Claude Code skill, use /frontend-slides instead.

In non-Claude agents, ask the agent to use the Frontend Slides skill and point it at this repo or SKILL.md.

The skill will:

  1. Ask about your content (slides, messages, images)
  2. Generate 3 visual style previews for you to compare, inferring the vibe from your brief unless you already named one
  3. Let you pick the visual direction
  4. Create the full presentation in your chosen style
  5. Open it in your browser

Convert a PowerPoint

/frontend-slides:frontend-slides

> "Convert my presentation.pptx to a web slideshow"

The skill will:

  1. Extract all text, images, and notes from your PPT
  2. Show you the extracted content for confirmation
  3. Let you pick a visual style
  4. Generate an HTML presentation with all your original assets

Included Styles

Dark Themes

Light Themes

Specialty

Bold Template Pack

The skill also includes 34 optional bold design systems from beautiful-html-templates, such as Neo-Grid Bold, Editorial Tri-Tone, Creative Mode, Broadside, Signal, and Vellum.

During style discovery, the preview set is:

The agent reads the compact bold template index first, then loads only the shortlisted candidates' small preview.md cards for title-slide previews. It loads the full design.md for exactly one bold template only after the user picks that template for the final deck. If the user picks a custom wildcard, the agent expands that preview's own CSS and layout system into the full deck.

Frontend Slides can now draw from the 34 bold design systems in beautiful-html-templates. Three screenshots per template show how each visual system handles different slide layouts. Click any template name to inspect the source template library.

Soft Editorial

Soft Editorial — slide 4 Soft Editorial — slide 6 Soft Editorial — slide 10

Cormorant Garamond serif on warm paper with sage, blush, and lemon accents.

Editorial Forest

Editorial Forest — slide 1 Editorial Forest — slide 2 Editorial Forest — slide 5

Forest green, dusty pink, and warm cream in Source Serif 4 — quiet, intentional quarterly-review aesthetic.

Pin & Paper

Pin & Paper — slide 1 Pin & Paper — slide 11 Pin & Paper — slide 3

Yellow paper with safety-pin illustrations, ink-blue handwritten Caveat, paper-grain texture.

Sakura Chroma

Sakura Chroma — slide 1 Sakura Chroma — slide 3 Sakura Chroma — slide 4

Vintage Japanese cassette-package aesthetic: cream paper, diagonal rainbow ribbons, condensed bold type, JIS-style spec checkboxes.

Stencil & Tablet

Stencil & Tablet — slide 1 Stencil & Tablet — slide 3 Stencil & Tablet — slide 8

Bone paper with stencil-cut headlines and a six-color earth palette: archaeology meets brand.

Cobalt Grid

Cobalt Grid — slide 1 Cobalt Grid — slide 3 Cobalt Grid — slide 5

Electric cobalt italic serifs on a graph-paper canvas, anchored by stair-stepped pixel-glitch decorations and slim hairline rules.

Vellum

Vellum — slide 1 Vellum — slide 4 Vellum — slide 8

Deep navy canvas with warm-yellow italic Cormorant serifs and a single dusty teal accent. A quiet, scholarly aesthetic.

Emerald Editorial

Emerald Editorial — slide 1 Emerald Editorial — slide 3 Emerald Editorial — slide 6

Magazine-cover business deck: emerald + navy + paper with double-rule masthead ornaments and a heavy Bodoni-style display serif.

Neo-Grid Bold

Neo-Grid Bold — slide 1 Neo-Grid Bold — slide 3 Neo-Grid Bold — slide 8

Editorial neo-brutalism with a single neon yellow accent on off-white paper.

Editorial Tri-Tone

Editorial Tri-Tone — slide 1 Editorial Tri-Tone — slide 4 Editorial Tri-Tone — slide 3

Three-color editorial system: dusty pink, mustard cream, and deep burgundy, set in Bricolage + Instrument Serif.

Creative Mode

Creative Mode — slide 1 Creative Mode — slide 4 Creative Mode — slide 6

Cream paper canvas with confident multi-color (green, pink, orange, yellow) accents and Archivo Black display.

Monochrome

Monochrome — slide 1 Monochrome — slide 4 Monochrome — slide 12

Ivory ledger paper with all-black type; Lora serif headlines, Jost body, no color at all.

People's Platform (Block & Bold)

People's Platform (Block & Bold) — slide 1 People's Platform (Block & Bold) — slide 4 People's Platform (Block & Bold) — slide 8

Activist poster energy: blue, orange, red on cream, with Alfa Slab + Caveat Brush.

Pink Script — After Hours

Pink Script — After Hours — slide 1 Pink Script — After Hours — slide 4 Pink Script — After Hours — slide 8

Black canvas, hot pink accent, pearl-cream paper, Instrument Serif headlines: late-night editorial luxury.

8-Bit Orbit

8-Bit Orbit — slide 1 8-Bit Orbit — slide 6 8-Bit Orbit — slide 5

Pixel-art neon arcade aesthetic on a deep navy void.

BlockFrame

BlockFrame — slide 1 BlockFrame — slide 4 BlockFrame — slide 8

Neobrutalist deck with pastel-neon color blocks and chunky black borders.

Blue Professional

Blue Professional — slide 1 Blue Professional — slide 6 Blue Professional — slide 8

Cream paper background with electric cobalt blue accents; clean modern professional.

Bold Poster

Bold Poster — slide 1 Bold Poster — slide 4 Bold Poster — slide 8

Editorial poster aesthetic with massive Shrikhand display and a single fire-engine red accent.

Broadside

Broadside — slide 1 Broadside — slide 4 Broadside — slide 13

Dark editorial canvas with a single fire orange accent and bilingual Latin/Chinese type stack.

Capsule

Capsule — slide 1 Capsule — slide 4 Capsule — slide 8

Modular pill-shaped cards on warm bone with a full pastel-pop palette.

Cartesian

Cartesian — slide 1 Cartesian — slide 4 Cartesian — slide 8

Quiet warm-neutral palette with classical Playfair serifs; tasteful and unhurried.

Coral

Coral — slide 1 Coral — slide 4 Coral — slide 8

Cream and coral on near-black, set in oversized Bebas Neue.

Daisy Days

Daisy Days — slide 1 Daisy Days — slide 4 Daisy Days — slide 8

Cheerful pastel deck with hand-drawn daisies, stars, and rainbows. Friendly, soft, and warm.

Grove

Grove — slide 1 Grove — slide 4 Grove — slide 8

Forest-green canvas with cream type, classical Playfair serifs, and a single rust accent.

Mat

Mat — slide 1 Mat — slide 4 Mat — slide 8

Dark sage canvas with bone paper and burnt-orange accent; mid-century modern with wood undertones.

Playful

Playful — slide 1 Playful — slide 6 Playful — slide 8

Sun-warm peach background with Syne display: a friendly indie launch deck.

Raw Grid

Raw Grid — slide 1 Raw Grid — slide 4 Raw Grid — slide 8

Neo-brutalist deck with thick borders, offset shadows, and a pink/sage/ink palette.

Retro Windows

Retro Windows — slide 1 Retro Windows — slide 4 Retro Windows — slide 8

Windows 95 chrome: gray title bars, MS Sans Serif, pixel typography, full nostalgia.

Retro Zine

Retro Zine — slide 1 Retro Zine — slide 4 Retro Zine — slide 8

Beige paper with green accent and Bebas Neue + Caveat: a riso-printed zine in HTML form.

Scatterbrain

Scatterbrain — slide 1 Scatterbrain — slide 4 Scatterbrain — slide 8

Post-it inspired: pastel sticky notes, Caveat handwriting, Shrikhand and Zilla Slab type stack.

Signal

Signal — slide 1 Signal — slide 18 Signal — slide 8

Deep navy canvas with bone paper and a single muted-gold accent; institutional with quiet weight.

Studio

Studio — slide 1 Studio — slide 4 Studio — slide 8

Black canvas with electric-yellow type; high-voltage design studio aesthetic.

Biennale Yellow

Biennale Yellow — slide 1 Biennale Yellow — slide 5 Biennale Yellow — slide 8

Solar yellow on warm parchment with deep indigo serif and atmospheric sun-glow gradients. Dutch-editorial poster energy.

Long Table

Long Table — slide 1 Long Table — slide 3 Long Table — slide 7

Warm cream and rust-red supper-club aesthetic with bold uppercase grotesk headlines, italic Fraunces, and pill-shaped outlined buttons.

Architecture

This skill uses progressive disclosure — the main SKILL.md is a workflow map, with supporting files loaded on-demand only when needed:

File Purpose Loaded When
SKILL.md Core workflow and rules Always (skill invocation)
STYLE_PRESETS.md 12 curated visual presets Phase 2 (style selection)
bold-template-pack/selection-index.json Compact bold template metadata for candidate selection Phase 2 (style selection)
bold-template-pack/templates/*/preview.md Tiny style cards for shortlisted bold previews Phase 2 after shortlisting
bold-template-pack/templates/*/design.md Full design system for the selected bold template Phase 3 after user selection
viewport-base.css Mandatory fixed-stage CSS Phase 3 (generation)
html-template.md HTML structure and JS features Phase 3 (generation)
animation-patterns.md CSS/JS animation reference Phase 3 (generation)
scripts/extract-pptx.py PPT content extraction Phase 4 (conversion)
scripts/deploy.sh Deploy to Vercel Phase 6 (sharing)
scripts/export-pdf.sh Export slides to PDF Phase 6 (sharing)

Maintenance-only source metadata and regeneration helpers live outside the user-facing skill package. Normal users do not need them.

This design follows agent-skill best practices: give the agent a map first, then reveal only the specific files needed for the current choice.

Philosophy

This skill was born from the belief that:

  1. You don't need to be a designer to make beautiful things. You just need to react to what you see.

  2. Dependencies are debt. A single HTML file will work in 10 years. A React project from 2019? Good luck.

  3. Generic is forgettable. Every presentation should feel custom-crafted, not template-generated.

  4. Comments are kindness. Code should explain itself to future-you (or anyone else who opens it).

Sharing Your Presentations

After creating a presentation, the skill offers two ways to share it:

Deploy to a Live URL

One command deploys your slides to a permanent, shareable URL that works on any device — phones, tablets, laptops:

bash scripts/deploy.sh ./my-deck/
# or
bash scripts/deploy.sh ./presentation.html

Uses Vercel (free tier). The skill walks you through signup and login if it's your first time.

Export to PDF

Convert your slides to a PDF for email, Slack, Notion, or printing:

bash scripts/export-pdf.sh ./my-deck/index.html
bash scripts/export-pdf.sh ./presentation.html ./output.pdf

Uses Playwright to screenshot each slide at 1920×1080 and combine into a PDF. Installs automatically if needed. Animations are not preserved (it's a static snapshot).

Requirements

Credits

Created by @zarazhangrui.

License

MIT — Use it, modify it, share it.

frontend-slides (zarazhangrui/frontend-slides)

正在搜索数据库…

这是什么?Frontend Slides 是一个面向编程代理的技能,可以制作精美的 HTML 演示文稿——既能从零开始创建,也能转换现有的 PowerPoint 文件。它以 Claude Code 插件的形式发布,核心的 SKILL.md 也可以在其他编程代理中使用。
这是一个要安装的应用,还是给我的编程代理用的东西?既不是应用也不是库:它是一组指令和样式文件(SKILL.md 加上 CSS 和模板引用),你的编程代理读取并按照这些文件来帮你生成幻灯片。Claude Code 的打包形式是插件;其他代理则直接读取 SKILL.md。
我该怎么在 Claude Code 里安装它?一种方式是把本 GitHub 仓库作为 marketplace 来源安装(把两条命令分别作为单独的 Claude Code 消息发送),然后调用 /frontend-slides:frontend-slides;另一种方式是把技能文件复制或克隆到你的 Claude Code skills 目录,这样就能用独立的 /frontend-slides 命令。
做幻灯片需要 npm、Node 或任何构建工具吗?不需要——生成的演示文稿是内嵌 CSS/JS 的单个 HTML 文件:不用 npm,不用构建工具,也不用框架。对于非 Claude 的代理,唯一真正的要求是代理能访问文件系统并执行 shell 命令。
安装时有什么要注意的坑吗?有:要用仓库的完整 HTTPS URL,因为简写的 zarazhangrui/frontend-slides 形式可能让 Claude Code 尝试走 SSH,而在 GitHub 还没加入你的 known_hosts 时这会失败。另外,两条安装命令要分开两条消息发送,不要一起粘贴。
我不是设计师——怎么决定演示文稿长什么样?你完全不用费心用文字描述自己的品味:这个技能会根据你的需求描述推断风格,生成 3 个视觉样式预览供你比较,然后按你选中的方向制作完整演示文稿,并在浏览器中打开。
除了 Claude Code,它还能配合其他编程代理使用吗?可以——Codex、Kimi Code、OpenCode、Gemini CLI 以及其他本地编程助手都能使用同一个核心技能。最简单的做法是把本仓库链接发给代理,让它从 SKILL.md 开始;只是这些代理没有 /frontend-slides 这个命令入口。
它能转换我现有的 PowerPoint 文件吗?可以。它会从你的 PPT 中提取全部文字、图片和备注,先展示提取的内容供你确认,再让你挑选视觉样式,最后生成一个保留你所有原始素材的 HTML 演示文稿。
它内置多少现成样式?共 12 个精选预设,涵盖深色、浅色和特色主题(比如 Terminal Green 和 Swiss Modern),此外还有一个可选的 Bold Template Pack,内含 34 套设计系统,例如 Neo-Grid Bold、Editorial Tri-Tone 和 Vellum。
Anti-AI-Slop 功能是干什么的?内置样式都经过筛选,避免千篇一律的 AI 审美——用作者的话说,就是告别白底紫色渐变。样式探索时始终会混合一个稳妥预设、至少一个大胆模板和一个随机风格选项。
生成的幻灯片内部是什么样子的?是一个无障碍、固定 16:9 的 HTML 文件,代码注释清晰,你可以自己动手修改。
大小
0.6 MB
星标
32.5K
时长
10个月
提交 · 90 天