# /prototype: Compare genuinely different UI variants in a live picker

Source: https://trendhub.net/skills/emilkowalski-skills/prototype
Skill folder: https://github.com/emilkowalski/skills/tree/main/skills/prototype
Pack: Emil Kowalski's Skills (https://trendhub.net/skills/emilkowalski-skills)
Works with: Claude Code, Codex, Cursor and other agents

The prototype skill has the agent design several distinct takes on one piece of UI, each built on your project's tokens and fully working, and show them one at a time behind a fixed picker. You flip between them, choose one, and the agent integrates that version and removes the prototype code.

## When to use it

- You cannot settle how a component should look or behave by describing it.
- You want to compare a quiet, dense and expressive version of the same card or toast.
- You are exploring an idea outside a project and want a single HTML file to open.

## How it works

1. **Scope one piece**: The agent narrows a broad request to the single most useful component and restates the brief in one sentence.
2. **Recon the project**: It records the stack, styling system, tokens, product personality and where the piece will render.
3. **Choose named directions**: It plans three variants by default, up to five, each with a descriptive name and a distinct axis such as layout, density or interaction model.
4. **Build the harness**: It renders each variant full size in realistic context on an isolated route or standalone file, with the picker copied from the skill's spec.
5. **Hand off and promote**: It checks every variant works, presents a tradeoff table, waits for your pick and then integrates the winner and deletes the harness.

## What it steers the agent away from

- Variants that differ only in colour or copy
- Touching production code before a winner is chosen
- Placeholder text and buttons that do nothing

## What it can touch

Creates an isolated prototype route or standalone HTML file, runs your dev server to check it, and edits production code only when you promote a variant.

## Pairs well with

- `/break-ui`
- `/learn-taste`
- `/pick-ui-library`

## Questions

### How many variants does it build?

Three by default and at most five. If two planned directions would differ only in colour or copy, it swaps one for a genuinely different alternative.

### Can I iterate on a variant I like?

Yes. The riff variant keeps the harness and generates a new set built around the direction you name.
