Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Written by Matt Pocock and published in mattpocock/skills under the MIT license. Treq shows it unchanged except for heading levels and links to files on GitHub.
A prototype is throwaway code that answers a question. The question decides the shape.
Identify which question is being answered, using the user's prompt, the surrounding code, or by asking if the user is around:
The two branches produce very different artifacts, so 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.
pnpm <name>, python <path>, bun <path>, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it.Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /prototype in Claude Code or $prototype in Codex.
The description says when to use it:
Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Copy the prototype folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/mattpocock-skills
mkdir -p .claude/skills
cp -r /tmp/mattpocock-skills/skills/engineering/prototype .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if prototype does not appear.
git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/mattpocock-skills
mkdir -p .agents/skills
cp -r /tmp/mattpocock-skills/skills/engineering/prototype .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for prototype and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
prototype ships 4 files, 15.6 KB in total. Select a file to load it from GitHub.