prototype

Installation
SKILL.md

原型 (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),并在原型顶部陈述假设。

Related skills

More from ninehills/mattpocock-skills

Installs
1
GitHub Stars
31
First Seen
Today