
Throwaway code to answer a design question before you commit. Routes between two approaches: a minimal terminal app when you need to sanity-check state logic or a data model, or multiple radically different UI variations on one route with URL toggles when you're exploring visual design. Everything lives in memory, runs with one command, and gets deleted once you have your answer. The split matters because picking the wrong branch wastes the whole prototype. Good for "does this state machine actually work" or "let me see three different ways this could look" moments. Document what you learned, then throw it away.
$ npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill prototype --agent claude-codeInstalls into .claude/skills of the current project.
Prototype 是用来回答一个问题的 throwaway code。问题决定形状。
先识别正在回答哪个问题:来自用户 prompt、周围代码,或在用户在线时直接询问:
这两个分支会产出非常不同的 artifacts;选错会浪费整个 prototype。如果问题确实模糊且用户不可达,默认选择更匹配周围代码的分支(backend module → logic;page 或 component → UI),并在 prototype 顶部说明假设。
pnpm <name>、python <path>、bun <path> 等。Logic demo 则是用户双击即可打开的单个 HTML 文件。无论哪种,启动都不需要动脑。Sponsors