prototype
原型 (Prototype)
原型是回答问题的一次性代码。问题决定了形状。
A prototype is throwaway code that answers a question. The question decides the shape.
选择分支 (Pick a branch)
识别正在回答什么问题——来自用户的提示、周围的代码,或在用户在场时询问:
Identify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:
- "这个逻辑/状态模型感觉对吗?" → LOGIC.md。构建一个小型交互式终端应用,将状态机推过那些在纸面上难以推理的情况。
"Does this logic / state model feel right?" → LOGIC.md. Build a tiny interactive terminal app that pushes the state machine through cases that are hard to reason about on paper.
- "这应该长什么样?" → UI.md。在单一路由上生成多种截然不同的 UI 变体,通过 URL 搜索参数和浮动底部栏切换。
"What should this look like?" → UI.md. Generate several radically different UI variations on a single route, switchable via a URL search param and a floating bottom bar.
两个分支产生非常不同的产物——搞错这个会浪费整个原型。如果问题确实模糊且用户不可联系,选择更匹配周围代码的分支(后端模块 → 逻辑;页面或组件 → UI),并在原型顶部陈述假设。
More from ninehills/mattpocock-skills
to-issues
使用曳光弹垂直切片将计划、规格或 PRD 拆分为项目 issue 跟踪器上可独立认领的 issue。当用户想将计划转换为 issue、创建实现工单、或将工作拆分为 issue 时使用。 (Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.)
2tdd
红-绿-重构循环的测试驱动开发。当用户想使用 TDD 构建功能或修复 bug、提到"红-绿-重构"、想要集成测试、或要求测试先行开发时使用。 (Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.)
1handoff
将当前对话压缩为交接文档,供另一个 agent 接续工作。 (Compact the current conversation into a handoff document for another agent to pick up.)
1grill-me
对用户的计划或设计进行无情的访谈,直到达成共识,逐个解决决策树的每个分支。当用户想要压力测试计划、被质疑设计或提到"grill me"时使用。 (Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".)
1zoom-out
让 agent 拉远视角,对不熟悉的代码区域给出更广泛的上下文或更高层次的视角。当用户不熟悉某段代码或需要理解它如何融入更大图景时使用。 (Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.)
1caveman
>
1