html-prototypes Skill

artifact
skill, prototyping, workflow, ui-craft, guardrail
4 sources

created
2026-11-05
updated
2026-12-02
reviewed
2026-12-02
confidence
high

Joshua Crowley‘s portable agent skill (one SKILL.md, about 17 KB, published as a GitHub Gist on 15 July 2026). It teaches an agent to build single-file HTML AI prototypes: “self-contained design artifacts that non-technical people can run by serving a folder and opening a page in a browser.” It is the written-down form of Single-File HTML Prototypes. The full text is copied verbatim in raw/; the gist states no licence.

Its premise: “An HTML prototype is a design artifact, not a product. The goal is a working thing someone can feel in the browser today, iterate on by taste, and remix tomorrow.”


index

5 sections
select a row to jump


1 Trigger (frontmatter description)

“Use when creating, remixing, or debugging an HTML prototype, or when helping someone understand what a prototype idea will require (API keys, servers, proxies).” It covers ESM/CDN loading, browser-direct versus proxied API access, key handling, async polling, and “communicating requirements to non-technical users.”

2 Structure

Section What it instructs
Copy first “If the codebase you’re in already has working prototypes, open a similar one and copy its approach — verified working code beats anything you remember.” Especially model names and API details, “which both humans and models hallucinate”
The one hard constraint “One .html file = the whole app”: one <style>, one <script>, no build, no npm, no framework; vanilla JS and hand-written CSS with design tokens. Supporting files only as “optional plumbing”
Requirements triage Four tiers to settle before writing code, told to the user in plain language: 0, just a file; 1, static server (the default); 2, local proxy (~100-line Node script, for APIs without CORS); 3, cloud worker (public media URLs or away from localhost). “A surprise ‘blocked by CORS policy’ error at run time is how prototypes die”
Working with a non-technical user Open with a “what you’ll need” list; keys entered in a settings modal and kept in localStorage, never baked in; humanise every error; show plumbing status (a /health pill); make the exact request visible in a debug view; ship two sibling files for either/or interaction questions
House style A fixed file anatomy and banner-commented script order (STATE, ELEMENTS, UTILITIES, SETTINGS, features, INIT). One mutable state object exposed on window; :root design tokens with “its own palette and font personality”; a status trio (toast, status pill with elapsed timer, log panel); buttons that narrate; shared localStorage key names across sibling prototypes so keys are entered once
Dependencies: the loading ladder Zero dependencies by default, then pinned ESM from a CDN (“always pin the version”), import maps, classic scripts, and lazy import() for heavy libraries. “Prefer boring… hand-rolled beats clever when the file must survive being remixed”
Talking to AI APIs Async create-and-poll with a timeout that reports the job ID “so the user’s work (and money) isn’t lost”; schema-based structured output plus fence-stripping; media payload limits; “Every API has quirks.” “Cheap draft → expensive final” is “the strongest product pattern in this practice”; “prompt engineering lives in code” (template constants, composePrompt(), a live preview)
The proxy ~65 lines of zero-dependency Node; “never holds keys” (forwards the browser’s own Authorization header); answers preflight itself; can be promoted to a Cloudflare worker with setup instructions in its header comment
Media techniques Canvas to video via MediaRecorder, downloads, drag-drop upload, crossOrigin for canvas reads, timeline and drag UIs with pointer capture, virtual trimming, webcam/mic input (“voice-input-as-prompt… is a reliably delightful feature”)
Shipping Descriptive hyphenated filenames with remixes beside originals; a hand-edited directory page with a “needs local plumbing” flag; a README per batch; “the browser is the test”

3 Notes on the source

  • Install path differs. The skill’s header comment says to copy it to .claude/skills/html-prototypes/SKILL.md (project or ~/.claude/...). His tips page says .cursor/skills/... for Cursor (Single-File HTML Prototypes). Both refer to the same file; it seems written to work in either agent.
  • The tips page’s eight tips are a plain-English summary of this file. Tier triage, key handling, error humanising, copy-first, sibling files, and the browser test all come from here.

4 Connections (my observations)

  • Seamful by design. “Show your plumbing status,” a visible log panel, and a debug view of “the exact prompt/payload being sent… builds trust and teaches users how the AI is actually being asked.” These are the joints Seams Not Seamlessness says to expose, written as a UI convention.

  • Delegative UX in miniature. Status pills with elapsed seconds, narrated buttons, job cards with a history list, and timeouts that say where the job went cover the “see, track, understand” needs of Delegative UX for one long-running AI call.

  • Guardrails for shareable throwaways. Keys only in the browser, a proxy that never holds keys, and pinned dependencies make a prototype safe to “just send the file.”

  • Tension with Skill Writing. The description is a careful trigger list, as that page advises. But the file runs to about 210 lines, against that page’s “typically 20 to 35 lines, one file, one job, with no appendices.” It is closer to a reference manual, which may suit an audience that isn’t technical. Compare the shorter files in Interfaces Skills Collection (jakubkrehel/skills) and DXE Skills Collection (kemiljk/skills).

  • Per-prototype palettes versus shared styles. “Give each prototype its own palette” is right for standalone artifacts. Code Wrangler Tips lesson 07 (“use the shared style settings”) is the rule once code enters a product. The boundary is the one Crowley draws when he “burns down” a prototype (Collect, Combine, Collaborate).

  • “Prompt engineering lives in code” (named templates, a composed-prompt preview, lint checks for input rules) is a lightweight version of Plugin - Prompt Architecture.

  • Compared with Notion’s commands. Brian Lovin‘s /figma, find-icon and /deploy (Prototype Playground (Notion)) are also tools for designers who aren’t engineers, but they run inside a shared Next.js repository, while this skill avoids builds altogether. The skill ends with “the browser is the test”, meaning a person clicks through. Lovin’s commands have the agent open the browser and compare against Figma itself (Give Your Agent a Laboratory). His find-icon skill and this skill’s “copy first” rule fix the same failure: the agent making up names (of icons there, of models and APIs here).source 3

  • Where it sits among the collections. Krehel’s and Koch’s are many-skill collections with coordinating skills (Design Engineering Skill Collections). This is one self-contained build skill for a non-technical user, with requirements triage as its first step.

  • Glue for Barefoot Developers. Appleton (May 2024) said language-model “legos need glue”: orchestrator agents that guide non-professionals through specs and tool choice. This skill is that glue for throwaway HTML prototypes — not full local-first products, but the same audience.source 4

  • Prototype Formats for Agent-Era Design — the skill as the packaged form of Crowley’s single-file format

5 Sources

  • raw/articles/html-prototypes-skill-snapshot.md (Gist revision f6ec0a1, agent-fetched via the GitHub API)
  • raw/articles/joshua-crowley-html-tips.md (install instructions and summary on the tips page)
  • raw/articles/chatprd-lovin-prototype-playground.md (connection only)
  • raw/articles/appleton-home-cooked-software.md (connection to Barefoot Developers)

referenced by

7 pages link here


sources

numbers match the markers
in the text above