Catalog
affaan-m/frontend-slides

affaan-m

frontend-slides

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

NewUpdated Sep 21, 2026

Frontend Slides

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

Inspired by the visual exploration approach showcased in work by zarazhangrui (credit: @zarazhangrui).

When to Activate

  • Creating a talk deck, pitch deck, workshop deck, or internal presentation
  • Converting .ppt or .pptx slides into an HTML presentation
  • Improving an existing HTML presentation's layout, motion, or typography
  • Exploring presentation styles with a user who does not know their design preference yet

Non-Negotiables

  1. Zero dependencies: default to one self-contained HTML file with inline CSS and JS.
  2. Viewport fit is mandatory: every slide must fit inside one viewport with no internal scrolling.
  3. Show, don't tell: use visual previews instead of abstract style questionnaires.
  4. Distinctive design: avoid generic purple-gradient, Inter-on-white, template-looking decks.
  5. Production quality: keep code commented, accessible, responsive, and performant.

Before generating, read STYLE_PRESETS.md for the viewport-safe CSS base, density limits, preset catalog, and CSS gotchas.

Workflow

1. Detect Mode

Choose one path:

  • New presentation: user has a topic, notes, or full draft
  • PPT conversion: user has .ppt or .pptx
  • Enhancement: user already has HTML slides and wants improvements

2. Discover Content

Ask only the minimum needed:

  • purpose: pitch, teaching, conference talk, internal update
  • length: short (5-10), medium (10-20), long (20+)
  • content state: finished copy, rough notes, topic only

If the user has content, ask them to paste it before styling.

3. Discover Style

Default to visual exploration.

If the user already knows the desired preset, skip previews and use it directly.

Otherwise:

  1. Ask what feeling the deck should create: impressed, energized, focused, inspired.
  2. Generate 3 single-slide preview files in .ecc-design/slide-previews/.
  3. Each preview must be self-contained, show typography/color/motion clearly, and stay under roughly 100 lines of slide content.
  4. Ask the user which preview to keep or what elements to mix.

Use the preset guide in STYLE_PRESETS.md when mapping mood to style.

4. Build the Presentation

Output either:

  • presentation.html
  • [presentation-name].html

Use an assets/ folder only when the deck contains extracted or user-supplied images.

Required structure:

  • semantic slide sections
  • a viewport-safe CSS base from STYLE_PRESETS.md
  • CSS custom properties for theme values
  • a presentation controller class for keyboard, wheel, and touch navigation
  • Intersection Observer for reveal animations
  • reduced-motion support

5. Enforce Viewport Fit

Treat this as a hard gate.

Rules:

  • every .slide must use height: 100vh; height: 100dvh; overflow: hidden;
  • all type and spacing must scale with clamp()
  • when content does not fit, split into multiple slides
  • never solve overflow by shrinking text below readable sizes
  • never allow scrollbars inside a slide

Use the density limits and mandatory CSS block in STYLE_PRESETS.md.

6. Validate

Check the finished deck at these sizes:

  • 1920x1080
  • 1280x720
  • 768x1024
  • 375x667
  • 667x375

If browser automation is available, use it to verify no slide overflows and that keyboard navigation works.

7. Deliver

At handoff:

  • delete temporary preview files unless the user wants to keep them
  • open the deck with the platform-appropriate opener when useful
  • summarize file path, preset used, slide count, and easy theme customization points

Use the correct opener for the current OS:

  • macOS: open file.html
  • Linux: xdg-open file.html
  • Windows: start "" file.html

PPT / PPTX Conversion

For PowerPoint conversion:

  1. Prefer python3 with python-pptx to extract text, images, and notes.
  2. If python-pptx is unavailable, ask whether to install it or fall back to a manual/export-based workflow.
  3. Preserve slide order, speaker notes, and extracted assets.
  4. After extraction, run the same style-selection workflow as a new presentation.

Keep conversion cross-platform. Do not rely on macOS-only tools when Python can do the job.

Implementation Requirements

HTML / CSS

  • Use inline CSS and JS unless the user explicitly wants a multi-file project.
  • Fonts may come from Google Fonts or Fontshare.
  • Prefer atmospheric backgrounds, strong type hierarchy, and a clear visual direction.
  • Use abstract shapes, gradients, grids, noise, and geometry rather than illustrations.

JavaScript

Include:

  • keyboard navigation
  • touch / swipe navigation
  • mouse wheel navigation
  • progress indicator or slide index
  • reveal-on-enter animation triggers

Accessibility

  • use semantic structure (main, section, nav)
  • keep contrast readable
  • support keyboard-only navigation
  • respect prefers-reduced-motion

Content Density Limits

Use these maxima unless the user explicitly asks for denser slides and readability still holds:

Slide type Limit
Title 1 heading + 1 subtitle + optional tagline
Content 1 heading + 4-6 bullets or 2 short paragraphs
Feature grid 6 cards max
Code 8-10 lines max
Quote 1 quote + attribution
Image 1 image constrained by viewport

