Use when a design question needs to be felt before committing — sanity-check a state machine / data model / API shape, or mock up a few UI options. Builds throwaway code that answers ONE question, then captures the answer and is deleted. Routes to a logic TUI, web UI variants, or a customer-review demo. Do not use to build the real thing (use /tdd) or to debug (use /diagnose).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Prototype?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aldianriski-prototype)
---
name: prototype
description: Use when a design question needs to be felt before committing — sanity-check a state machine / data model / API shape, or mock up a few UI options. Builds throwaway code that answers ONE question, then captures the answer and is deleted. Routes to a logic TUI, web UI variants, or a customer-review demo. Do not use to build the real thing (use /tdd) or to debug (use /diagnose).
argument-hint: "[the design question to answer]"
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
user-invocable: true
version: "0.1.0"
---
# prototype
A prototype is **throwaway code that answers a question.** The question decides the shape. It slots
into the design stage — when `/orchestrator`'s Grill can't resolve a design on paper, prototype to
feel the answer, then feed it into the plan.
## Pick a branch
Identify the question — from the prompt, the surrounding code, or by asking:
- **"Does this logic / state model / API feel right?"** → terminal logic prototype. A tiny interactive TUI that drives a state machine by hand through cases that are hard to reason about on paper. Full process → `${CLAUDE_SKILL_DIR}/references/logic.md`.
- **"What should this look like?"** → web UI prototype *(web projects only)*. Several radically different UI variations on one route, switchable from a floating bar. Full process → `${CLAUDE_SKILL_DIR}/references/ui.md`.
- **"Will a customer understand and want this?"** → customer-review demo *(any project with something to show)*. A bounded, labelled simulation plus a task script for real target users, kept until the recorded session. Full process → `${CLAUDE_SKILL_DIR}/references/demo.md`.
Wrong branch = wasted prototype. If genuinely ambiguous and the user is unreachable, match the surrounding code (backend module → logic; page/component → UI; a question about what a customer will understand or want → demo) and state the assumption at the top.
## Rules (all branches — the demo's exceptions to rules 3, 4 and 5 are in `references/demo.md`)
1. **Throwaway from day one, clearly marked.** Locate it next to where it'll be used so context is obvious; name it so a casual reader sees it's a prototype, not production.
2. **One command to run** — via the project's existing task runner. No path to remember.
3. **No persistence by default** — state lives in memory. Persistence is the thing being *checked*, not depended on. If the question is about the DB, use a scratch store named `PROTOTYPE — wipe me`.
4. **Skip the polish** — no tests, no error handling beyond runnable, no abstractions, no "what if we need X later". One question.
5. **Surface the state** — after every action (logic) or variant switch (UI), render the full relevant state so the user sees what changed.
6. **Retire it when done, don't lose it** — never leave it rotting on the working branch. Commit the spent prototype to a **throwaway branch** off main (message passed through `/humanizer` embedded mode, format `plain` → the humanizer skill's `references/embedded.md` § Commit messages and PR bodies) and leave a pointer to that branch beside the captured answer; then delete or absorb it here. The branch costs nothing, keeps the primary source retrievable when the verdict is later questioned, and avoids TD-012's shape — deleting the scaffolding also deleted the fixtures that were guarding something.
## State the question first
Before any code, write the question + the model you're prototyping (one paragraph, at the top of the
prototype or its `NOTES.md`). A prototype that answers the wrong question is pure waste — make it
explicit so it's checkable later, including AFK.
## Capture the answer (the only thing worth keeping)
When it's answered its question, record **the answer + the question** somewhere durable, then delete
or absorb the prototype:
- A genuine design decision → an **ADR**, where it clears STANDARD §4's bar for one.
- A decision-rich snippet (state machine, schema, type shape) → feed it into `/task-decomposer`'s PRD (its Implementation Decisions already cite "a prototype produced a snippet").
- Otherwise → a `NOTES.md` next to the prototype with the verdict, filled before deletion.
- A UI variant's winning direction → offered for the repo's `DESIGN.md` (never created unasked; fields only from the owner).
- A demo's recorded customer session → its observations into `docs/product/requirements.md` (through `/lean-doc-generator prd`) or an ADR. Call it validated only from recorded observations of real target users.
## Red flags
❌ **A prototype with tests** — it's no longer a prototype; that's `/tdd`.
❌ **Wiring to the real database / real mutations** — use an in-memory or stub store.
❌ **Generalising** — "support X later" defeats the point; answer one question.
❌ **Shipping the shell to production** — the TUI shell / variant switcher is hand-driven scaffolding; only the validated logic (or winning variant, rewritten) folds in.
❌ **Leaving it in the repo unanswered** — capture the verdict, then delete or absorb.