Builds throwaway code to answer a design question about UI or logic. Supports two branches: logic (interactive state model walkthroughs) and UI (multiple visual variations).
Ships in prototype. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A prototype is throwaway code that answers a question. Name the question first; the question decides the shape.
/skill prototype [--branch logic|ui] [--subject <path>] <question>
--branch: force the branch from Step 1. Omit to infer it.--subject: the file or module the prototype is about. Omit to find it
from the question text.Examples:
/skill prototype sanity-check whether the retry state machine in retry.js feels right/skill prototype --branch ui what should the dashboard header look likeThe three steps below are the plan; do not open a task list for them.
From the question, the surrounding code, or the --branch flag:
references/LOGIC.md. Build a single self-contained HTML file: free-play
controls plus guided walkthroughs that push the state model through the
cases that are hard to reason about on paper, drivable by a
non-developer.references/UI.md. Generate
several radically different UI variations on one route, switchable via a
URL parameter.The branches produce very different artifacts; getting this wrong wastes the prototype. Ambiguous → default by neighborhood (backend module → logic; page or component → UI) and state the assumption at the top of the prototype and in your reply.
Read the subject code once, then write down in your reply, before any code: the question, the branch, and the three to five cases the prototype must exercise. That list is the acceptance bar for Step 2.
<subject>-prototype.html, prototype-<slug>/). Follow the project's
existing routing/layout conventions; invent no new top-level structure.edit; never rewrite the whole file to change a few lines.node -e (or the project's
runtime) call and read the output. That transcript is the evidence
for the verdict; a verdict from reading code alone is a guess.Shell rules: run one command per bash call, plain and direct. Never use
$(...) or backticks; they trigger an approval gate that ends a headless
run.
Do these in order. Do not stop after building; a prototype without a recorded verdict answered nothing.
Decide. Write the verdict in one sentence, then the evidence: which Step 1 cases behaved as expected, which did not, and what the model is missing.
Park the code on a throwaway branch. Run these as separate bash
calls, substituting a short slug:
git checkout -b prototype/<slug>
git add <prototype files>
git commit -m "prototype: <question> (throwaway, verdict in message)"
git checkout -
Returning to the original branch removes the committed prototype from the working tree, which is the point: the main line keeps only the validated decision, never the prototype. If the directory is not a git repository, leave the file in place and say so.
Report. Your final reply is the record. It names, in this order:
the question, the verdict, the evidence, the recommended change to the
real code (or "none"), and the branch pointer prototype/<slug>. When
the work is tracked elsewhere (issue, plan, handoff), the user copies
this block there; you do not need a separate report file, and you must
not end the run with the artifact tool.
Done when the verdict is in the reply, the pointer exists, and
git status on the working branch shows no prototype files.
What SKILL.md sets; muted values are Claude Code's defaults
/prototype:prototypefrom prototype
npx claudepluginhub panstudio/pancode --plugin prototypeOther plugins' skills for the same job