/html-presentation:html-presentationfrom html-presentation
Builds a self-contained HTML slide deck (1920×1080) for timed talks from source material, with presenter notes, timer window, PDF output, and speaker script. Includes independent reviewer agent for quality checks.
Ships in html-presentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn source material (a PDF, a doc, notes, numbers) into a talk that looks designed, fits its time slot, and still reads on its own as a PDF. The deck is one HTML file: no build step at presentation time, no network, no framework. Open it in Chrome and present.
What makes this more than "slides in HTML":
data-t); the build fails when the
notes don't fit the slot with room for questions.roteiro-de-fala.md) and the
presenter window are generated from them, so they never drift.DESIGN.md, adapted to
projection scale. No DESIGN.md → derive one (references/layout-and-type.md, Identity without a
DESIGN.md) or use the template's neutral palette.Ask only what changes the work, in one batch: who presents; duration; how it is shown (room projector, video call, both); whether the deck doubles as reading material for people who miss it (then every slide must explain itself without narration); the closing call to action (contact, deadline); source language → talk language. If the user already said it, don't ask again.
A requirements file that does not fit the subject (guidelines for another course, a second DESIGN.md in the
package) means the wrong file came along: ask which one governs before planning, even when the prompt says not
to ask. In the Farel deck (19/10/2026) the prompt patched "the guidelines talk about Church Fathers" over the
wrong course's guidelines, and the package's own DESIGN.md lost to the project's. A DESIGN.md of one
organization for a talk given at another (the employer's, at a university defence) is the same case: ask whose
identity governs, even when the user named the file. In the TCC deck (20/11/2026) the answer came mid-build.
Convert documents to Markdown before reading (MinerU for PDFs when available; pdftotext -layout otherwise,
and treat its tables with suspicion because it interleaves columns). Read all of it. Keep the originals
next to the project (material/) so the reviewer can check against them.
A PowerPoint source needs two passes: python-pptx for the text and the speaker notes, and
soffice --headless --convert-to pdf then MinerU for the layout and tables. The PDF export drops the notes,
and in the IACS E26/E27 deck (30/09/2026) the notes held a whole slide's talk.
data-t in seconds.
The sum is the duration minus ~30 s for questions (build.py --duration enforces it).data-section drives the progress line in the footer..act block.Copy assets/deck-template.html to src/<name>.html in the project. Then:
DESIGN.md tokens onto the template's role tokens (--brand, --brand-strong, --brand-soft/
--brand-deep, surfaces, text). Respect its color rule: if the brand color fails contrast with white
text, it never becomes a text background; --brand-strong does that job.src/assets/fonts/ and declare @font-face. build.py embeds them.DESIGN.md, the way a design system records a login-screen exception.<body>. If the project also uses the impeccable skill,
write the contract in its surface brief (impeccable surface-brief write) and drop the comment: impeccable
forbids the contract in a served file, and build.py keeps comments in dist/.data-steps="N" on the <section> and data-step="1..N" on its blocks
(references/engine.md). Use it where the reveal is the content, not as decoration.data-tip (translation) or
data-g (an entry in the hidden #glossario, one source for every slide). Read the "Hover tip" component in
references/layout-and-type.md before writing the entries.Read references/layout-and-type.md when composing slides: component catalog, what to avoid, mockups.
python3 <skill>/scripts/build.py src/<name>.html --out dist --duration <minutes>
Output: dist/<name>.html (fonts and images inlined, works offline) and dist/roteiro-de-fala.md. One --out
folder per deck: the build refuses another deck's script. The
build fails on an asset that was not inlined, any external http(s) resource, a slide without notes, or a
time budget over the limit, and on a hover tip data-g without its glossary entry. It also warns, without failing, when a note read at 150 words per minute needs 5 s
or more beyond its data-t (a number counts as two words, a date as three): the time budget alone let a 65 s
note that needs ~80 s through (Manutenção Proativa deck, 16/10/2026).
bash <skill>/scripts/shoot.sh dist/<name>.html shots
It captures every slide at 1920×1080, plus a 1366×768 and a 1280×720 laptop view, exports the PDF and
checks that it has one page per slide. It also writes 2×2 contact sheets (shots/grade-*.png). Look at every
sheet and both laptop shots. Fix everything in one batch, rebuild, and look again. Two rounds, then stop
polishing; the reviewer does the next pass better.
On WSL without Chrome, pdfinfo or ImageMagick on the PATH, shoot.sh uses Playwright's cached Chromium, counts
the PDF pages itself and draws the sheets with Pillow. A slide with data-steps is shot at step 0: capture each
step too with the same Chrome line and deck.html#N.s (window taller by the measured bar, PNG cropped back, as
in shoot.sh), and pass those shots to the reviewer.
With Playwright installed, also run node <skill>/scripts/check-presenter.mjs dist/<name>.html. It drives the
deck and the presenter window together and fails when the engine copy inside the deck regressed; a deck with
data-steps also gets the step checks. Without a global install, npm i --prefix <dir> playwright@<version>
(the one whose chromium-NNNN is already in ~/.cache/ms-playwright, so nothing downloads; a wrong guess fails
at launch and names the build it wants: 1.58.0 uses 1208, 20/11/2026) and run it with
NODE_PATH=<dir>/node_modules.
Also run node <skill>/scripts/check-fit.mjs dist/<name>.html, with the same Playwright. It fails when a slide
leaves the window, clips text, runs under its source line, enters the footer or puts text under the PDF page number,
and exits 2 when it could not measure. Run it again after any text change, and still look at the shot: it measures
boxes, not how the slide reads.
Spawn the deck-reviewer agent (Claude Code). Elsewhere, spawn a general-purpose agent with the packet in
references/review.md. Never review in the build thread: the builder's framing hides exactly what the
review is for. Apply the material findings in one batch, then rerun steps 5–6. A text fix can overflow
its slide; one of the six fixes in the origin session did.
dist/<name>.html: present with it (keys below).dist/<name>.pdf: for absentees. The footer is hidden in print, so each page after the cover carries
classification · section · NN / TT from data-print. Set <body data-classification="…">. The cover carries
only 01 / TT, so write the classification on the cover itself (the template's credit line).dist/roteiro-de-fala.md: rehearsal script with a cumulative clock.references/engine.md § One part with its notes before building it.Presenter keys: → ← navigate · N notes panel · P presenter window (notes, timer, next slide; put it on
the laptop while the projector shows the deck) · F fullscreen · R reset the timer in both windows.
display:grid; place-items:center plus scale() clips the 1920 stage in
any window narrower than 1920, and unsafe center does not fix it. Center with
left:50%;top:50%;transform:translate(-50%,-50%) scale(s), as the template does.fill-mode: both makes headless captures
catch the title at 30% opacity. Content must be visible by default, and capture with
--force-prefers-reduced-motion. That flag only reaches what prefers-reduced-motion turns off, so the
template turns off every transition there: a footer label still fading out was shot over its neighbor and
read as a collision (template sample, 19/10/2026).shoot.sh deletes first, retries and checks size.--headless=new (the full Chrome), --window-size is the
outer window and 87 px go to the browser bar: a 1920×1080 window gave a 1920×993 viewport, and the stage
came out at ~0.92 (Chromium 130 and 145, 19/10/2026). shoot.sh measures the real viewport, opens a taller
window and crops the PNG back with Pillow or ImageMagick; without either, it warns. From Chrome 153 the
screenshot uses the whole window while --dump-dom still reports 993, and compensating from --dump-dom moved
the stage 44 px down and cut the footer in every shot (Chrome 156, Portal deck, 03/11/2026). shoot.sh now
measures the viewport with a screenshot of a marker, the same mode as the captures.file://, BroadcastChannel does not cross windows. Sync through
window.opener / postMessage. The deck holds the popup only in memory: after an F5 the notes stayed on
the old slide and the popup's arrows made the projector skip one. Each window also kept its own clock, so
R reset only one and a reopened popup showed 00:00 minutes into the talk. The template now shares slide,
start time and resets, and the popup's hello every second relinks a reloaded deck (Manutenção Proativa
deck, 16/10/2026).N panel. Both belong to the deck page;
only the popup stays private. The hint now fades 2.5 s after the mouse stops and never shows while the
presenter window is open (a mouse crossing the deck flashed it); keep N closed while sharing.:focus-visible cannot tell the two apart: the key press itself turns it on.check-presenter. Pressing P right after closing the presenter window reached
the window still closing, and no popup opened: the Farel deck failed 3 of 3 runs, and passed 18/18 with 300 ms
of wait after close() (19/10/2026). The check now waits; if it times out again, suspect that race first.check-presenter.mjs on the rebuild.check-presenter.mjs checks that the hidden labels collide.30ch title leaves half the stage blank; check-fit passes. Try .wide;
the shot decides. Sparse slide: raise the type before adding content..body, .hline and .meta at fixed top values, so a
hero title that gains a line runs over the line and the metadata: at 132 px a two-line title beside a photo
wrapped to three (Portal deck, 03/11/2026). Look at the cover shot; shorten the title or lower the hero size.material/ still found 5 factual errors.@media print hides the footer; without data-print the PDF has no page numbers,
sections or classification.≠,
→ or ←. The browser swaps fonts for that one glyph and it renders misaligned ("=/"); build.py does
not notice. Draw such symbols as inline SVG sized in em..slide with --bg and reuse
.slide::before as the 5px bar. A cover with a single-class selector loses its photo (white title on a
light page), and a veil drawn with ::before collapses to a 5px strip over a bright photo. Give such
slides their own print rule (background again, veil with inset:0) and look at page 1 of the PDF.
Print also takes .slide::after for the data-print footer, so a slide decorated with ::after (a dawn
glow on a dark cover) loses either the decoration or its page number. Put both in one print rule:
content:attr(data-print) over the decoration's background, inset:0, text aligned bottom-right
(cell-group deck, 01/10/2026). A cover on a full brand-color field needs the same two-class rule
(.slide.cover{background:…} in @media print); page.emulateMedia({media:'print'}) shows it.build.py inlines every url(assets/...) separately:
one photo used by four rules (screen and print, cover and close) made a 1.7 MB deck; declared once as
--photo:url(...) it was 569 KB (IACS deck, 30/09/2026)..src sits at a fixed spot above the footer (position:absolute), so
content that grows runs under it: 3 slides of the IACS deck (30/09/2026), one of them after a review fix.
Look for it in every shot; check-fit.mjs fails it too, and a long .src that grows into the left margin..act box 20 px into the footer, with
build.py, shoot.sh, check-presenter and the deck's own secrecy check green, and a first sensor that compared
content with the slide's edge said "nothing cut" (Portal deck, 03/11/2026). check-fit.mjs compares with the
footer and counts whatever paints, SVG and images included. Its first version answered "ok" on zero slides and did
not see an SVG in the footer: prove a new sensor against the empty case and each kind of content.#help), the tip label (Tradução), the
N panel and the P window ship in Portuguese. Translate at least what the audience sees: the hint and the tip label.
Before 1.4.2, check-presenter read the N panel clock by the word "decorrido", and a panel translated to English
crashed it with a TypeError (Portal deck, 03/11/2026). It now reads the first <span> of the bar, so keep the
elapsed time there.<section class="slide dark"> with a photo showed the logo, the progress line and the page number over it
(training deck, 10/11/2026). Since 1.6.0 the template hides it on any .dark slide, and check-fit lists that
slide under "sem rodapé". An older deck needs the dark-mode line ported into its show().| Path | When to read or run it |
|---|---|
assets/deck-template.html | Starting point for every deck: engine, footer, notes, presenter window, print, sample slides per component |
scripts/build.py | Run on every build: inlines assets, generates the script, enforces the gates |
scripts/shoot.sh | Every inspection round: screenshots, laptop views, PDF, contact sheets |
scripts/check-presenter.mjs | Step 6 when Playwright is installed, and after porting an engine fix: presenter window, shared timer, key hint, focus click, keys on the popup's buttons, steps, hover tips, click zoom, footer labels, reduced motion |
scripts/check-fit.mjs | Step 6 when Playwright is installed, and after any text change: a slide out of the window, clipped text, content under the source line or inside the footer, text under the PDF page number |
references/layout-and-type.md | Read when composing slides (step 4): components, scale, mockups, what to refuse |
references/engine.md | Read only when changing navigation, notes, presenter window or print behavior |
references/review.md | Read before step 7, when spawning the reviewer: input packet and verdict format |
CHANGELOG.md (opens in a new tab)assets/deck-template.html (opens in a new tab)evals/evals.json (opens in a new tab)evals/files/DESIGN.md (opens in a new tab)evals/files/politica-senhas.pdf (opens in a new tab)evals/files/sprint-42.md (opens in a new tab)references/engine.md (opens in a new tab)references/layout-and-type.md (opens in a new tab)references/review.md (opens in a new tab)scripts/build.py (opens in a new tab)scripts/check-fit.mjs (opens in a new tab)scripts/check-presenter.mjs (opens in a new tab)scripts/shoot.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub j0ruge/skills --plugin html-presentationOther plugins' skills for the same job