Create beautiful slides on the web using a coding agent's frontend skills
JavaScript ai-slidesanthropicclaudeclaude-codeclaude-skillgenerative-uihtmlpresentationslidesvibe-coding
Make frontend slides skill agent-neutral
Zara Zhangfb5b0373761f
diff --git a/README.md b/README.mdindex d023863..fbf4c4a 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@# Frontend Slides-A Claude Code skill for creating stunning, animation-rich HTML presentations — from scratch or by converting PowerPoint files.+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.## What This Does@@ -21,7 +21,7 @@ https://github.com/user-attachments/assets/ef57333e-f879-432a-afb9-180388982478## Installation-### Via Plugin Marketplace (Recommended)+### Via Claude Code Plugin Marketplace (Recommended)Install directly from Claude Code:@@ -32,7 +32,7 @@ Install directly from Claude Code:Then use it by typing `/frontend-slides` in Claude Code.-### Manual Installation+### Claude Code Manual InstallationCopy the skill files to your Claude Code skills directory:@@ -54,16 +54,31 @@ git clone https://github.com/zarazhangrui/frontend-slides.git ~/.claude/skills/fThen use it by typing `/frontend-slides` in Claude Code.+### Other Coding Agents++Agents such as Codex, Kimi Code, OpenCode, Gemini CLI, or other local coding assistants can use the same core skill by reading `SKILL.md` from this repo together with the referenced support files:++- `STYLE_PRESETS.md`+- `viewport-base.css`+- `html-template.md`+- `animation-patterns.md`+- `bold-template-pack/`+- `scripts/`++The Claude Code plugin gives Claude Code a marketplace install flow and `/frontend-slides` command. Other agents usually do not use that command surface; they should follow `SKILL.md` directly inside a workspace.+## Usage### Create a New Presentation-```+```text/frontend-slides> "I want to create a pitch deck for my AI startup"```+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)@@ -537,16 +552,15 @@ Uses [Playwright](https://playwright.dev) to screenshot each slide at 1920×1080## Requirements-- [Claude Code](https://claude.ai/claude-code) CLI+- A local coding agent with filesystem access and the ability to run shell commands+- Claude Code is required only for the marketplace plugin install and `/frontend-slides` command- For PPT conversion: Python with `python-pptx` library- For URL deployment: Node.js + Vercel account (free)- For PDF export: Node.js (Playwright installs automatically)## Credits-Created by [@zarazhangrui](https://github.com/zarazhangrui) with Claude Code.--Inspired by the "Vibe Coding" philosophy — building beautiful things without being a traditional software engineer.+Created by [@zarazhangrui](https://github.com/zarazhangrui).## Licensediff --git a/SKILL.md b/SKILL.mdindex 9dab180..9b8374b 100644--- a/SKILL.md+++ b/SKILL.md@@ -88,7 +88,7 @@ When enhancing existing presentations, fixed-stage fitting is the biggest risk:## Phase 1: Content Discovery (New Presentations)-**Ask ALL questions in a single AskUserQuestion call** so the user fills everything out at once:+**Ask ALL questions together** so the user fills everything out at once. If the current environment provides a native structured-question UI, use it; otherwise ask in one concise message with clearly numbered choices:**Question 1 — Purpose** (header: "Purpose"):What is this presentation for? Options: Pitch deck / Teaching-Tutorial / Conference talk / Internal presentation@@ -118,10 +118,10 @@ If user selected "No images" → skip to Phase 2.If user provides an image folder:1. **Scan** — List all image files (.png, .jpg, .svg, .webp, etc.)-2. **View each image** — Use the Read tool (Claude is multimodal)+2. **Inspect each image** — Use the agent's available image-understanding capability. If image reading is unavailable, use filenames/metadata and ask the user to clarify only when needed3. **Evaluate** — For each: what it shows, USABLE or NOT USABLE (with reason), what concept it represents, dominant colors4. **Co-design the outline** — Curated images inform slide structure alongside text. This is NOT "plan slides then add images" — design around both from the start (e.g., 3 screenshots → 3 feature slides, 1 logo → title/closing slide)-5. **Confirm via AskUserQuestion** (header: "Outline"): "Does this slide outline and image selection look right?" Options: Looks good / Adjust images / Adjust outline+5. **Confirm the outline** using the same structured-question mechanism when available: "Does this slide outline and image selection look right?" Options: Looks good / Adjust images / Adjust outline**Logo in previews:** If a usable logo was identified, embed it (base64) into each style preview in Phase 2 — the user sees their brand styled three different ways.@@ -186,7 +186,7 @@ Read [STYLE_PRESETS.md](STYLE_PRESETS.md) for safe preset candidates. If [bold-t- If the slide needs chrome, use real deck chrome only: the deck title, section title, date, author, company, page number, or a genuine content phrase from the user's material.- Before opening previews, inspect the visible text and revise if any internal metadata appears.-Save previews to `.claude-design/slide-previews/` (style-a.html, style-b.html, style-c.html). Each should be self-contained and compact, showing one animated title slide.+Save previews to `.frontend-slides/slide-previews/` (style-a.html, style-b.html, style-c.html). Each should be self-contained and compact, showing one animated title slide.Open each preview automatically for the user.@@ -260,7 +260,7 @@ When converting PowerPoint files:## Phase 5: Delivery-1. **Clean up** — Delete `.claude-design/slide-previews/` if it exists+1. **Clean up** — Delete `.frontend-slides/slide-previews/` if it exists2. **Open** — Use `open [filename].html` to launch in browser3. **Summarize** — Tell the user:- File location, style name, slide countdiff --git a/plugins/frontend-slides/.claude-plugin/plugin.json b/plugins/frontend-slides/.claude-plugin/plugin.jsonindex 09f92de..972ef51 100644--- a/plugins/frontend-slides/.claude-plugin/plugin.json+++ b/plugins/frontend-slides/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "frontend-slides",- "version": "1.1.0",+ "version": "1.1.1","description": "Zero-dependency HTML presentation generator with safe presets, bold template-library styles, PPT conversion, and anti-AI-slop design philosophy.","skills": "./skills/","author": {diff --git a/plugins/frontend-slides/skills/frontend-slides/SKILL.md b/plugins/frontend-slides/skills/frontend-slides/SKILL.mdindex 9dab180..9b8374b 100644--- a/plugins/frontend-slides/skills/frontend-slides/SKILL.md+++ b/plugins/frontend-slides/skills/frontend-slides/SKILL.md@@ -88,7 +88,7 @@ When enhancing existing presentations, fixed-stage fitting is the biggest risk:## Phase 1: Content Discovery (New Presentations)-**Ask ALL questions in a single AskUserQuestion call** so the user fills everything out at once:+**Ask ALL questions together** so the user fills everything out at once. If the current environment provides a native structured-question UI, use it; otherwise ask in one concise message with clearly numbered choices:**Question 1 — Purpose** (header: "Purpose"):What is this presentation for? Options: Pitch deck / Teaching-Tutorial / Conference talk / Internal presentation@@ -118,10 +118,10 @@ If user selected "No images" → skip to Phase 2.If user provides an image folder:1. **Scan** — List all image files (.png, .jpg, .svg, .webp, etc.)-2. **View each image** — Use the Read tool (Claude is multimodal)+2. **Inspect each image** — Use the agent's available image-understanding capability. If image reading is unavailable, use filenames/metadata and ask the user to clarify only when needed3. **Evaluate** — For each: what it shows, USABLE or NOT USABLE (with reason), what concept it represents, dominant colors4. **Co-design the outline** — Curated images inform slide structure alongside text. This is NOT "plan slides then add images" — design around both from the start (e.g., 3 screenshots → 3 feature slides, 1 logo → title/closing slide)-5. **Confirm via AskUserQuestion** (header: "Outline"): "Does this slide outline and image selection look right?" Options: Looks good / Adjust images / Adjust outline+5. **Confirm the outline** using the same structured-question mechanism when available: "Does this slide outline and image selection look right?" Options: Looks good / Adjust images / Adjust outline**Logo in previews:** If a usable logo was identified, embed it (base64) into each style preview in Phase 2 — the user sees their brand styled three different ways.@@ -186,7 +186,7 @@ Read [STYLE_PRESETS.md](STYLE_PRESETS.md) for safe preset candidates. If [bold-t- If the slide needs chrome, use real deck chrome only: the deck title, section title, date, author, company, page number, or a genuine content phrase from the user's material.- Before opening previews, inspect the visible text and revise if any internal metadata appears.-Save previews to `.claude-design/slide-previews/` (style-a.html, style-b.html, style-c.html). Each should be self-contained and compact, showing one animated title slide.+Save previews to `.frontend-slides/slide-previews/` (style-a.html, style-b.html, style-c.html). Each should be self-contained and compact, showing one animated title slide.Open each preview automatically for the user.@@ -260,7 +260,7 @@ When converting PowerPoint files:## Phase 5: Delivery-1. **Clean up** — Delete `.claude-design/slide-previews/` if it exists+1. **Clean up** — Delete `.frontend-slides/slide-previews/` if it exists2. **Open** — Use `open [filename].html` to launch in browser3. **Summarize** — Tell the user:- File location, style name, slide count