Html deck

From event4u-app/agent-config · View interactive version

Html deck is an AI agent skill from the GitHub repository event4u-app/agent-config. Build a slide presentation as one HTML file — fixed 1920×1080 canvas, layout-system-first, type floors. Use for deck, slides, presentation, or pitch requests.

How to use this skill

Skill file

HTML Deck

Build a slide presentation as a single HTML file with fixed-size slides that

letterbox to any viewport. A deck is fixed-canvas media (default 1920×1080,

16:9) — a different medium from responsive UI and from static posters.

When to use

Cross-surface handoff. A deck often consumes upstream analysis

(spreadsheet → deck, research → deck). Read the handoff envelope from

CODE0:

trust verification_already_done (don't recompute the source's numbers),

carry the asset list, and keep source restrictions intact.

deliverable.

When NOT to use: static single-image visual art (poster, PNG/PDF

one-off) → CODE0. Responsive product

UI → CODE0 + stack executor. Multiple styled

options of one screen → CODE0.

Deck fidelity floor

The deck surface's floor (per

CODE0):

per slide) before building any slide; when audience or tone is ambiguous, ask

once. (fixture: ssac-deck-missing-notes.)

notes, not just on-slide text.

slides; never sub-readable text (the type floors below). (fixture:

ssac-tiny-slide-text.)

brand evidence (CODE0 § Asset &

imagery discipline).

(CODE0);

on a host without export capability, say what could not be verified rather

than claiming a clean export.

Procedure

  1. Discovery. Confirm: audience (engineers / executives / customers —

determines tone and density), aspect ratio (16:9 default), slide count vs

time budget (~1 slide/minute; most decks land at 8–15), tone, source

material (PRD/doc — read it before sketching), speaker notes (off unless

requested), and the brand / design system. No brand →

CODE0 direction first.

A fully specified ask ("5-slide deck for the all-hands from this PRD")

skips the question round.

  1. Commit to a layout system before any slide. 4–6 layout types (cover,

section header, content, quote/pull-out, comparison two-column, closing/

CTA); per layout: background, headline size/position, body area, footer

treatment. 1–2 background colors across the deck (section headers may

break to a third). Record the system as a comment block at the top of the

file.

  1. Start from the deck-shell starter (templates/deck-shell.html,

skill-local): fixed-canvas scaling + letterboxing, keyboard/tap

navigation, slide counter, localStorage slide-index persistence,

print-to-PDF CSS. Each slide is a direct child <section> with a

1-indexed data-screen-label ("01 Title") so the user can reference

slides by the counter they see.

  1. Build slide-by-slide, reveal early. Show the file at 1–2 slides —

don't perfect 15 in private. Per slide: one primary message; **type

floors on a 1080p canvas: body ≥24px (32px+ preferred), headlines

60–96px+**; tokens from the active brand/design system — ask the resolver

for it (./agent-config brand:status --json) before the first colour or

type choice and take values only from the sources[] it reports valid,

never from a token file you located yourself; precedence per

brand-source-of-truth, emission per

CODE0. A bare reading, or no valid

source for the axis in hand, means the deck's palette and type come from

the brief and are labelled corpus-sourced in the hand-back; honest placeholders for

missing imagery (striped background + monospace size label — see

CODE0); cut filler slides

("Why choose us?", "About this deck") and data that doesn't support the

slide's point.

  1. Speaker notes only when requested — as a toggleable overlay or

per-slide <aside hidden>, never printed.

  1. Quality gate. Run lint_design_slop over the file; honor the

outward-artifact hygiene floor (Q13 in

CODE0)

— no workspace paths, skill/tool names, or generator traces in markup or

comments; final pass → CODE0.

Verify scaling + navigation + persistence once in a browser before

delivery.

Output format

  1. One self-contained HTML file built on the deck-shell: fixed-canvas

<section> slides with 1-indexed data-screen-labels, letterbox scaling,

keyboard/tap navigation, slide counter, localStorage persistence,

print-to-PDF CSS.

  1. Layout-system comment block at the top of the file naming the 4–6

layout types and the background-color budget.

  1. Type-floor compliance — body ≥24px, headlines 60–96px+ on the 1080p

canvas; deviations only with a stated reason.

  1. Clean slop scan + Q13 — lint_design_slop findings resolved or

DESIGN.md-justified; no system internals in the artifact.

Do NOT

starter; re-derived viewport math drifts.

fixed-canvas; the shell scales the whole stage.

is the floor, not a preference.

place.

step 2 is the budget.

in the file — Q13.

Gotcha

from the same path share a slide index; rename the file per deck or extend

the key when hosting several decks under one path.

paper size — set the print dialog to landscape + "fit to page" or the

slides clip; test one print preview before shipping a PDF.

deck medium doesn't exempt it.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.