frontend-slides
Use when creating animation-rich HTML presentations or convert PPT to web.
Best use case
frontend-slides is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use when creating animation-rich HTML presentations or convert PPT to web.
Teams using frontend-slides should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/frontend-slides/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How frontend-slides Compares
| Feature / Agent | frontend-slides | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use when creating animation-rich HTML presentations or convert PPT to web.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Frontend Slides Skill
Create zero-dependency, animation-rich HTML presentations that run entirely in the browser. This skill helps non-designers discover their preferred aesthetic through visual exploration ("show, don't tell"), then generates production-quality slide decks.
## Core Philosophy
1. **Zero Dependencies** — Single self-contained HTML files. No npm, no build tools.
2. **Show, Don't Tell** — Generate visual previews; people don't know what they want until they see it.
3. **Distinctive Design** — Avoid generic "AI slop" aesthetics. Every deck should feel custom-crafted.
4. **Production Quality** — Well-commented, accessible, performant code.
5. **Viewport Fitting (NON-NEGOTIABLE)** — Every slide MUST fit exactly in the viewport. No scrolling within slides. Ever.
## Phase 0: Detect Mode First
Before anything else, identify which mode applies:
| Mode | Trigger | Go to |
|------|---------|-------|
| **A: New Presentation** | Creating from scratch | Phase 1 (Content Discovery) |
| **B: PPT Conversion** | User has a .ppt/.pptx file | Phase 4 (PPT Extraction) |
| **C: Enhancement** | Existing HTML presentation to improve | Read file → enhance |
## Core Workflow (New Presentation)
1. **Phase 1 — Content Discovery:** Extract topic, key messages, audience, tone, slide count.
2. **Phase 2 — Style Discovery:** Generate 3 visual thumbnails (different aesthetics). User picks or mixes. Never ask abstract style questions.
3. **Phase 3 — Generate Presentation:** Build the full HTML file based on content + chosen style.
4. **Phase 4 (if PPT) — Extract & Convert:** Parse PPTX structure, preserve layout intent, elevate with web animations.
5. **Phase 5 — Deliver:** Output as a single `.html` file. Include keyboard nav, swipe support, progress bar.
## Generating the Presentation (Phase 3)
### Required HTML Architecture
- One `.html` file; all CSS/JS inline
- `<section class="slide">` per slide
- CSS custom properties (`:root { --accent: ...; --title-size: clamp(...); }`) for easy theming
- `SlidePresentation` JS class: keyboard nav (arrows, space), touch/swipe, mouse wheel, progress bar, nav dots
- `IntersectionObserver` for scroll-triggered `.reveal` animations
### Required JavaScript Features
Every presentation needs:
- Keyboard navigation (← → Space)
- Touch/swipe support
- Mouse wheel navigation
- Progress bar updates
- Navigation dots
- Scroll-triggered animations via `IntersectionObserver`
Optional enhancements (based on chosen style): custom cursor, particle backgrounds, parallax, 3D tilt, magnetic buttons, counter animations.
### Code Quality
- Comment every section: what it does, why, how to modify
- Semantic HTML (`<section>`, `<nav>`, `<main>`)
- ARIA labels where needed
- `prefers-reduced-motion` support
## CRITICAL: Viewport Fitting Requirements
**The Golden Rule:** Each slide = exactly one viewport height (`100vh`/`100dvh`). Content overflows? Split into multiple slides. Never allow scrolling within a slide.
### Mandatory CSS for Every Presentation
```css
html { scroll-snap-type: y mandatory; height: 100%; }
body { height: 100%; overflow-x: hidden; }
.slide {
width: 100vw;
height: 100vh;
height: 100dvh; /* mobile browsers */
overflow: hidden; /* CRITICAL */
scroll-snap-align: start;
display: flex;
flex-direction: column;
position: relative;
}
/* ALL typography and spacing must use clamp() */
:root {
--title-size: clamp(1.5rem, 5vw, 4rem);
--body-size: clamp(0.75rem, 1.5vw, 1.125rem);
--slide-padding: clamp(1rem, 4vw, 4rem);
}
```
### Content Density Limits (per slide)
| Slide Type | Max Content |
|------------|-------------|
| Title | 1 heading + 1 subtitle + optional tagline |
| Content | 1 heading + 4–6 bullets OR 2 paragraphs |
| Feature grid | 1 heading + 6 cards max |
| Code | 1 heading + 8–10 lines |
| Quote | 1 quote (3 lines max) + attribution |
| Image | 1 heading + 1 image (max 60vh) |
**If content exceeds limits → split into multiple slides, never scroll.**
### Responsive Breakpoints Required
```css
@media (max-height: 700px) { /* reduce padding + font sizes */ }
@media (max-height: 600px) { /* hide decorative elements */ }
@media (max-height: 500px) { /* extra compact for landscape phones */ }
@media (max-width: 600px) { /* stack grids, larger font scale */ }
```
### Pre-Generation Checklist
- ✅ Every `.slide` has `height: 100vh; height: 100dvh; overflow: hidden;`
- ✅ All font sizes use `clamp()`
- ✅ All spacing uses `clamp()` or viewport units
- ✅ Content containers have `max-height` constraints
- ✅ Images constrained to `max-height: min(50vh, 400px)`
- ✅ Grids use `auto-fit` with `minmax()`
- ✅ Breakpoints for heights: 700px, 600px, 500px
## Output Format
A single self-contained `presentation.html` file (or `[name].html`) with all CSS/JS inline. No external dependencies except optional web fonts (Fontshare/Google Fonts).
---
## References
This skill content is modularized into reference docs for readability.
- [Core Philosophy](references/core-philosophy.md)
- [CRITICAL: Viewport Fitting Requirements](references/critical-viewport-fitting-requirements.md)
- [Phase 0: Detect Mode](references/phase-0-detect-mode.md)
- [Phase 1: Content Discovery (New Presentations)](references/phase-1-content-discovery-new-presentations.md)
- [Phase 2: Style Discovery (Visual Exploration)](references/phase-2-style-discovery-visual-exploration.md)
- [Phase 3: Generate Presentation](references/phase-3-generate-presentation.md)
- [Phase 4: PPT Conversion](references/phase-4-ppt-conversion.md)
- [Phase 5: Delivery](references/phase-5-delivery.md)
- [Style Reference: Effect → Feeling Mapping](references/style-reference-effect-feeling-mapping.md)
- [Animation Patterns Reference](references/animation-patterns-reference.md)
- [Troubleshooting](references/troubleshooting.md)
- [Related Skills](references/related-skills.md)
- [Example Session Flow](references/example-session-flow.md)
- [Conversion Session Flow](references/conversion-session-flow.md)
- [Adding Slides from Images](references/adding-slides-from-images.md) — recreating screenshot visuals as inline SVG/HTML, slide critique workflow, Surge deploy tips
- [Existing Surge Deck Enhancement](references/existing-surge-deck-enhancement.md) — backup-first workflow, Google Slides visual extraction, localhost/live verification, screenshot delivery, and pitfalls for editing deployed HTML decks
- [Live Demo Strategy](references/live-demo-strategy.md) — selecting, sequencing, and framing live demos in decks; the "toy vs factory" anti-pattern; risk management; slide structure for demo slidesRelated Skills
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Generates creative, polished code that avoids generic AI aesthetics. Use when the user asks to build web components, pages, artifacts, posters, or applications, or when any design skill requires project context.
writer
Write content in Eric's voice — articles, blog posts, tweets, social media posts, marketing copy, newsletter drafts. Loads WRITING-STYLE.md and enforces kill phrases.
positioning-angles
Use when defining product positioning, choosing strategic angles, crafting value propositions, competitive positioning, product messaging, differentiation strategy, or go-to-market angles. Also use for 'how should I position my app', 'what angle should I use', 'painkiller vs vitamin', or 'market positioning'.
outline-generator
Use when generating outlines, article structures, content outlines, blog outlines, planning article sections, structuring posts, breaking down topics into sections, or organizing ideas for long-form content. Also use for 'outline this', 'structure this article', or 'plan the sections'.
last30days-open
Use only when the user explicitly asks for the open variant of last30days, including watchlists, briefings, and history queries. Sources: Reddit, X, YouTube, web.
last30days
Use when researching what happened in the last 30 days on a topic. Also triggered by 'last30'. Sources: Reddit, X, YouTube, web. Produces expert-level summary with copy-paste-ready prompts.
hooks
Use when generating hooks, headlines, titles, and scroll-stopping openers for content. Also use when analyzing viral posts, Reels, TikToks, YouTube Shorts, or successful social examples to extract reusable hook patterns and improve hook guidance.
evaluate-content
Use when judging content quality OR editing/improving existing copy: shareability, readability, voice, cuttability, angle, copy sweeps.
editor-in-chief
Use when a first draft is complete and all Phase 1 gates are done: topic selected (seo-research), title approved (hooks), outline approved (outline-generator), draft written (writer). Runs autonomous diagnosis-prescribe-rewrite loop before Substack.
copywriting
Write or improve marketing copy for any surface: pages, ads, app stores, landing pages, TikTok/Meta scripts, push notifications, UGC. Combines page copy frameworks with direct response principles.
content-strategy
Use when building content strategy: hooks, angles, and ideas from what's trending now. Covers organic and paid creative across TikTok, X, YouTube, Meta, LinkedIn.
content-pipeline
Orchestrator for the 3-article content pipeline — runs research phase, spawns parallel article sub-agents, creates Typefully drafts. Use when running the full content pipeline (usually via cron at 3am).