From explain-via-html
Author an explainer as a self-contained single-page HTML file rather than prose Markdown. Use when an explainer would benefit from spatial layout, interactivity, or motion — concept walk-throughs, side-by-side comparisons, annotated diffs, animation sandboxes, interactive flows, etc. References thariqs.github.io/html-effectiveness as a working library of concrete formats and pins down term-list placement, diagram conventions, an opinionated style preset, and an html-expl/ output convention.
How this skill is triggered — by the user, by Claude, or both
Slash command
/explain-via-html:explain-via-htmlThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
https://thariqs.github.io/html-effectiveness/
https://thariqs.github.io/html-effectiveness/
A gallery of twenty self-contained .html files an agent produced instead of a wall of Markdown, organised into nine categories (Exploration & Planning, Code Review & Understanding, Design, Prototyping, Illustrations & Diagrams, Decks, Research & Learning, Reports, Custom Editing Interfaces). Each example opens directly in a browser as a single .html file.
When asked to explain something, first fetch the gallery page above (and the example closest to the topic) and shape the output after that example's structure and interactivity. Do not default to a long Markdown prose answer.
15-research-concept-explainer.html; for a feature walk-through 14-research-feature-explainer.html; for a comparison of alternatives 01-exploration-code-approaches.html; for a mechanism diagram 13-flowchart-diagram.html; etc..html file. Minimise external dependencies; it must open and work directly in a browser.The principles below also apply when delivering the explainer as HTML.
<aside>) so the reader can consult it without scrolling back. Use position: sticky; top: 0;, and when content exceeds the viewport let the sidebar scroll independently with max-height: 100vh; overflow-y: auto;. Do not put the term list only at the top of the body — the reader will have to scroll back every time a defined term reappears.minmax(0, 1fr)) and the sidebar on the right at a fixed 300–360px. On narrow viewports (around 1000px and below) stack the sidebar above the body and switch position back to static.<table>). Every specialised term used in the body is defined here at first occurrence.<br/> inside a Mermaid node — many renderers display the literal HTML tag. Use / separators or shorten the text to one line.#000000 (black) for body, #00A4AF (cyan) for accents. Light grey hurts readability and is not used for body, captions, or anything else.#FFFFFF (white). Do not use coloured cards or coloured bands; rely on rules, whitespace, and typography to structure content.Noto Sans JP loaded from Google Fonts (its Latin glyphs are well-tuned and the family also covers Japanese if needed). Monospace is Ubuntu Mono Regular. Do not specify serif or system fonts.#00A4AF consistently. No other colour is used.border-radius: 10px or so). Avoid right-angle boxes. The only exception is "wall"-like elements such as page headers or full-bleed section dividers.align-items: stretch so each box matches its neighbour even if the inner content is shorter. Avoid uneven box heights within a row.<br>. Wrap the logical line in a <span style="white-space: nowrap">. Latin / Japanese boundaries, half-width spaces, <i> math glyphs, <sub> and similar mixes give the browser many places to break when the container narrows; the nowrap span forces the run to stay together.<a> link to that source; (b) otherwise apply a text-only effect (font-weight, color: var(--accent)). Heading-adjacent metadata (time ranges, phase numbers) goes on a separate line under the heading as plain text (or <small>), not as an inline pill. The pattern to avoid is "a visually independent pill mid-sentence".html-expl/ directory at the project root. Do not scatter HTML across the top of the project.{yyyymmdd}-{kebab-case-symbolic-name}.html (example: 20260512-event-loop-explainer.html). The date is the local date on which the file is created or updated.html-expl/ is created in a project, ask the user which of the following to do:
html-expl/ in git (commit it with the rest of the project).html-expl/ to .gitignore (treat it as local-only output)..gitignore it.open command only on first creation.open. The browser already has the file open; the reader reloads to see changes. Re-opening pulls the window to the front and interrupts the reader's flow.open regardless of which case above applies.Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub mathbullet/skills --plugin explain-via-html