AGENT SKILL

prototype

Build throwaway code that answers one design question, either a clickable state-model demo or switchable visual variants. Use when the user wants to feel out logic, a state model or a screen before committing to a design.

License 许可
MIT
最近更新
2026-11-04
Stars
★ 0
Forks
0

01 前言 Front Matter

name
prototype
metadata
{ "layer": "L3", "source": "mattpocock/skills@49dd158:skills/engineering/prototype/SKILL.md + LOGIC.md + UI.md", "license": "MIT" }
description
Build throwaway code that answers one design question, either a clickable state-model demo or switchable visual variants. Use when the user wants to feel out logic, a state model or a screen before committing to a design.

02 资源文件 2

03 SKILL.md 正文

Prototype

A prototype is throwaway code that answers one question. The question decides its shape. No question, no prototype: settle what is being decided first.

Pick the branch

  • "Does this logic or state model feel right?" Read references/logic.md: a single self-contained page that drives the model through hard cases, usable by a non-developer.
  • "What should this look like?" Read references/visual.md: several structurally different variants on one screen, with a switcher.

Picking wrong wastes the whole prototype. If the question is ambiguous and the user is not around, follow the surrounding code (a module points to logic, a screen points to visual) and state the assumption at the top of the prototype.

Rules for both

  1. Throwaway, and marked as such. Put it next to the code it is for, named so a reader sees prototype in the path. Follow the repo's existing conventions for where screens and modules live; don't invent a new top-level structure.
  2. Trivial to run. A logic demo opens by double-click. A visual prototype starts with the profile's run command: ven-profile get commands.run.
    • verified: start it with ven-profile run commands.run.
    • manual (dev servers usually are): don't start it. Tell the user the exact command from the leaf's run, what it requires, and what to open.
    • Missing: say so and ask the user how they start the app.
  3. No persistence by default. State lives in memory. If persistence is the question, use a scratch store named so anyone sees it is safe to wipe.
  4. No polish. No tests, no error handling beyond what keeps it runnable, no abstractions, no generalizing.
  5. Show the state. After every action or variant switch, render the full relevant state so the user sees what changed.
  6. Look before you hand over. Run it once yourself and check that each action or switch does what you claim. Here the observation is the test.

Hand over

Reply with: the question, the variants or scenarios built, what you observed, your recommendation, how to run it, and a plain statement that it is throwaway. The interesting feedback is "that shouldn't be possible" or "the header from B with the list from C"; that is the real design. Add scenarios or variants when asked.

Capture

Once the question is answered:

  1. Write the answer (question, verdict, why) into the spec or ticket it informs.
  2. Fold the validated decision into real code properly, with tests. Never promote prototype code as is.
  3. Commit the prototype to a throwaway branch named prototype/<slug>, never the default branch, and note that branch next to the answer. The default branch keeps only the decision.
  4. Record: ven-decisions add --step prototype --decision "<question>: <answer>" --evidence "prototype/<slug>".

04 同仓库更多 Skills

Ventorius
Ventorius/ven-stack

yeet

Take every local change green through the repo's own checks, slice it into conventional commits, push, and with --pr open a pull request on the code host. Use only when the user explicitly asks to yeet, or to commit and push everything; never on your own initiative.

★ 0
Ventorius
Ventorius/ven-stack

write-docs

Write or update documentation from the code: gather facts, pick the shape for the reader, write it plain, and prove every command and path in it. Use when asked to document a repo, module or feature, or to bring stale docs up to date.

★ 0
Ventorius
Ventorius/ven-stack

why

Find why code is shaped the way it is (design rationale, trade-offs, regressions, odd thresholds) from history, tickets, docs and chat, citing every claim and stating its confidence. Use for 'why does X work this way', 'why did we pick Y', or before changing code whose purpose is unclear.

★ 0
Ventorius
Ventorius/ven-stack

verify

Prove a change works with the check that matches its type, do the read-back, and log the pass against the exact tree. Use when a change is ready to call done, before review, commit or stopping, and whenever ven-decisions end refuses an unverified tree.

★ 0
Ventorius
Ventorius/ven-stack

unslop

Cut AI writing tells (filler, model vocabulary, metaphor nouns, hedging, formatting tics) from text while keeping every fact. Use when editing or checking any prose before it ships: docs, PR bodies, reports, skill text.

★ 0
Ventorius
Ventorius/ven-stack

type-discipline

Apply when designing types or data shapes, reviewing a signature, or handling outside data, in any language. Make wrong states fail early: in the compiler for typed languages, in validated runtime contracts for untyped ones.

★ 0