prototype

Solid

Build throwaway code to validate an uncertain approach before committing to a plan. Two branches — Logic (terminal state machine) or UI (multiple designs on one route with URL-param switcher). No persistence, no tests, single-command start. Use between analyze and plan when the approach itself is uncertain.

AI & Automation 22 stars 5 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /supergraph:prototype Throwaway code to validate approach. Explore fast, decide, then delete or integrate. Announce: "🧪 /supergraph:prototype — building throwaway prototype..." ## When to Use - Between `/supergraph:analyze` and `/supergraph:plan` when approach is uncertain - Multiple valid UI designs need visual comparison - Core logic (state machine, algorithm, data model) needs validation before full TDD - User says "I'm not sure which approach" or "can we try both?" ## Choose Branch Ask user (or infer from task): **Logic branch** — validate state, algorithm, or data model **UI branch** — validate layout, interaction, or multiple designs --- ## Logic Branch Goal: validate core logic in a minimal terminal program. Rules: - Single file (`prototype-<slug>.ts` / `.py` / etc.) - No database, no HTTP, no external services — in-memory only - No tests — feedback is the running output - Single command to run: `npx ts-node prototype-<slug>.ts` or equivalent - Hard-code sample data Structure (TypeScript example): ```typescript // prototype-<slug>.ts — THROWAWAY, do not review type State = "idle" | "processing" | "done" | "error" type Event = { type: "start" } | { type: "finish" } | { type: "fail" } function transition(state: State, event: Event): State { // ... } // Run through sample cases const cases = [ ... ] cases.forEach(({ from, event, expected }) => { const result = transition(from, event) console.log(result === expected ? "✅" : "❌", { from, event, resu...

Details

Author
datit309
Repository
datit309/supergraph
Created
4 months ago
Last Updated
6 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category