| name | prototype |
| description | Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like. |
| 触发词 | 构建可抛弃的原型来回答设计问题。当用户想验证状态模型或逻辑是否合理,或探索 UI 应该长什么样时使用。 |
A prototype is throwaway code that answers a question. The question decides the shape.
原型是回答问题的可抛弃代码。问题决定形态。
Identify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:
确定正在回答的是哪个问题——从用户的提示、周围的代码中判断,或者如果用户在附近就直接询问:
The two branches produce very different artifacts — getting this wrong wastes the whole prototype. If the question is genuinely ambiguous and the user isn't reachable, default to whichever branch better matches the surrounding code (a backend module → logic; a page or component → UI) and state the assumption at the top of the prototype.
两个分支产生的产物截然不同——选错了就浪费了整个原型。如果问题确实模棱两可且用户联系不上,默认选择与周围代码更匹配的分支(后端模块 → logic;页面或组件 → UI),并在原型顶部说明这个假设。
pnpm <name>, python <path>, bun <path>, etc. The user must be able to start it without thinking.pnpm <name>、python <path>、bun <path> 等。用户必须能不假思索地启动它。