agentleFS
ZunoSmartLabsZunoSmartLabs/zsl-superpowers/skills/engineering/prototype/SKILL.md

prototype

Skill2 starsChanged 52 days agoMITView on GitHub

Build a throwaway prototype to flush out a design before committing to it. Routes between two branches — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route. Use when the user wants to prototype, sanity-check a data model or state machine, mock up a UI, explore design options, or says "prototype this", "let me play with it", "try a few designs".

194 other projects use a version of this, 115 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use playtest-report, soak-test 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 12 projects that use this

  • lilangMaxSkill

    soak-test

    Generate a soak test protocol for extended play sessions. Defines what to observe, measure, and log during long play sessions to surface slow leaks, fatigue effects, and edge cases that only appear after sustained play. Primarily used in Polish and Release phases.

    Also in 9 projects that use this

  • lilangMaxSkill

    team-live-ops

    Orchestrate the live-ops team for post-launch content planning: coordinates live-ops-designer, economy-designer, analytics-engineer, community-manager, writer, and narrative-director to design and plan a season, event, or live content update.

    Also in 9 projects that use this

  • CoralGameSkill

    team-polish

    Orchestrate the polish team: coordinates performance-analyst, technical-artist, sound-designer, and qa-tester to optimize, polish, and harden a feature or area for release quality.

    Also in 14 projects that use this

  • +5 more from lilangMax
  • +3 more from CoralGame

The file

Show its rules and text

We split this skill into the rules it gives an agent

29 rules. 2 are common, 26 are distinctive, and 1 is very specific to this project.

  • 2

    Common

    Most of the 179 edited versions we read keep these.

  • 26

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Skip the polish: No tests, no error handling beyond what makes the prototype *runnable*, no abstractions.

    line 24
  2. Common:

    Surface the state: After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see …

    line 25
  3. Distinctive:

    Delete or absorb when done: When the prototype has answered its question, either delete it or fold the validated decision into the real …

    line 26
  4. Very specific:

    Do not hand-edit content between the BEGIN/END markers — scripts/sync_book_rules.py overwrites it from vendor/agent-rules-books/.

    line 36
  5. Distinctive:

    Use as a general engineering operating style when the goal is accountable delivery, adaptability, fast feedback, and code that remains easy …

    line 46
  6. Distinctive:

    Do not optimize only for the local edit, requested feature, or familiar ritual.

    line 50
  7. Distinctive:

    Keep one authoritative representation for each piece of system knowledge.

    line 57
  8. Distinctive:

    Keep volatile decisions reversible where practical.

    line 59
  9. Distinctive:

    Use domain vocabulary and small domain languages only when they make rules clearer to the people who must validate or change them.

    line 60
  10. Distinctive:

    Prefer thin end-to-end tracer bullets over piles of isolated pieces.

    line 61
  11. Distinctive:

    Use prototypes to learn, not to pretend the work is done.

    line 62
  12. Distinctive:

    Treat resource ownership as a contract.

    line 68
  13. Distinctive:

    Prefer inspectable plain text, open formats, scripts, explicit serialization, and version-aware configuration when longevity, diffability, …

    line 69
  14. Distinctive:

    Treat shared mutable state, ambient context, globals, temporal coupling, and asynchronous complexity as costs that must earn themselves and …

    line 70
  15. Distinctive:

    Use tooling as leverage for correctness and speed, but understand generated code, formal methods, specifications, and tool output before …

    line 71
  16. Distinctive:

    When the same fact appears in multiple artifacts, choose one owner and derive, generate, validate, or trace the rest.

    line 80
  17. Distinctive:

    When one change requires edits in many unrelated places, repair the missing boundary or hidden coupling before it spreads.

    line 81
  18. Distinctive:

    When volatile details are hard-coded, move them into validated, controlled, versioned configuration, metadata, or an explicit abstraction.

    line 82
  19. Distinctive:

    When uncertainty is high or a decision is hard to reverse, reduce risk with tracer feedback, a prototype, a smaller reversible step, or a …

    line 83
  20. Distinctive:

    When prototype code, generated scaffolds, diagrams, specs, formal models, or tool output start becoming production truth, inspect, …

    line 84
  21. Distinctive:

    When prose specifications keep growing without reducing uncertainty, build a working slice, example, or prototype that forces feedback.

    line 85
  22. Distinctive:

    When hidden assumptions live only in comments, caller folklore, or tribal setup steps, move them into code, contracts, tests, scripts, or …

    line 86
  23. Distinctive:

    When an error or resource crosses a boundary, decide who can recover, what context survives, and who owns cleanup.

    line 87
  24. Distinctive:

    When shared state, async behavior, locks, ordering, or temporal coupling appears, make ownership, synchronization, cleanup, and ordering …

    line 88
  25. Distinctive:

    When repeated manual steps, human checks, environment rituals, or release procedures appear, automate and version them.

    line 89
  26. Distinctive:

    When tests are slow, flaky, environment-dependent, or require excessive unrelated setup, improve the feedback path rather than normalizing …

    line 90
  27. Distinctive:

    When a human finds a bug, add or improve an automatic regression test around the protected contract.

    line 91
  28. Distinctive:

    When code works for reasons nobody can explain, stop and prove the behavior with data before depending on it.

    line 92
  29. Distinctive:

    When local decay appears in touched code, fix it if cheap or leave an explicit containment or cleanup path.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 179 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.

