Prototype

Build throwaway logic or UI prototypes to answer design questions fast.

redpanda-data 26abee6 3 files · 13.0 KB Updated 6 repo stars

File contents

Prototype

Prototype = throwaway code answering one question.

Pick branch

  • Logic/state question -> LOGIC.md: tiny terminal app, push state machine through hard cases.
  • UI question -> UI.md: several variants on one route, switchable by URL/search param + floating controls.

If ambiguous and user absent: infer from code. Backend/module -> logic. Page/component -> UI. State assumption.

Rules

  1. Mark throwaway clearly. Keep near target code.
  2. One command to run.
  3. No persistence unless question needs it. Scratch DB/file only, clearly wipeable.
  4. Skip polish: no tests, minimal errors, no abstractions.
  5. Surface full relevant state after each action/switch.
  6. When answered: delete or absorb into real code.

Done

Capture answer + original question in commit msg, ADR, issue, or local notes. Prototype itself should not rot.

redpanda-data/ui-harness/tree/main/prototype commit 26abee6ad9

Frequently asked questions

npx skillmds@latest add redpanda-data/prototype