/grand-rounds:html-deck-buildingfrom grand-rounds
Builds or edits medical HTML presentations as single offline files with motion graphics and presenter tools. Applies templates, fixes overflow/stutter, and assembles slides from approved plans and evidence.
Ships in grand-rounds. 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.
This skill is stage 6 of grand-rounds:medical-deck. Work only inside a talk folder whose
STATUS.md marks the Plan as done, approved and which has evidence/claims.json. If
either is missing, stop and call the Skill tool with grand-rounds:medical-deck instead: it
runs the interview, the plan and the evidence first. This holds for a new deck from a
one-line request too.
Start from assets/deck-engine.html: a 1920 × 1080 stage that scales to any screen. It has
fragments, speaker notes, a cross-fade between slides, presenter tools (laser, circle,
pen, undo, erase), keyboard and clicker control, and a window.deck API for the render
checker. You write slides and theme. You do not rewrite the engine.
Write the slides in <talk>/build/slides.html, deck-specific CSS (theme variables
first) in deck.css, and chart code in deck.js. Then assemble the source from the
engine, so engine fixes reach every deck:
python scripts/compose_deck.py --slides <talk>/build/slides.html --css <talk>/build/deck.css \
--js <talk>/build/deck.js --title "<talk> · <presenter>" --lang vi --cite "<footer citation>" \
-o <talk>/build/index.src.html
Theme. Start deck.css with a :root{…} block holding the theme/theme.json values
(it overrides the engine defaults). If there is a
template, rebuild its chrome (header band, footer, logo, title layout) in CSS from the
measured geometry. Keep the logo as a file and reference it; the build inlines it.
Slides. One <section class="slide" data-name="…"> per row of plan.md, in order:
h2.t, or the template's title element);figures/ via <!--include: ../figures/s05-km.svg--> or <img>;claims.json, written as in the source and formatted for the
deck's language (0,58 in Vietnamese, 0.58 in English);<aside class="notes"> with what the presenter says, including cues such as
"[click] 24-month landmark". Cues never go on the slide.data-cite="…" when the slide's source differs from the deck's.Motion. Use the engine's classes: .a-in with style="--d:.3s" for staged entry;
.draw with pathLength="1" for connectors; .pop for arrowheads; data-frag="n"
for click-revealed overlays; data-scene="n" for a mechanism stepped by clicks. A
looping motion graphic (a mechanism that plays like a video) carries its own CSS loop
and data-poster. For large figures, use the .km wipe structure. Follow
medical-figures → motion.md: transforms and opacity only.
Build one offline file:
python scripts/build_deck.py <talk>/build/index.src.html <talk>/out/<name>.html
Check with a real browser:
python scripts/check_render.py <talk>/out/<name>.html --out <talk>/build/render --smooth <slide with the main animation>
It needs Playwright for Python (pip install playwright). It uses an installed Edge or
Chrome, so playwright install is needed only on a machine with neither. If you cannot
install it, open the deck in a browser tool and screenshot every slide instead, and say in
the delivery report that the automatic check did not run. Never skip the check silently.
Fix every off-stage and clipped-or-overflowing finding by cutting words, splitting
the slide, or re-laying out. Never fix overflow by shrinking text below 18 px (body 24 px).
Then open contact.html and look at every slide yourself. The script cannot see
collisions, bad wrapping (a number split from its unit) or a figure that is too small.
Hand render/dom.html to the slop audit. It contains text that JavaScript adds at run
time, which the source file does not show.
| Element | Minimum |
|---|---|
| Title | 48 px (template may set larger) |
| Body text | 24 px |
| Figure labels, tables | 18 px |
| Footer / source credit | 16 px |
| Margins | 80 px left/right |
| Mistake | Fix |
|---|---|
| A presenter hint in the footer ("▸ click for HR by period") | Speaker notes only |
| Content vanishes before the slide fades out | Engine handles it; don't remove .play yourself |
Animating a big SVG with setAttribute in requestAnimationFrame | Wipe reveal with transforms |
| Fonts from a CDN | Inline them (@font-face with a local file, inlined at build) or use the template's system fonts |
| Same title + three-cards layout on every slide | Pick visuals per deck-planning → visual-grammar.md |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub drtranquanghung91-vn/grand-rounds --plugin grand-rounds12 skills in this plugin
/audit-deckAudit an existing medical slide deck (HTML or PPTX) for AI-slop patterns, wrong numbers, unverifiable references and patient identifiers./deck-grillingUse when a medical presentation is about to be planned or built and the deck type, audience, purpose, duration, language, output format (HTML or PPTX), template or sources have not all been stated by the user, or when someone wants their talk idea stress-tested./deck-planningUse when a confirmed brief exists for a medical presentation and the storyline, slide-by-slide outline or time budget has not been written or approved yet, or when an outline needs restructuring./evidence-auditUse when a medical slide deck (HTML or PPTX) is built or edited and before it is presented, shared or called finished; when numbers, hazard ratios, percentages, recommendations or references on slides need checking against their sources; or when a clinical-case deck may contain patient identifiers./evidence-researchUse when a medical presentation needs facts, numbers, trial results, guideline recommendations or references, whether from papers the user supplied or from a literature search (PubMed, Europe PMC, ClinicalTrials.gov, OpenEvidence), and before any number is written on a slide./grill-deckInterview me about a medical talk until the brief is clear, before any slides are made.Other plugins' skills for the same job