prototype
Build a self-contained local prototype at .turbo/prototypes/<slug>.html, drive it, and hand it to the user to settle unknowns that prose cannot answ…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Prototype
Build a throwaway prototype that answers named unknowns, operate it, and hand it to the user for judgment.
Step 1: Name What the Prototype Must Settle
Take the open unknowns from what was passed in. When nothing was passed in, derive them from the current work: the questions whose answers in prose would still leave the user guessing, such as what a surface looks like or whether an interaction pattern makes sense in the hand.
State each unknown as a question the user answers by using the prototype rather than by reading a description. When the work that prompted the prototype already named competing alternatives, state the unknown as a comparison between them. Output that list as text before building, and keep anything outside it out of the prototype.
Step 2: Resolve the Prototype Path
Reuse the slug of the plan that governs the work when there is one. Honor an explicit slug or output path the user passed in. Otherwise generate a slug from the task title:
- Lowercase
- Replace non-alphanumeric characters with hyphens
- Collapse consecutive hyphens
- Trim leading and trailing hyphens
- Truncate to 40 characters at a word boundary
Write to .turbo/prototypes/<slug>.html, creating the directory when it does not exist. State the resolved path before writing. Later rounds of the same prototype rewrite that same file. When the path holds a prototype of a different subject, append -2, -3, and so on until the path is free.
Step 3: Build It
Write one self-contained .html file at the resolved path, with markup, styles, script, and sample data inline. It runs from file:// with no build step, no package install, and no dependency on the real application. Start the styles with [hidden] { display: none !important; }: an element whose own CSS sets any display value otherwise ignores the hidden attribute and paints anyway.
Build only what the Step 1 questions require. Hardcode the data behind them, stub anything that would cross a network boundary, and leave persistence out.
When a Step 1 question compares alternatives, build every alternative into the same file behind a header toggle, kept visually separate from the design as prototype chrome, so the user compares them in place rather than across descriptions.
Step 4: Operate It
Open the file and drive it yourself before handing it over, using the browser-use@openai-bundled plugin.
Exercise every control and flow that the Step 1 questions depend on, and confirm each one is reachable and responds. Fix whatever does not work and drive it again. A render or a screenshot leaves the controls untested, so it does not establish that the user can reach what they are being asked to judge.
When a Step 1 question turns on how an interaction feels, such as a drag, scrub, or resize, drive the gesture as one continuous sequence of many small pointer moves. After each move, record the position of every element that should stay put and the moved element's offset from the pointer. Treat any change between consecutive moves that the interaction does not call for as broken, fix it, and drive the sequence again.
Step 5: Hand It Over
Give the user the file path, the Step 1 questions the prototype answers, and what to try for each. For a gesture driven move by move in Step 4, also give the largest change between consecutive moves in the values it recorded. Then use request_user_input for their verdict:
- Settled — the prototype answered the questions.
- Needs changes — the user describes what to change. Return to Step 3 and continue from there, so every later round is driven in Step 4 before it reaches the user.
Step 6: Record What It Settled
Delete from the prototype file every approach it disproved, so that nothing which failed survives in the file as apparent implementation. Remove any comparison toggle along with the alternatives it switched between. Keep what the settled answers rest on.
Then state each Step 1 question with the answer the prototype produced, and name separately anything it disproved. Carry these answers into the work that prompted the prototype. Then call update_plan to mark this step completed and continue with the next step of the active workflow.
Rules
- The prototype file is the only output. Application code stays untouched.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
同名技能的其他版本
有 2 个不同仓库或目录里都有叫 prototype 的技能。它们内容并不相同,别混用:
- tobihagemann/turbo — Build a self-contained local prototype at .turbo/prototypes/<slug>.html, drive it, and han