Single-File HTML Prototypes

concept
prototyping, code-as-material, method, workflow, agent, skill
7 sources

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

Joshua Crowley‘s “keystone” technique: capture an idea as one self-contained HTML file that you can “play with, reason about, share, and iterate.” It is the habit that ties together the three in Collect, Combine, Collaborate. He calls it “the one thing I hope you take from the talk.” His companion page, “HTML Tips & Tricks,” sets out the method in full.source 1source 2

He came to it after years of collecting magazines, saved images, and “a mountain of Twitter bookmarks”: “a bookmark can’t really represent a complex AI idea. It doesn’t give you momentum. A single HTML file does.”source 1


index

10 sections
select a row to jump


1 Why one file

“The magic is in the constraint.” A single .html file is:source 1

  • easy to reason about: “everything is in one place, no build step, no dependencies”;
  • easy to duplicate: copy it to make a v2 “without fear”;
  • easy to share: drag it into Slack, or deploy it with Cloudflare Drop “and send a link in seconds”;
  • easy to revisit: “when a new model or technique lands.”

2 The process

  • Capture. In Cursor, he tells the agent, usually by voice, to “replicate this into one HTML file so I can understand how it works and experience it.” Then he explains “what I like about the idea and what I don’t.” What comes back is “not an app, not a service. A file.”source 1
  • Keep a collection. He stashes files in Tooltown, “collections that populate into neighborhoods over time, each with a story about how it evolved.”source 1
  • Start from them. A new Cursor workspace is an “empty room”; he brings in relevant HTML files, or the team design kit, so the agent doesn’t start from nothing (Collect, Combine, Collaborate, habit 2).source 2
  • Tune, then hand off. For Layers, he “built HTML prototypes to dial in the interaction details, then handed the settings to Cursor Cloud Agents to implement.”source 3

3 Tips and tricks

Tip What he meanssource 1
Work out what an idea needs before you build Some files run alone; others need an API key, “a tiny local server, or a little relay.” Have the agent say so up front: “a surprise error at run time is how prototypes die”
Keep API keys out of the file Ask for a small settings panel that stores keys in the browser, so “the file itself stays safe to share”
Copy what already works Point the agent at a working prototype: “do it like this.” “Verified working code beats anything a model remembers — especially model names and API details, which go stale fast”
Make errors human Translate raw API errors into advice (“your key was rejected, re-paste it in settings” instead of “a cryptic 401”); “the difference between a prototype you fix and one you abandon”
Plan strong, tweak fast Plan with a strong model (Opus or Fable), then tweak the UI with a fast one (Composer 2.5)
Can’t decide between two interactions? Ask for both Two sibling files, “pick by feel”; “defaults to iterate on, not commitments”
The browser is the test Run the main flow end to end with a real key; “there’s no test suite for these — the browser is it”
Build a neighborhood Tooltown, as above

4 Why it matters to him

  • Pre-built thinking for conversations. “I can whip out one of these files and say ‘oh, do you mean this?’” In a fast-moving space, “pre-baked thinking ready to go keeps momentum up.”source 1
  • Cuts through hype. “Something that looks brilliant as a Twitter post doesn’t work when you try to rebuild it — and understanding that gap is one of the most useful things you can do to navigate the AI space.”source 1
  • Real AI behaviour, not mockups. Experimental prototypes give “a lot more insight than just sort of using static mockups or even you know interactive prototypes that don’t actually trigger any AI functionality.”source 2

5 The packaged forms

  • The gemini-html collection (GitHub): one file per Gemini capability, “something you can riff off.”source 1
  • The html-prototypes skill (Gist): installed at .cursor/skills/html-prototypes/SKILL.md, per project or globally. It “steers the agent with a shared understanding that you might be non-technical.” Instead of jumping to code, “it helps you gather your requirements first,” saying in plain language what an idea needs (keys, a server, a proxy) “before anything gets built.”source 1 The full skill, with its four-tier requirements triage, house style, and API patterns, is now an artifact page: html-prototypes Skill.source 4

6 Lineage he cites

Geoffrey Litt (malleable, end-user software), Simon Willison (“a fellow fan of building small single-file HTML tools”), and Robin Sloan’s “Home-Cooked App.” Of these, only Litt now has a page, built from his “Code like a surgeon” post (Code Like a Surgeon) rather than his malleable-software writing. Sloan’s home-cooked framing is also the lineage Maggie Appleton uses for Barefoot Developers.source 2source 7

7 Connections (my observations)

  • An agent-era form of Code as Design Material. The sketch medium is runnable code, produced by talking to an agent.
  • “Copy what already works” is Code Wrangler Tips lesson 03 (“check what’s already there”) applied to prototypes. It also makes a Context Engineer point: give the agent a verified example, not its memory.
  • “The browser is the test” accepts the vibe-coding row “run it, eyeball it” from Vibe Coding vs Agentic Engineering, deliberately and only for throwaways. Keys kept out of files and human-readable errors are small guardrails that keep throwaways shareable.
  • A skill for non-technical users. Gathering requirements before building parallels Freya Stockman‘s “decide when AI should ask, when to act, and when to stop,” and the description-first advice in Skill Writing. It is a fourth design-engineering skill source alongside the collections in Design Engineering Skill Collections.
  • “Ask for both” echoes his talk’s habit of running parallel attempts and “notic[ing] the details that I like,” choosing by feel like the taste-led review in Agents with Taste.
  • Answers David Hoang‘s point that some prototypes must be code (Design Engineer as the New Data Scientist), specifically for AI features.

8 At team scale: Notion’s Prototype Playground

Brian Lovin‘s Prototype Playground (Notion) at Notion makes the same case (static mocks hide how a model behaves) with the opposite structure: one shared Next.js repository, a folder per designer, Notion’s design-system components, and slash commands for Figma import and deployment. The side-by-side table is on that page.source 5

The biggest difference is who runs the browser test. Here the human does. Lovin’s rule, “whenever the agent asks you to do something manually, stop and give it the tools”, hands the check to the agent: it opens the browser through the Chrome DevTools MCP, compares against Figma, and fixes lint and type errors in CI (Give Your Agent a Laboratory).source 6 The reading is mine: for a throwaway file, the human eyeball is the cheapest test. For a shared repository with many contributors, an agent-run check is what keeps everyone in flow.

9 Open questions

  • The skill’s “cheap draft → expensive final” pattern and its seamful debug views (html-prototypes Skill) go beyond the tips page. Did he cover them in the talk? The transcript doesn’t.

10 Sources

  • raw/articles/joshua-crowley-html-tips.md (“HTML Tips & Tricks” companion page, agent-fetched)
  • raw/articles/joshua-crowley-day-in-the-life.md (talk write-up, agent-fetched)
  • raw/articles/joshua-crowley-site-snapshot.md (Layers description)
  • raw/articles/html-prototypes-skill-snapshot.md (the skill itself)
  • raw/articles/chatprd-lovin-prototype-playground.md (connection only)
  • raw/articles/lovin-give-your-agent-a-laboratory.md (connection only)
  • raw/articles/appleton-home-cooked-software.md (Sloan lineage via Barefoot Developers)

referenced by

15 pages link here


sources

numbers match the markers
in the text above