Logo van Frontend Slides

Frontend Slides

Community
notque
frontend-slides

Browser-based HTML presentation generation.

Overzicht

Uitgevernotque
Repositoryvexjoy-agent
Skillnaamfrontend-slides
Sterren
443
Forks
50
Meegeleverde bestanden
39
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 39

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door notque op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Frontend Slides in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/notque/vexjoy-agent/tree/main/skills/frontend/frontend-slides
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/notque/vexjoy-agent.git /tmp/vexjoy-agent
mkdir -p .claude/skills
cp -r /tmp/vexjoy-agent/skills/frontend/frontend-slides .claude/skills/frontend-slides
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Frontend Slides in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Frontend Slides automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Frontend Slides niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Frontend Slides Skill

Generate browser-based HTML presentations as a single self-contained .html file. Three entry paths: new build from topic/notes, PPTX-to-HTML conversion, or enhancement of an existing HTML deck.

Routing disambiguation: When the user says only "slides" or "deck" without specifying format, ask exactly one question before proceeding: "Should this be an HTML file (opens in browser) or a PowerPoint file (.pptx)?" This skill only produces HTML — it converts an existing PPTX to HTML but cannot generate a new .pptx file.

Style Presets

Assemble CSS: python3 skills/frontend/frontend-slides/scripts/assemble-styles.py --preset <name>. Use --list for all 12, --mood <word> to match.

