prototype
Throwaway prototype that settles a design question by observation. Load when choosing between layouts, interactions or state models.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- prototype
- author
- Adapted from Matt Pocock's prototype skill (github.com/mattpocock/skills) and pstack's prototype playbook by Lauren Tan (github.com/cursor/plugins), MIT licence
- license
- MIT
- description
- Throwaway prototype that settles a design question by observation. Load when choosing between layouts, interactions or state models.
03 SKILL.md 正文
Prototype
A prototype is throwaway code that answers one question. Write the question down in one line first; the question decides the shape.
Which kind
- "What should this look like?" Build several radically different variations of the screen, default 3 and at most 5, on the route where it will live, switched by a
?variant=URL parameter and a small floating bar that flips between them. Use the real layout, header, navigation and realistic data: an empty page makes every variant look fine. Only when nothing existing can host it, add a throwaway route named so it is obviously a prototype. Screenshot each variant at phone and desktop widths and in both themes, compare them against the question, then pick one or combine the best parts. - "Does this logic or state model hold up?" Build a small runnable model (one HTML file or one script) that drives the state machine through the cases that are hard to reason about, with buttons or a scripted walkthrough, and prints the full state after every action.
- "Which approach is faster, or does it work at all?" Build the smallest version of each candidate and measure them on the same input.
When the question is ambiguous, pick the kind that matches the code around it (a page means interface, a module means logic) and state the assumption at the top of the prototype.
Rules
- Throwaway and marked as such. Put it next to what it is for, named so nobody mistakes it for product code.
- One command to run. A script in the project's task runner, or a file to open.
- No persistence unless persistence is the question; then use a scratch file or database named for deletion.
- No polish. No tests, no error handling beyond what lets it run, no abstractions.
- Show the state after every action or variant switch.
- Capture the answer, delete the code. Fold the chosen design into the real code, record the verdict and the question it settled in the task result or commit message, and remove the prototype (or keep it on a branch of its own, out of the main line).
04 同仓库更多 Skills
spec
Goal to specification, vertical slices and milestones a judge can check. Load when planning a product or large feature or splitting work into tasks.
sleipnir-plugin
Make or change a Sleipnir plugin and load it live (sleipnir tool).
reverse-engineering-ui
Tear down a live site or web UI into an evidence-backed spec (layout, tokens, components, states, network) for an original rebuild. Use to clone or match one.
plain-writing
Clear technical writing without machine-generated tells. Load before writing a README, docs, site copy, release notes, a commit or PR message.
diagnose
Feedback-loop-first diagnosis of hard bugs, flaky tests and performance regressions. Load before changing code when the cause is not obvious.
codebase-design
Deep modules, interfaces and seams. Load when designing or restructuring modules or deciding where an interface goes.