---
name: prototype
description: "Use when building a throwaway prototype to answer one design question: a logic/state demo or several switchable UI variants, captured on a throwaway branch"
---
# Prototype
Build a throwaway prototype to answer a **design question**. The question
decides what gets built and how. Reason from the stated question, not from
the solution the user suggests: a prototype is a spent tree branch. The
prototypes themselves are never merged; what survives is the answer.
## Pick the branch (the question asked decides)
- **"Does this logic / state model feel right?"** → a logic prototype
([LOGIC.md](references/LOGIC.md)). Single self-contained HTML file; a
non-developer can drive the state model with buttons.
- **"What should this look like?"** → a UI prototype
([UI.md](references/UI.md)). Several radically different variants on one
route, switchable from a floating bar; the user picks or mixes.
If the question is not stated, ask for it before building.
## Rules
1. **Throwaway, not production.** No tests, no persistence, no framework
servers or bundlers unless the question demands them. It exists to be
learned from and discarded.
2. **State the question where the reviewer sees it** — a visible intro on
the page, a plan line at the throwaway route — so whether it was
answered can be checked later, including by someone returning AFK.
3. **Surface state.** After every action, re-render the current state
visibly (panic buttons do nothing silently). If the page must be
refreshed to see a change, the prototype is broken.
4. **Trivial to run.** One file to double-click, or one route that just
works. If the reviewer needs setup, the prototype failed its job.
5. **Capture the answer and the prototype.** Record which option won and
why, then land the prototype itself on a throwaway branch (named
`prototype/<name>`) as a primary source — never merge to main, never
delete. The fold-in to real code is a rewrite, not a promotion.
<!-- ‹guest · 2026-12-06› -->
Adapted from mattpocock/skills `prototype` (MIT), tuned to this bundle's
checkpoint and preview-before-bake rules.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.