/skills:build-throwaway-prototypefrom skills
Builds a throwaway prototype to answer one design question via a standalone HTML file or a single route with UI variants. Keeps production code untouched and saves on a throwaway branch.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A throwaway prototype exists to test an idea and get thrown away. Leave production code untouched until the question is settled.
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.
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.
Put three or more genuinely different visual or layout variants on one throwaway route.
?variant=1) and a floating bottom bar.npm run dev or python app.py.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.
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:
Based on mattpocock/skills (MIT), rewritten by Copybook.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub heyvhuang/copybook-skills --plugin skills24 skills in this plugin
/add-pre-commit-checksUse when asked to add pre-commit hooks, set up Husky or lint-staged, stop bad commits, or run Prettier and type checks on commit. Sets up a pre-commit hook that formats staged files, type-checks with the project config, and runs related tests, proven by blocked and fast commits. Not for picking a test set for a change (run-affected-tests)./check-current-docsUse when asked to use the latest docs, check if an API is still current, check which version the project is on, follow modern HTML or CSS best practices, or avoid outdated patterns; also when adding or changing code that calls a library pinned in the project, such as validation with a schema library. Reads the project lockfile and manifest, checks the official docs or browser guidance for the exact pinned versions, implements the current pattern without deprecated calls, and cites each choice with its URL, version, and date read. Not for moving existing code off an old API (migrate-off-deprecated-api)./check-live-deployUse when asked if a merge is live, if the deploy worked, or to check production after shipping and merging. Verifies that the canonical public URL serves the merged commit past any cache and that the change itself works live, reporting live, not live or unknown with evidence. Not for checking code before a merge (verify-work-done).Other plugins' skills for the same job