Skip to content

ds-vibe/html-explainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Explainer

A Claude Skill for building polished, lightly-interactive single-page web explainers — the kind of editorial, source-grounded, genuinely useful page someone can land on cold and come away understanding a topic.

It's a process, not a template: the quality comes from an iterative loop (research → architect for learning → 10× the visual design → render-and-actually-look → revise), not from filling in blanks.

See it in action: live examples gallery

What it does

Given a topic (or your own source material), the skill:

  • Scopes first — a short, must-ask interview: grounding, audience/depth, format (scrolling page vs slide deck), visual style, quiz, AI chat.
  • Gets the facts right — grounds in your material and/or primary sources; cites them.
  • Architects for learning — leads with one mental model, layers depth, builds around a single clear centerpiece.
  • Hits a 10× visual bar — editorial typography, a semantic palette, real use of the horizontal space, and an explicit anti-"AI-slop" checklist (no emoji-as-icons, no decorative gradients, no generic bento grids).
  • Shows, doesn't tell — favors small playable micro-demos over paragraphs.
  • Runs a real quality loop — renders the page in a headless browser, screenshots it (desktop + mobile + interactive states), critiques it like a human, and fixes what's weak.
  • Ships a real .html file with an optional in-page Review & edit overlay so non-technical reviewers can annotate or edit in place (and download a copy with both the edits and the notes embedded).

Examples

Built with this skill, hosted on GitHub Pages — each is a self-contained .html file:

Explainer Format Live
How a microwave heats food scrolling page open
How transistors work scrolling page open
How GPS finds you scrolling page open
How blockchain works scrolling page open
How RAG works slide deck open
How encryption works scrolling page + BYOK chatbot open
The EU AI Act scrolling page open
The CCPA scrolling page open

Source lives in examples/.

Layout

SKILL.md                     the process (this is the skill)
scripts/shoot.mjs            Playwright screenshot helper for the quality loop
scripts/review-mode.js       drop-in "Review & edit" overlay (paste before </body>)
scripts/chat-dock.js         drop-in BYOK "ask the page" chat widget
reference/                   visual reference image for the design bar
examples/                    explainers built with the skill (served via GitHub Pages)
index.html                   the examples gallery landing page

Use the skill

Claude Code — clone into your skills directory:

git clone https://github.com/ds-vibe/html-explainer ~/.claude/skills/html-explainer

It loads automatically when a request matches (e.g. "make an interactive explainer about X").

Heads up — a build takes a few minutes. It's doing real work: generating the page, then rendering it in a headless browser for the quality loop. The first run is slowest — a one-time Playwright + Chromium install (~100–200 MB), fully automatic. (Speeding up generation is something we're actively working on.) The Claude app has no render step, so it skips the browser install.

Claude desktop / web app — download the prebuilt html-explainer-skill.zip and upload it under Settings → Capabilities → Skills, then start a fresh chat. (Or zip the skill files — SKILL.md, scripts/, reference/ — yourself.)

Manual rendering (optional — the quality loop already does this for you):

node scripts/shoot.mjs "file:///path/to/page.html" /tmp/shots
# first time only, if you haven't run a build yet: npx playwright install chromium

License

MIT © 2026 Derek Schwede

About

A Claude Skill that builds polished, interactive HTML explainers, with an automatic QA loop and anti-slop visual guards.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors