--- name: html-prototypes description: "Build a quick HTML page when the owner asks for one: a prototype, a small tool, options to compare side by side, a plan, explainer or report, a diagram, a mini deck, or an editor that exports its result. One self-contained file, no build step, checked at desktop and phone width, then published as a Claude artifact, as a ChatGPT site from Codex, or opened locally. Use for any request for a page, prototype, mockup, tool or visual explainer in HTML." updated: 2026-10-27 --- # HTML Prototypes How to build quick HTML pages, whichever agent builds them and wherever they are published. The page is the same single file on every host; only the publishing step changes. **Sources**, read from their raw HTML on 2026-10-27 (every quote below was checked against that text): - "The unreasonable effectiveness of HTML": https://thariqs.github.io/html-effectiveness/ , its 20 examples, and the 11 examples of "Know your unknowns" (https://thariqs.github.io/html-effectiveness/unknowns/index.html). - Simon Willison, "Useful patterns for building HTML tools" (10 December 2025): https://simonwillison.net/2025/Dec/10/html-tools/ , with his collection at https://tools.simonwillison.net/. When you update this skill from those pages, read the pages themselves (download the HTML), never a tool's summary of them ([[AGENT-RULES]] §4). ## When a page beats Markdown Make an HTML page instead of a Markdown answer when one of these is true: - **Several options to choose from.** "Ask the agent to fan out across several directions and lay them next to each other so you can point at one — instead of reading three sequential walls of text". "Reacting is easier than imagining." - **The information is spatial.** "Diffs and call-graphs are spatial information; markdown flattens them." - **Motion or interaction is the question.** "Motion and interaction can't be described, only felt." A throwaway page "tells you in five seconds what a paragraph of prose never could." - **A recurring document should get read.** Status updates and post-mortems "benefit most from a bit of structure and color." - **A new topic needs navigating.** Collapsible sections, tabbed code and a glossary read "very differently from the same words dumped linearly." - **The reader has to decide or edit something** and hand the result back (see Editors below). Anything that must keep running, update itself or carry real users is no longer a prototype: give it its own repo ([[AGENT-RULES]] §7). ## How the source pages are built All 33 pages of the html-effectiveness site (as of 2026-10-27) follow the same recipe. Copy it: - **Nothing external.** No external scripts, no external stylesheets, no web fonts: "Each one trades a document you'd skim for one you'd actually read — open any of them directly in a browser." - **System font stacks as tokens** on `:root`: `--serif: ui-serif, Georgia, "Times New Roman", Times, serif`, `--sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif`, `--mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace`. Serif for headings and reading text, mono for code, paths, labels and numbers. - **A small palette as tokens** on `:root` (one warm accent, one success color, a ladder of neutrals), named by role or color, never hard-coded in rules. - **A viewport meta tag, CSS grid layouts, a reading column of about 640 to 980 px, and one or two `@media (max-width: …)` breakpoints between about 560 and 900 px** so the page reflows on a phone. `clamp()` for type that scales. - **Native elements first:** `
` for collapsible steps, `position: sticky` for an "On this page" list, real `