agentleFS
int2t05int2t05/engineering-skills/skills/03-design/prototype/SKILL.md

prototype

Skill3 starsChanged 4 months agoMITView on GitHub

Use when a design question is best answered by a throwaway prototype — a single shareable HTML file for state/logic, or several toggleable UI variations to compare. Triggers on "prototype", "throwaway", "mockup", "compare layouts", "validate the interaction", "sketch out", "try this quickly", "build a demo", "原型", "试做", "试这个方案", "搭个快速 demo".

196 other projects use a version of this, 64 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use playtest-report, team-audio and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • CoralGameSkill

    team-audio

    Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.

    Also in 6 projects that use this

  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +2 more from CoralGame
  • +6 more from cenconq25

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 183 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the question is ambiguous and the user isn't reachable, default to whichever branch matches the surrounding code (backend module → logic.

    line 30
  2. Distinctive:

    No persistence by default — state in memory.

    line 37

“Common” is measured: kept by at least 6 in 10 of the 183 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prototype

A prototype is throwaway code that answers a question. The question decides the shape.

When to use

  • "Does this logic / state model feel right?" → logic prototype
  • "What should this look like?" → UI prototype
  • Sanity-check a state machine or data model before committing; explore UI directions before picking one
  • Triggers on "prototype", "throwaway", "mockup", "compare layouts", "validate the interaction", "sketch out", "try this quickly", "build a demo", "原型", "试做", "试这个方案", "搭个快速 demo"

Not for: production UI implementation (use frontend-design); production code (use implement).

Steps

1. Pick a branch

The two branches produce very different artifacts; getting this wrong wastes the whole prototype.

  • Logic / state model → load references/logic.md. Single shareable HTML file with free-play buttons and tabbed guided walkthroughs a non-developer can drive.
  • What it looks like → load references/ui.md. Several radically different UI variations on one route, switchable via ?variant= and a floating bar.

If the question is ambiguous and the user isn't reachable, default to whichever branch matches the surrounding code (backend module → logic; page/component → UI) and state the assumption up top.

2. Build it throwaway from day one

  • Locate it close to where it will be used, but name it so a reader sees it's a prototype
  • Trivial to run: one command in the task runner, or a single HTML file double-clicked
  • No persistence by default — state in memory; no tests, no abstractions, no polish
  • Surface the full relevant state after every action (logic) or variant switch (UI)

3. Capture the answer when done

Fold validated decisions into the real code. Capture the prototype itself as a primary source: commit to a throwaway branch (out of main), leave a context pointer on the implementation issue, and record the verdict + question settled. Main keeps only the validated decision.

Output: docs/design/prototype-findings.md — the question tested, the verdict, and the validated decision. The prototype code itself stays on a throwaway branch; only the finding is promoted to main as a durable record.

Verify

  • Question being answered stated explicitly at the top of the prototype
  • Correct branch chosen — not silently defaulted
  • Runs from one command or one double-click, no setup required
  • State visible after every action / variant switch
  • Validated decision folded into real code; prototype on a throwaway branch

References

  • ${CLAUDE_PLUGIN_ROOT}/references/engineering-principles.md — shared discipline (enforce simplicity, verify don't assume)
  • ${CLAUDE_PLUGIN_ROOT}/references/design-principles.md — design discipline (hierarchy before decoration, design every state, recognize rather than recall).
  • references/logic.md — single-shareable-HTML logic prototype: pure module, free-play + guided walkthroughs
  • references/ui.md — toggleable UI variants: sub-shape A (existing page) vs B (throwaway route), floating switcher

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.