agentleFS
hamzafarooqhamzafarooq/claude-code-starter/.claude/skills/frontend-slides/SKILL.md

frontend-slides

Skill145 starsChanged 7 months agoMITView on GitHub

Create stunning, animation-rich single-file HTML presentations from scratch or by converting a PowerPoint (.pptx) file. Use when the user wants to build a presentation, convert a PPT to web format, or create slides for a talk, pitch, or demo. Shows 3 visual style previews before building the full deck — no design experience needed.

  • Installs packages

52 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use investor-materials, swift-protocol-di-testing and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • InfopibeSkill

    investor-materials

    Create and update pitch decks, one-pagers, investor memos, accelerator applications, financial models, and fundraising materials. Use when the user needs investor-facing documents, projections, use-of-funds tables, milestone plans, or materials that must stay internally consistent across multiple fundraising assets.

    Also in 6 projects that use this

  • InfopibeSkill

    swift-protocol-di-testing

    Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.

    Also in 4 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 4 projects that use this

  • WorldFlowAISkill

    clickhouse-io

    ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

    Also in 5 projects that use this

  • OpenAISkill

    swiftui-patterns

    Build macOS SwiftUI scenes and components with desktop patterns. Use when shaping windows, commands, toolbars, settings, split views, or inspectors.

    Also in 4 projects that use this

  • +7 more from Infopibe

The file

We split this skill into the rules it gives an agent

8 rules. 1 is common, 3 are distinctive, and 4 are very specific to this project.

  • 1

    Common

    Most of the 50 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Create zero-dependency, animation-rich HTML presentations that run entirely in the browser.

    line 8
  2. Very specific:

    If a .pptx file is provided → jump to Phase 4 (PowerPoint Conversion) first, then return here.

    line 29
  3. Distinctive:

    Ask the user their vibe (multiselect, max 2):

    line 35
  4. Distinctive:

    Wait for the user to pick one (A, B, or C) — or ask to mix elements from two.

    line 60
  5. Distinctive:

    Every slide headline = one complete insight, not a topic label

    line 69
  6. Very specific:

    All font sizes: clamp(min, preferred, max) — never fixed px/rem

    line 99
  7. Very specific:

    Never negate CSS functions directly — use calc(-1 * clamp(...))

    line 102
  8. Very specific:

    Run the extractor (auto-installs python-pptx if needed):

    line 110

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Slides

Create zero-dependency, animation-rich HTML presentations that run entirely in the browser.

Core Principles

  1. Zero Dependencies — Single HTML files with inline CSS/JS. No npm, no build tools.
  2. Show, Don't Tell — Generate 3 visual previews before building. People discover what they want by seeing options, not describing them.
  3. Distinctive Design — No generic slides. Every presentation must feel custom-crafted.
  4. Viewport Fitting (NON-NEGOTIABLE) — Every slide MUST fit exactly within 100vh. No scrolling within slides ever. Content overflows? Split into multiple slides.

Workflow

Phase 1 — Gather Content

Ask the user:

  1. "What's the topic and goal? (e.g. investor pitch, product demo, teaching a concept)"
  2. "Who is the audience?"
  3. "How many slides roughly?"
  4. "Paste your content, bullets, or outline — OR share a .pptx file path to convert."

If a .pptx file is provided → jump to Phase 4 (PowerPoint Conversion) first, then return here.


Phase 2 — Style Selection (Always Do This)

Ask the user their vibe (multiselect, max 2):

  • Impressed / Confident
  • Excited / Energized
  • Calm / Focused
  • Inspired / Moved

Map their vibe to 3 distinct presets from this list and generate one single-slide HTML preview for each:

PresetFeel
Bold SignalDark, high-contrast, confident
Electric StudioVibrant neon on dark, energized
Dark BotanicalDark with organic texture, calm authority
Notebook TabsLight, handwritten-feel, approachable
Pastel GeometrySoft colors, geometric shapes, friendly
Neon CyberCyberpunk grid, glowing text, futuristic
Creative VoltageBold gradients, dynamic diagonals
Split PastelTwo-tone split layout, modern editorial
Paper & InkCream background, serif type, classic
Swiss ModernBrutalist grid, red + black, no-nonsense
Vintage EditorialMagazine-style, muted tones, typographic
Minimal ZenWhite space, single accent color, clean

Save 3 preview files to .claude-design/slide-previews/ as style-a.html, style-b.html, style-c.html and open them.

Wait for the user to pick one (A, B, or C) — or ask to mix elements from two.


Phase 3 — Build the Full Deck

Using the chosen style, generate the complete single-file HTML presentation.

Slide structure rules:

  • Every slide headline = one complete insight, not a topic label
    • Bad: "Market Opportunity"
    • Good: "The $4B SMB payroll market is 80% undigitized"
  • Body supports the headline — never repeats it
  • Max bullets/content per slide type:
Slide TypeMaximum Content
Title1 heading + 1 subtitle + optional tagline
Content1 heading + 4–6 bullets OR 2 paragraphs
Feature grid1 heading + 6 cards max (2×3 or 3×2)
Code1 heading + 8–10 lines of code
Quote1 quote (max 3 lines) + attribution
Image1 heading + 1 image (max 60vh)

Required slides:

  1. Title slide
  2. Agenda (for decks over 8 slides)
  3. Content slides
  4. Summary / So what

HTML requirements:

  • Fully self-contained — no external CDN, no imports
  • Keyboard navigation: arrow keys + spacebar
  • Progress indicator
  • Speaker notes in hidden <div> (toggle with N key)
  • prefers-reduced-motion support

Viewport fitting (mandatory):

  • Every .slide: height: 100vh; height: 100dvh; overflow: hidden;
  • All font sizes: clamp(min, preferred, max) — never fixed px/rem
  • Images: max-height: min(50vh, 400px)
  • Media breakpoints at 700px, 600px, 500px height
  • Never negate CSS functions directly — use calc(-1 * clamp(...))

Output the complete HTML file. Default filename: presentation.html.


Phase 4 — PowerPoint Conversion (if .pptx provided)

  1. Run the extractor (auto-installs python-pptx if needed):
    pip install python-pptx -q
    python -c "
    from pptx import Presentation
    import json, sys
    prs = Presentation(sys.argv[1])
    slides = []
    for i, slide in enumerate(prs.slides):
        texts = [shape.text for shape in slide.shapes if shape.has_text_frame]
        slides.append({'slide': i+1, 'content': texts})
    print(json.dumps(slides, indent=2))
    " <path_to_pptx>
  2. Confirm extracted slide titles, content summaries, and image counts with the user.
  3. Proceed to Phase 2 for style selection.
  4. Generate HTML preserving all text, slide order, and speaker notes (as HTML comments).

Optional Post-Build

Deploy to Vercel (requires Node + Vercel CLI):

vercel deploy ./presentation.html

Export to PDF (requires Node + Playwright):

npx playwright install chromium --with-deps
node -e "
const { chromium } = require('playwright');
(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage();
  await page.goto('file://' + require('path').resolve('presentation.html'));
  await page.pdf({ path: 'presentation.pdf', printBackground: true });
  await browser.close();
  console.log('Saved: presentation.pdf');
})();
"

Source

Based on frontend-slides by Zara Zhang Rui.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.