Pick a branch

Identify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:

  • "Does this logic / state model feel right?" → LOGIC.md. Build a tiny interactive terminal app that pushes the state machine through cases that are hard to reason about on paper.
  • "What should this look like?" → UI.md. Generate several radically different UI variations on a single route, switchable via a URL search param and a floating bottom bar.

The two branches produce very different artifacts — getting this wrong wastes the whole prototype. If the question is genuinely ambiguous and the user isn't reachable, default to whichever branch better matches the surrounding code (a backend module → logic; a page or component → UI) and state the assumption at the top of the prototype.

Rules that apply to both

  1. Throwaway from day one, and clearly marked as such. Locate the prototype code close to where it will actually be used (next to the module or page it's prototyping for) so context is obvious — but name it so a casual reader can see it's a prototype, not production. For throwaway UI routes, obey whatever routing convention the project already uses; don't invent a new top-level structure.
  2. One command to run. Whatever the project's existing task runner supports — pnpm <name>, python <path>, bun <path>, etc. The user must be able to start it without thinking.
  3. No persistence by default. State lives in memory. Persistence is the thing the prototype is checking, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE — wipe me" name.
  4. Skip the polish. No tests, no error handling beyond what makes the prototype runnable, no abstractions. The point is to learn something fast and then delete it.
  5. Surface the state. After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed.
  6. Delete or absorb when done. When the prototype has answered its question, either delete it or fold the validated decision into the real code — don't leave it rotting in the repo.

When done

The answer is the only thing worth keeping from a prototype. Capture it somewhere durable (commit message, ADR, issue, or a NOTES.md next to the prototype) along with the question it was answering. If the user is around, that capture is a quick conversation; if not, leave the placeholder so they (or you, on the next pass) can fill in the verdict before deleting the prototype.

<!-- BEGIN bundled-book-rules -->

Bundled book rules

Do not hand-edit content between the BEGIN/END markers — scripts/sync_book_rules.py overwrites it from vendor/agent-rules-books/.

Rules from "The Pragmatic Programmer" by Andrew Hunt & David Thomas

<!-- BEGIN the-pragmatic-programmer.mini.md v0.5 -->

OBEY The Pragmatic Programmer by Andrew Hunt and David Thomas

When to use

Use as a general engineering operating style when the goal is accountable delivery, adaptability, fast feedback, and code that remains easy to change.

Primary bias to correct

Do not optimize only for the local edit, requested feature, or familiar ritual. Own the outcome by reducing duplicated knowledge, keeping concerns independent, proving assumptions early, automating repeated work, and making intent clear.

Decision rules

  • Be pragmatic, not dogmatic: choose the practice, formality, quality level, and stopping point that improves real outcomes for the users, risks, and codebase.
  • Own the result. Surface tradeoffs, risks, uncertainty, and avoidable design costs instead of blaming tools, framework defaults, schedule pressure, or existing style.
  • Think beyond the local edit: quick fixes that multiply future maintenance cost are usually a bad bargain; leave touched areas better where the cost is low.
  • Keep one authoritative representation for each piece of system knowledge. Business rules, validation, status semantics, mappings, calculations, schemas, configuration meaning, generated output, and manual process steps should derive from or trace to one owner.
  • Preserve orthogonality: keep components independent, responsibilities non-overlapping, interfaces narrow, collaborator knowledge small, and policy, mechanism, data, presentation, orchestration, and computation separated.
  • Keep volatile decisions reversible where practical. Do not hard-code vendors, platforms, databases, deployment environments, policies, or requirements before evidence justifies the commitment.
  • Use domain vocabulary and small domain languages only when they make rules clearer to the people who must validate or change them.
  • Prefer thin end-to-end tracer bullets over piles of isolated pieces. Keep the first slice simple but real enough to validate architecture, integration, and assumptions.
  • Use prototypes to learn, not to pretend the work is done. State what the prototype proves, what it does not prove, and which shortcuts must be discarded or hardened.
  • Dig for real requirements. Separate durable needs and constraints from current implementation details, proposed solutions, growing prose specs, and unresolved team hesitation.
  • Automate repetitive, error-prone, easy-to-forget, or ritualized work. Builds, tests, linting, formatting, packaging, deployment, setup, validation, and release should be reproducible and aligned with shared automation.
  • Shorten feedback loops with relevant tests, automated checks, visible failures, and cheap early signals before late expensive surprises.
  • Make contracts, assumptions, invariants, responsibilities, and caller/callee obligations explicit and close to the abstraction they protect.
  • Distinguish programmer errors, contract violations, impossible states, expected domain failures, retryable failures, recoverable failures, and permanent failures; preserve diagnostic context and fail inside boundaries that prevent wider collapse.
  • Treat resource ownership as a contract. Release every acquired allocation, handle, lock, or resource on success and failure paths, preferably opposite acquisition order.
  • Prefer inspectable plain text, open formats, scripts, explicit serialization, and version-aware configuration when longevity, diffability, automation, migration, or interoperability matter.
  • Treat shared mutable state, ambient context, globals, temporal coupling, and asynchronous complexity as costs that must earn themselves and be made visible.
  • Use tooling as leverage for correctness and speed, but understand generated code, formal methods, specifications, and tool output before relying on them.
  • Debug from reproduced facts: observe, isolate, explain, fix, and verify before guessing or blaming compilers, operating systems, libraries, or vendors.
  • Break work into small deliverable increments with honest uncertainty, visible risk, and estimates that can be corrected by feedback.
  • Communicate through code, names, docs, comments, commit messages, scripts, tests, and artifacts. Use comments for rationale, contracts, or non-obvious behavior, not as substitutes for encoded rules.
  • Build pragmatic teams around shared responsibility, explicit expectations, automation, fast feedback, visible quality, and artifacts you are willing to stand behind.
  • Apply the broken windows rule: fix or visibly contain small quality decay before bad code, unclear ownership, weak design, or broken process becomes normal.

Trigger rules

  • When the same fact appears in multiple artifacts, choose one owner and derive, generate, validate, or trace the rest.
  • When one change requires edits in many unrelated places, repair the missing boundary or hidden coupling before it spreads.
  • When volatile details are hard-coded, move them into validated, controlled, versioned configuration, metadata, or an explicit abstraction.
  • When uncertainty is high or a decision is hard to reverse, reduce risk with tracer feedback, a prototype, a smaller reversible step, or a delayed commitment.
  • When prototype code, generated scaffolds, diagrams, specs, formal models, or tool output start becoming production truth, inspect, understand, harden, replace, or reject them deliberately.
  • When prose specifications keep growing without reducing uncertainty, build a working slice, example, or prototype that forces feedback.
  • When hidden assumptions live only in comments, caller folklore, or tribal setup steps, move them into code, contracts, tests, scripts, or checked configuration.
  • When an error or resource crosses a boundary, decide who can recover, what context survives, and who owns cleanup.
  • When shared state, async behavior, locks, ordering, or temporal coupling appears, make ownership, synchronization, cleanup, and ordering requirements explicit.
  • When repeated manual steps, human checks, environment rituals, or release procedures appear, automate and version them.
  • When tests are slow, flaky, environment-dependent, or require excessive unrelated setup, improve the feedback path rather than normalizing skipped checks.
  • When a human finds a bug, add or improve an automatic regression test around the protected contract.
  • When code works for reasons nobody can explain, stop and prove the behavior with data before depending on it.
  • When local decay appears in touched code, fix it if cheap or leave an explicit containment or cleanup path.

Final checklist

  • One authoritative owner for each system fact?
  • Unrelated concerns independent and volatile choices reversible?
  • Working feedback exists for risky assumptions?
  • Prototype, generated, and tool-derived behavior deliberately accepted?
  • Contracts, failures, diagnostics, resources, and cleanup explicit?
  • State, concurrency, ordering, and coupling visible?
  • Repeatable work automated, versioned, and aligned with shared checks?
  • Tests automatic, relevant, and run before calling the change done?
  • Names, comments, docs, scripts, tests, and commits communicate intent?
  • Touched area better or explicitly contained?
<!-- END the-pragmatic-programmer.mini.md --><!-- END bundled-book-rules -->

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.