Templates: templates/base.css (mandatory base), templates/presets/*.css (preset :root variables).

PresetMoodUse Case
obsidian-goldimpressedexecutive briefings, boards
arctic-minimalfocusedengineering, dev conferences
carbon-emberenergizedproduct launches, pitches
sage-paperinspiredthought leadership, narrative
void-neonfuturisticdev tools, AI, hackathons
slate-coralcontemporarySaaS demos, sales
chalk-boardeducationalworkshops, training
glacier-bluetrustedfinancial, legal, healthcare
rose-noirartisticfashion, design portfolios
solar-sandwarmnon-profit, community
steel-wireindustrialdata science, DevOps
lavender-mistcalmwellness, meditation

Slide Layouts

Assemble layout CSS: python3 skills/frontend/frontend-slides/scripts/assemble-layouts.py --layouts title,content,code. --all for everything, --include-html for HTML templates.

Each layout in templates/layouts/ has paired .html + .css: title, content, grid, code, quote, image, section-break.

Controller Diagnostics

Assemble controller: python3 skills/frontend/frontend-slides/scripts/assemble-controllers.py --core. Add --features speaker-notes,countdown-timer.

SymptomCheckFix
Skips slides on keypressgrep -c 'navigating'Add navigating guard to go()
Trackpad jumps to endrg 'clearTimeout'150ms debounce on wheel
Animations never firegrep 'display.*none'Use opacity:0 not display:none
Swipe fires on scrollgrep 'screenY'abs(dy) > abs(dx) guard
Space scrolls pagegrep -A1 'Space'e.preventDefault() before next()

Instructions

Phase 1: DETECT

Identify which of the three paths applies:

PathSignalAction
New buildUser provides topic, outline, or notes -- no existing fileProceed to Phase 2 to gather content
PPTX conversionUser provides a .pptx file pathExtract with python-pptx; collect slides, notes, and asset order; then proceed to Phase 3
HTML enhancementUser provides an existing .html deckRead the file; identify what needs improving; skip to Phase 4

GATE 1: Do not proceed without identifying the path. If the input is ambiguous (e.g., "make me a deck" with no file and no topic), ask one question to resolve it.


Phase 2: DISCOVER CONTENT

Ask exactly three questions -- no more:

  1. What is the purpose of this presentation? (e.g., pitch, tutorial, conference talk, internal review)
  2. How many slides? (approximate is fine)
  3. What is the content state? (bullet points, full prose, raw notes, nothing yet)

Collect or generate the content before touching any style decisions.

GATE 2: Content exists (or the user has confirmed topic-only intent with an explicit "I'll provide content as we go") before Phase 3 begins. Do not start style work with no content direction.


Phase 3: DISCOVER STYLE

Use the Style Presets table (above) to map mood to preset names.

Two sub-paths:

Sub-path A -- User names a preset directly: Skip previews. Confirm the preset name exists in the Style Presets table. Proceed to Phase 4.

Sub-path B -- User does not know the preset: Ask for mood using exactly these four options: impressed / energized / focused / inspired. Map the mood to candidate presets using the Style Presets table -- translate the user's mood description to a preset name rather than asking them to choose from a list. Generate 3 single-slide HTML preview files in .design/slide-previews/ -- one per candidate preset -- using real slide content (not placeholder lorem ipsum). Present the previews and ask the user to pick.

GATE 3: User has either named a preset from the Style Presets table or selected one of the three previews. A vague direction like "make it look professional" is not sufficient -- a named preset must be confirmed before Phase 4. If no selection is made, regenerate previews with different presets. Never fall back to a generic purple gradient; presets exist to avoid exactly that.


Phase 4: BUILD

Build the presentation as a single .html file with all CSS and JS inline (no external CDN dependencies). Follow these rules:

  1. CSS base block verbatim: Copy the mandatory CSS base block from templates/base.css exactly as written -- do not paraphrase or rewrite it. Apply the chosen preset's theme variables on top. The base block must be present character-for-character because the validation script checks for it.

  2. Viewport fit on every slide: Every .slide element must have height: 100vh; height: 100dvh; overflow: hidden. When content overflows, split the slide into multiple slides -- never shrink text, add scrollbars, or set min-height that could allow growth past 100dvh. A slide with scrollable content is a web page, not a slide.

  3. Density limits: One idea per slide, one headline that wins. Maximum 6 bullets per content slide and about 12 words per bullet. If content needs a 7th bullet, split into two slides -- dense text is unreadable in presentation context.

  4. Responsive sizing: All body text must use clamp() for font sizing. No fixed-height content boxes (height: 300px on inner elements). For images or code blocks that need height constraints, use max-height: min(Xvh, Ypx) with overflow: hidden.

  5. CSS negation rule: Never write -clamp(...) -- browsers silently compute it to 0, causing text to disappear. Always write calc(-1 * clamp(...)) when a negative value is needed.

  6. JS controller class: Implement SlideController with all of the following (not optional):

    • Keyboard: ArrowRight/ArrowLeft/Space forward; ArrowLeft/Backspace backward; Home/End for first/last
    • Touch/swipe: touchstart/touchend with 50px threshold
    • Wheel: debounced wheel event (150ms) -- without debounce, wheel events cause multi-slide jumps. Add a navigating flag that blocks re-entry during transition.
    • Slide index indicator: currentSlide / totalSlides visible in corner
    • Intersection Observer: add .visible class when slide enters viewport for reveal animations. Use opacity: 0 + transform: translateY(20px) to hide slides before reveal -- never display: none, which prevents Intersection Observer callbacks.
  7. Reduced-motion: Include a @media (prefers-reduced-motion: reduce) block that suppresses all transitions and animations.

  8. Font loading: Use @font-face with font-display: swap and a system font stack fallback. Never reference external CDN fonts without a local fallback. Missing font-display: swap causes invisible text during load (FOIT).

  9. PPTX path: If converting from PPTX, use python-pptx to extract text, notes, and asset paths. Preserve slide notes and maintain asset order. If python-pptx is unavailable, print a clear error and ask the user to install it (pip install python-pptx) or provide content manually -- do not silently skip content.

Optional features (off by default, add only when user requests):

  • Speaker notes panel toggled by n key
  • @media print CSS for PDF-via-browser export
  • Configurable countdown timer overlay

GATE 4: The output HTML file exists on disk and contains the verbatim mandatory CSS base block from templates/base.css. Verify with a string search before proceeding -- a file that "looks right" is not sufficient.


Phase 5: VALIDATE

Run the deterministic validation script:

bash
python3 skills/frontend/frontend-slides/scripts/validate-slides.py path/to/output.html

Exit codes:

  • 0 -- All slides pass at all 9 breakpoints. Proceed to Phase 6.
  • 1 -- Overflow detected. The script prints which slides overflow at which breakpoints. Fix by splitting the overflowing slides. Re-run validation. Do not proceed until exit code is 0. Content that fits at 1920x1080 but overflows at 375x667 still fails -- clamp() sizing solves most cases; if not, split the slide.
  • 2 -- Playwright unavailable. Fall back to the manual checklist gate below. Tell the user validation is running in manual mode and is less reliable.

Manual checklist gate (fallback, only when exit code is 2):

For every slide, verify all of the following. If any item fails, fix it before proceeding.

  • height: 100vh and height: 100dvh present on .slide
  • overflow: hidden present on .slide
  • All body text uses clamp() for font sizing
  • No fixed-height content boxes (no height: 300px on inner elements)
  • No min-height on .slide that could allow growth past 100dvh
  • No -clamp(...) patterns anywhere in CSS

Look, then fix (final check): Run the core doc's section 10 loop on the title slide, the densest content slide, and one code or chart slide, at 1280x720 and 375x667. Each slide should pass the squint and grayscale tests with one clear headline. Fix, re-render, and stop after about three rounds.

GATE 5: Exit code 0 from the validation script, or -- only if Playwright is unavailable (exit code 2) -- explicit user confirmation that the manual checklist passed for every slide. User confirmation must enumerate the slide count checked. The look-then-fix loop has run, or the user has the checklist when no renderer exists.


Phase 6: DELIVER

  1. Delete .design/slide-previews/ unless the user explicitly asked to keep them:

    bash
    rm -rf .design/slide-previews/
  2. Open the file with the OS-appropriate command:

    • macOS: open path/to/output.html
    • Linux: xdg-open path/to/output.html
    • Windows: start path/to/output.html
  3. Print a delivery summary:

    File:    path/to/output.html
    Preset:  [preset-name]
    Slides:  [N]
    Theme:   [3 CSS custom properties easiest to change for re-theming]

GATE 6: Delivery summary printed. File exists at the stated path. Previews deleted (or user confirmed to keep). Task is complete only when all three conditions are met.

Error Handling

ErrorCauseResolution
-clamp(...) in CSSCSS negation of clamp() is silently ignored by browsers -- it computes to 0Replace every instance with calc(-1 * clamp(...)). Run a grep search for -clamp before delivery.
Font load failure / FOUTExternal font CDN unreachable, or @font-face src missing format() hintUse font-display: swap on every @font-face. Include a system font stack fallback. Test offline.
PPTX extraction errorpython-pptx unavailable, or PPTX uses embedded OLE objectsPrint a clear error message naming the missing dependency. Ask the user to pip install python-pptx or provide content manually. Do not silently skip slides.
Playwright unavailable (exit 2)playwright not installed or Chromium browser not availableFall back to the manual checklist gate in Phase 5. Explicitly tell the user validation is running in manual mode and is less reliable.
Overflow at one breakpoint onlyContent fits at 1920x1080 but overflows at 375x667clamp() sizing solves most cases. If not, split the slide. Never set a smaller viewport as "not important."
Reveal animations not triggeringIntersection Observer threshold too high, or slides hidden with display:noneUse display: flex with opacity: 0 + transform for hidden slides. Never use display: none on slides that need IO callbacks.
JS controller not advancingwheel event not debounced, causing multi-slide jumpsEnforce 150ms debounce on wheel. Add a navigating flag that blocks re-entry during transition.

Deep References

SignalReference
Phase 3 onward: any style, layout, or visual choice (load first)skills/shared-patterns/ui-design-judgment.md, then ui-design-recipes.md and ui-design-examples.md in the same folder
Phase 4 BUILD: JS controller implementationreferences/slide-controller.md
Phase 1 DETECT: PPTX extraction and conversionreferences/pptx-conversion.md

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Frontend Slides?

Browser-based HTML presentation generation.

Waarom Frontend Slides gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Frontend Slides bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Frontend Slides in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/notque/vexjoy-agent/tree/main/skills/frontend/frontend-slides. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Frontend Slides gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Frontend Slides gebruiken?

Zoveel als je wilt. Je kunt Frontend Slides gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Frontend Slides gratis?

Ja. Deze skill is door notque op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