Anti-Patterns

  • generic startup gradients with no visual identity
  • system-font decks unless intentionally editorial
  • long bullet walls
  • code blocks that need scrolling
  • fixed-height content boxes that break on short screens
  • invalid negated CSS functions like -clamp(...)
  • frontend-patterns for component and interaction patterns around the deck
  • liquid-glass-design when a presentation intentionally borrows Apple glass aesthetics
  • e2e-testing if you need automated browser verification for the final deck

Deliverable Checklist

  • presentation runs from a local file in a browser
  • every slide fits the viewport without scrolling
  • style is distinctive and intentional
  • animation is meaningful, not noisy
  • reduced motion is respected
  • file paths and customization points are explained at handoff
Files7
7 files · 45.7 KB

Select a file to preview

Overall Score

83/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

82

Quality

85

Clarity

84

Completeness

78

Summary

A comprehensive skill for creating and styling zero-dependency HTML presentations. Guides agents through workflow stages (detect mode, discover content/style, build, validate, deliver), enforces viewport-fit constraints, supports PowerPoint conversion via python-pptx, and provides curated style presets. Includes reference templates for HTML structure, CSS base, animations, and JavaScript controllers with accessibility support.

Static Analysis Findings

1 finding

Patterns detected by deterministic static analysis before AI scoring. Hover over any finding code for detailed information and remediation guidance.

Destructive Operation
SEC-001Recursive Deletion4x in 1 fileMax: B

Recursive deletion pattern (rm -rf)

scripts/export-pdf.shrm -rf4x

Detected Capabilities

file write (HTML, CSS, JS generation)file read (PowerPoint extraction, template references)shell execution (export-pdf.sh for Playwright automation)Python execution (extract-pptx.py for PPTX parsing)browser automation (Playwright for PDF export and validation)image processing (PIL-based cropping/resizing in html-template.md)HTTP server (local dev server for export-pdf.sh)npm package installation (Playwright in export script)

Trigger Keywords

Phrases that agents use to match this skill to user intent.

create presentation deckconvert powerpoint to htmldesign slide deckbuild talk slideshtml presentationexport slides to pdfpresentation styling

Risk Signals

WARNING

Recursive deletion with rm -rf

scripts/export-pdf.sh, line ~435
INFO

Unscoped npm install in temporary directory

scripts/export-pdf.sh, line ~430
INFO

HTTP server with path traversal protection

scripts/export-pdf.sh, lines 111-130 (EXPORT_SCRIPT)
INFO

Node.js script with Chromium browser automation

scripts/export-pdf.sh (embedded export-slides.mjs)
INFO

Font loading from external URLs (Google Fonts, Fontshare)

html-template.md and STYLE_PRESETS.md
INFO

Dynamic contenteditable attribute manipulation

html-template.md, Inline Editing section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

api.fontshare.comnodejs.org

Use Cases

  • Create a new talk or pitch deck from scratch
  • Convert PowerPoint (PPT/PPTX) to browser-based HTML slides
  • Enhance existing HTML presentations with motion and typography
  • Explore presentation aesthetics through visual style previews
  • Generate self-contained presentation files with no external dependencies
  • Export HTML presentations to PDF for email or print distribution

Quality Notes

  • Comprehensive workflow guidance with clear decision trees (new vs. PPT conversion vs. enhancement)
  • Well-documented viewport constraints with explicit density limits and mandatory CSS base
  • Extensive preset catalog (12 styles) with mood-to-preset mapping for visual discovery
  • Strong accessibility guidance (semantic HTML, keyboard nav, reduced-motion support, WCAG contrast)
  • Careful inline editing implementation with documented pitfall (CSS ~ sibling selector failure) and JS-based workaround
  • Image pipeline with PIL-based processing (circular crop, resize) but unclear trigger conditions
  • export-pdf.sh is production-quality with comprehensive error handling, dependency checking, and multi-platform opener support
  • Security-conscious HTTP server in export-pdf.sh with path traversal protection and URL decoding safeguards
  • Anti-patterns section explicitly forbids generic purple gradients and bullet walls
  • Minor gaps: no explicit guidance on testing animation performance, no examples of multi-file project structure, limited guidance on when to use inline editing feature
Model: claude-haiku-4-5-20251001Analyzed: Sep 21, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v1.4

    Content updated

    ✦ AIUpdates scripts/export-pdf.sh with minor content changes.

    2026-09-21

    LATEST
  2. v1.3

    Content updated

    ✦ AIAdds executable scripts scripts/export-pdf.sh and scripts/extract-pptx.py plus CSS and documentation files for PDF export and PPTX extraction.

    new script2026-07-14

    View This Version
  3. v1.2

    Content updated

    ✦ AIAdds LICENSE file.

    2026-04-20

    View This Version
  4. v1.1

    Content updated

    ✦ AISKILL.md body unchanged; safety grade moved A to B.

    2026-04-12

    View This Version
  5. v1.0

    Seeded from github.com/affaan-m/everything-claude-code

    2026-03-16

    View This VersionInitial version

Use affaan-m/frontend-slides in your dev environment

Command Palette

Search for a command to run...