prototype
Builds throwaway code that answers one design question: a single-file HTML demo to push a state model or business logic through hard cases, or several structurally different UI variants on one route, switchable in the browser. Use when the user wants to check whether logic or a state model feels right, explore what a screen should look like before committing, or settle a wayfinder prototype ticket with something runnable.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- prototype
- description
- Builds throwaway code that answers one design question: a single-file HTML demo to push a state model or business logic through hard cases, or several structurally different UI variants on one route, switchable in the browser. Use when the user wants to check whether logic or a state model feels right, explore what a screen should look like before committing, or settle a wayfinder prototype ticket with something runnable.
02 资源文件 3
- 参考文档agents/openai.yaml117 B
- 参考文档LOGIC.md4.9 KB
- 参考文档UI.md5.9 KB
03 SKILL.md 正文
Prototype
A prototype is throwaway code that answers a question. The question decides its shape.
Pick a branch
Name the question from the user's prompt and the surrounding code. If that
doesn't settle it and the user is around, ask: through AskUserQuestion on
Claude Code, as a plain question on Codex.
- "Does this logic or state model feel right?" Read LOGIC.md. You build one shareable HTML file, with free-play buttons and tabbed guided walkthroughs, that pushes the state model through cases that are hard to reason about on paper, and that a non-developer can drive.
- "What should this look like?" Read UI.md. You build several radically different variants on one route, switched by a URL search param and a floating bottom bar.
The two branches produce very different artifacts, so a wrong pick wastes the whole prototype. If the question stays ambiguous and the user isn't reachable, take the branch that matches the surrounding code (a backend module means logic; a page or component means UI) and state the assumption at the top of the prototype.
Done when the question is written down in one sentence and the branch is chosen.
Rules for both branches
- Throwaway, and visibly so. Put the prototype next to the module or page it is for, so the context is obvious, and name it so a casual reader sees it is a prototype. A throwaway UI route follows the project's existing routing convention; don't invent a new top-level structure.
- Trivial to run. A UI prototype starts with one command from the
project's task runner (
pnpm <name>,python <path>,bun <path>). A logic demo is one HTML file the user double-clicks. - No persistence by default. State lives in memory: persistence is what a prototype might be checking, never something it depends on. If the question is about storage, use a scratch database or a local file named so it is obviously disposable ("PROTOTYPE, wipe me").
- Skip the polish. No tests, no error handling beyond what keeps it
running, no abstractions. The point is to learn fast; the
minimal-changeladder doesn't apply here, since none of this ships. - Surface the state. After every action (logic) or variant switch (UI), render the full relevant state so the user sees what changed.
- Capture it when done. Fold the validated decision into the real code. Commit the prototype itself to a throwaway branch, never main, and link that branch, with the verdict and the question it settled, from the issue it served, or from the commit message or PR that lands the decision when there's no issue. Main keeps only the decision.
Done when the user has given a verdict, the decision is in the real code or on its issue, and the prototype lives on its throwaway branch rather than main.
04 同仓库更多 Skills
teach
Teach yourself a topic over several sessions, with lessons, references, and a record of what you've learned.
svg-logo-designer
Generate SVG logos with multiple concepts, layouts, and color variations.
documentation-writer
Writes and revises human-facing documentation — READMEs, contributor and setup guides, reference pages, architecture notes, CLAUDE.md, and changelog entries. Covers picking the right document type for the question being asked, structuring for skimming, writing examples that actually run, and keeping docs from going stale. Use when creating or rewriting docs, when a README has drifted from the code, or when deciding where a piece of information belongs. For SKILL.md and agent files, use /skill-writer instead.
adhd-mode
Shapes every response for a reader with ADHD: the next action first, numbered steps, progress restated each turn, tangents held back, concrete time estimates, wins made visible. Stays on for the rest of the session until the reader says "stop adhd mode". On Claude Code, the harness-kit:adhd output style does the same without invoking this skill.
wait-what
That last message didn't land: re-explain it with the missing context.
to-questionnaire
Turn a decision you can't make alone into a questionnaire for the one person who can answer it, filled in async or together in a meeting.