html-deck-building
Use when building or editing a medical presentation as an HTML deck (single offline file, motion graphics, presenter laser/pen tools), after the plan is…
от drtranquanghung91-vn★ 24 звезды на GitHub
Установить html-deck-building в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
HTML deck building
Before you start
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.
Overview
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.
Procedure
Write the slides in
<talk>/build/slides.html, deck-specific CSS (theme variables first) indeck.css, and chart code indeck.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.htmlTheme. Start
deck.csswith a:root{…}block holding thetheme/theme.jsonvalues (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 ofplan.md, in order:- the plan's assertion as the title (
h2.t, or the template's title element); - the visual from
figures/via<!--include: ../figures/s05-km.svg-->or<img>; - only numbers from
claims.json, written as in the source and formatted for the deck's language (0,58in Vietnamese,0.58in English); <aside class="notes">with what the presenter says, including cues such as "[click] 24-month landmark". Cues never go on the slide.- a per-slide
data-cite="…"when the slide's source differs from the deck's.
- the plan's assertion as the title (
Motion. Use the engine's classes:
.a-inwithstyle="--d:.3s"for staged entry;.drawwithpathLength="1"for connectors;.popfor 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 anddata-poster. For large figures, use the.kmwipe structure. Followmedical-figures→motion.md: transforms and opacity only.Build one offline file:
python scripts/build_deck.py <talk>/build/index.src.html <talk>/out/<name>.htmlCheck 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, soplaywright installis 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-stageandclipped-or-overflowingfinding by cutting words, splitting the slide, or re-laying out. Never fix overflow by shrinking text below 18 px (body 24 px). Then opencontact.htmland 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.htmlto the slop audit. It contains text that JavaScript adds at run time, which the source file does not show.
Type and layout floor (1920 × 1080)
| 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 |
Common mistakes
| 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 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
- assets/deck-engine.html
- scripts/build_deck.py
- scripts/check_render.py
- scripts/compose_deck.py
FAQ
Что делает скилл html-deck-building?
Use when building or editing a medical presentation as an HTML deck (single offline file, motion graphics, presenter laser/pen tools), after the plan is approved and claims and figures exist, or when an HTML deck renders with overflow, stutters, or needs a template applied.
Как установить скилл html-deck-building?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл html-deck-building запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…