prototype

Build throwaway HTML or UI prototypes to answer design questions about logic and layout.

1|Updated Aug 24, 2026
One-click install
npx skills add https://github.com/yamcodes/the-hat --skill prototype-yamcodes
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prototype
Source: https://github.com/yamcodes/the-hat/tree/main/skills/prototype
Command: npx skills add https://github.com/yamcodes/the-hat --skill prototype-yamcodes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Design questions about state models, business logic, or UI layout are hard to settle on paper or in chat. This Skill produces throwaway, runnable prototypes that let you and non-developers feel the answer before committing to real code. ## Core Features & Use Cases - Logic Prototypes: Build a single self-contained HTML file with free-play buttons and tabbed guided walkthroughs that drive a pure reducer, state machine, or function set through edge cases. - UI Prototypes: Generate 3-5 radically different UI variants on one route, switchable via a ?variant= URL param and a floating bottom bar with arrow-key cycling. - Capture Workflow: Fold validated decisions into real code while committing the prototype to a throwaway branch as a primary source. - Use Case: Before writing a checkout state machine, build a shareable HTML demo so a PM can click through scenarios and discover that a transition should be illegal. ## Quick Start Ask the AI to prototype whether your state model handles a tricky edge case, or to generate three layout variants of an existing page switchable via a URL parameter.

Frequently Asked Questions about prototype

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prototype a state machine before writing real code?▼

Build a single self-contained HTML file with a pure reducer or state machine in one script block, free-play buttons per action, and tabbed guided walkthroughs for edge cases. Anyone can open it by double-clicking and push the model through real scenarios.

How to compare multiple UI design variants in one app?▼

Render 3-5 structurally different variants on the same route gated by a ?variant= URL search param, with a floating bottom bar to cycle between them. Keep existing data fetching intact and only swap the rendered subtree per variant.

Should a prototype connect to a real database?▼

No, prototypes keep state in memory by default since persistence is usually the thing being checked, not a dependency. Only hit a scratch database or clearly named local file when the question explicitly involves persistence.

When should I not write a throwaway prototype?▼

Skip prototyping when the question is already answered or when the code needs tests, error handling, and abstractions, since those signal production work. A prototype that needs tests is no longer a prototype and should be written properly instead.

What happens to prototype code after the question is answered?▼

Fold the validated decision into the real code, then commit the full prototype to a throwaway branch as a primary source with a pointer on the implementation issue. The main branch keeps only the validated decision, not the prototype shell.