Claude Cursor Skill

build-throwaway-prototype

Use when asked to prototype, spike, try an idea out quickly, sanity-check a state model or logic, or mock up what a UI should look like. Builds a throwaway prototype that answers one named design question from one command or one HTML file while leaving production code untouched.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download heyvhuang-copybook-skills-plugins_skills_skills_build-throwaway-prototype-c2e4cc2.zip · 3 KB

Install

skills CLI npx skills add https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/build-throwaway-prototype
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install heyvhuang-copybook-skills@llmmart
Git git clone https://github.com/Heyvhuang/copybook-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole heyvhuang/copybook-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Answer one design question fast

A throwaway prototype exists to test an idea and get thrown away. Leave production code untouched until the question is settled.

1. Name the question and pick the shape

Write the single design question at the top of the prototype so anyone opening it sees what is being tested. Pick the shape that fits:

Question Shape How it runs
Does this logic or state model feel right? One standalone HTML file Open directly in a browser, no server
What should this UI look like? One route with multiple variants One project start command

If the prompt is ambiguous and nobody is around to ask, match the nearby code. Backend or domain modules point to logic, while pages or components point to UI. State the assumption at the top of the file.

Put the prototype next to the code it explores and include prototype in the filename or route name so anyone can tell it is throwaway. For UI routes, follow the project's existing routing layout.

2. Build a logic prototype as one HTML file

Put all HTML, CSS, and JavaScript in one standalone .html file that opens directly in a browser with no server, build step, or external files.

  • Add free-play buttons for every action or state transition so anyone can click through the model.
  • Add tabbed guided walkthroughs that push the model through tricky cases, loops, and edge paths.
  • Render the full current state and a running action log on screen after every button click so changes and broken paths are easy to spot.

3. Build a UI prototype as switchable variants

Put three or more genuinely different visual or layout variants on one throwaway route.

  • Switch variants with a URL query parameter (such as ?variant=1) and a floating bottom bar.
  • Start the prototype with a single command the project already uses, such as npm run dev or python app.py.
  • Display the active variant label and full relevant UI state on screen after every variant switch or interaction.

4. Keep state in memory and skip polish

Keep all state in memory with sample data. Skip databases, scratch DB files, migrations, automated tests, abstractions, and error handling beyond what keeps the prototype runnable.

Before finishing, verify the workspace stays clean outside your prototype:

git status --short
git diff --stat

Confirm that git diff outside the prototype file is empty and no database file or test suite was added.

5. Save to a branch and report the verdict

Save the prototype on a throwaway branch such as prototype/<topic> and keep it out of main.

End with a short report covering three things:

  • Where the prototype lives (branch name and file path or start command).
  • The plain answer to the question from step 1.
  • For logic prototypes, at least one transition that is unreachable or ambiguous. For UI prototypes, the main trade-off across variants.

Based on mattpocock/skills (MIT), rewritten by Copybook.

Files (copybook-skills)
  • CHANGES.md 346 B
    Loading…
  • example.md 1.1 KB
    Loading…
  • LICENSE 1 KB · in bundle
  • SKILL.md 3.3 KB
    ---
    name: build-throwaway-prototype
    description: "Use when asked to prototype, spike, try an idea out quickly, sanity-check a state model or logic, or mock up what a UI should look like. Builds a throwaway prototype that answers one named design question from one command or one HTML file while leaving production code untouched. Not for building a finished production page (design-web-page)."
    license: MIT (see LICENSE)
    ---
    
    # Answer one design question fast
    
    A throwaway prototype exists to test an idea and get thrown away. Leave production code untouched until the question is settled.
    
    ## 1. Name the question and pick the shape
    
    Write the single design question at the top of the prototype so anyone opening it sees what is being tested. Pick the shape that fits:
    
    | Question | Shape | How it runs |
    |---|---|---|
    | Does this logic or state model feel right? | One standalone HTML file | Open directly in a browser, no server |
    | What should this UI look like? | One route with multiple variants | One project start command |
    
    If the prompt is ambiguous and nobody is around to ask, match the nearby code. Backend or domain modules point to logic, while pages or components point to UI. State the assumption at the top of the file.
    
    Put the prototype next to the code it explores and include `prototype` in the filename or route name so anyone can tell it is throwaway. For UI routes, follow the project's existing routing layout.
    
    ## 2. Build a logic prototype as one HTML file
    
    Put all HTML, CSS, and JavaScript in one standalone `.html` file that opens directly in a browser with no server, build step, or external files.
    
    - Add free-play buttons for every action or state transition so anyone can click through the model.
    - Add tabbed guided walkthroughs that push the model through tricky cases, loops, and edge paths.
    - Render the full current state and a running action log on screen after every button click so changes and broken paths are easy to spot.
    
    ## 3. Build a UI prototype as switchable variants
    
    Put three or more genuinely different visual or layout variants on one throwaway route.
    
    - Switch variants with a URL query parameter (such as `?variant=1`) and a floating bottom bar.
    - Start the prototype with a single command the project already uses, such as `npm run dev` or `python app.py`.
    - Display the active variant label and full relevant UI state on screen after every variant switch or interaction.
    
    ## 4. Keep state in memory and skip polish
    
    Keep all state in memory with sample data. Skip databases, scratch DB files, migrations, automated tests, abstractions, and error handling beyond what keeps the prototype runnable.
    
    Before finishing, verify the workspace stays clean outside your prototype:
    
    ```bash
    git status --short
    git diff --stat
    ```
    
    Confirm that `git diff` outside the prototype file is empty and no database file or test suite was added.
    
    ## 5. Save to a branch and report the verdict
    
    Save the prototype on a throwaway branch such as `prototype/<topic>` and keep it out of `main`.
    
    End with a short report covering three things:
    
    - Where the prototype lives (branch name and file path or start command).
    - The plain answer to the question from step 1.
    - For logic prototypes, at least one transition that is unreachable or ambiguous. For UI prototypes, the main trade-off across variants.
    
    Based on mattpocock/skills (MIT), rewritten by Copybook.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.