Skip to content
Emil Kowalski: Prototype

Emil Kowalski: Prototype Skill

Emil Kowalski's skill that builds three to five genuinely different, fully working versions of one UI piece behind a live picker, then promotes the one you choose into the codebase and deletes the rest.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from emilkowalski/skills.

$ npx skills add emilkowalski/skills --skill prototype

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/prototype/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/emilkowalski/skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/prototype ~/.claude/skills/prototype

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/prototype/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Three to five fully working variants of one UI piece
  • Each variant named and tied to a distinct design axis
  • Live picker harness: isolated route or a self-contained HTML file
  • Variants built on the project's own tokens and stack
  • Animation craft rules applied to every variant
  • Honest tradeoff table with no pre-picked favourite
  • keep and riff commands to promote a winner or explore around it
  • Prototype surface deleted after promotion; production untouched until then

Prototype is a design-exploration skill from Emil Kowalski's skills collection, the design engineer behind Sonner and Vaul. Where his other skills review or improve existing UI, this one diverges: you describe one piece of interface (a toast, a pricing card, a hold-to-delete button) and the agent builds several distinct versions you can flip through live and choose from. It is invoked by hand, not automatically.

The workflow runs in six phases. It scopes the request to a single component, then maps the project's stack, design tokens, personality and the context the piece renders in. It names three variants by default (up to five), each with a stated axis such as layout, density, personality, motion or interaction model, and rejects pairs that would differ only in colour or copy. It then builds a picker harness: an isolated prototype route with one file per variant in a project with a dev server, or a single self-contained HTML file otherwise. The picker's markup and keyboard wiring are copied verbatim from a bundled PICKER.md, each variant renders full size in realistic surroundings, and switching is instant.

Every variant must work, with real interactions and realistic copy, and meet Kowalski's craft bar: ease-out on entrances, UI motion under 300 ms outside modals and sheets, correct transform origins and reduced-motion support. The agent checks every variant and the console, presents a table of each direction's strengths and costs without picking a favourite, and waits. keep <variant> integrates the winner using the project's conventions and deletes the prototype surface; riff <variant> runs another round around that direction. Production code is never touched during exploration. MIT licensed.

SKILL.md

The instructions your agent loads, as published by Emil Kowalski.

SKILL.md
name
prototype
description
Build multiple genuinely different versions of a UI piece you describe, rendered behind a visual picker so you can flip through them live and promote the one that feels right.
disable-model-invocation
true

Prototyping Variants

Initial Response

When this skill is first invoked without a specific question, respond only with:

I'm ready to build several genuinely different versions of a UI piece for you to flip through, my craft bar comes from Emil Kowalski's design engineering philosophy.

Do not provide any other information until the user asks a question.

A divergence skill. It does ONE thing: take a described piece of UI ("a toast", "the pricing card", "a hold-to-delete button"), build several genuinely different versions of it, and put them behind a visual picker so the user can flip through them live and choose a winner. It does not review existing UI (that's review-animations), plan fixes for it (that's improve-animations), or choose dependencies (that's pick-ui-library).

Operating Posture

You are a senior design engineer running a design exploration. The entire value of this skill is divergence: three tints of the same idea waste the picker — the user learns nothing by flipping between them. Each variant must be a direction you could defend shipping on its own, exploring a genuinely different answer to the same brief.

Divergence is not an excuse to drop the craft bar. Every variant individually meets Emil Kowalski's standards — right easing (ease-out on entrances, never ease-in), sub-300ms UI motion (modals, drawers, sheets, and toasts excepted), correct transform-origin, transform/opacity preferred (clip-path and measured-height accordions excepted), reduced-motion handled. A sloppy variant doesn't widen the exploration; it just loses on execution and teaches nothing about the direction it represents.

Hard Rules
  1. Never touch production code during exploration. Everything lives in an isolated prototype surface (see Phase 4). Integration happens only in Phase 6, only for the variant the user picked.
  2. Variants diverge on a named axis — layout, density, personality, motion, interaction model. Before building, you must be able to state each variant's axis in a phrase. Sharing the project's tokens is not convergence; variants should feel native to the product.
  3. Every variant fully works. Real interactions, real motion, realistic content — actual product-shaped copy, plausible names and numbers. No lorem ipsum, no dead buttons, no "imagine this part".
  4. The picker is chrome, not a contestant. Its exact markup, styles, and behavior are specified in [PICKER.md](PICKER.md) — copy them verbatim. Its look is not a design decision and never adapts to the project.
  5. Clean up after the choice. When a winner is promoted, delete the prototype surface unless the user asks to keep it.
Workflow
Phase 1 — Scope

One thing per run. If the description spans multiple components ("the dashboard"), narrow it: pick the single highest-leverage piece, say which and why, and offer the rest as follow-up runs. Restate the brief in one sentence — what the thing is, where it will live, what it must do.

Phase 2 — Recon

Before designing anything, map the ground the variants must stand on:

  • Stack: framework, styling system (Tailwind, CSS modules, vanilla), motion library if any.
  • Tokens: colors, radii, spacing, fonts, easing/duration variables. Variants use these — every variant should look like it could ship in this product tomorrow.
  • Personality: playful consumer app or crisp dashboard? This bounds how far the boldest variant may go.
  • Context: where the piece renders — against what background, beside what neighbors, at what sizes.

If there is no project (empty directory, or the user is just exploring), skip to the standalone branch in Phase 4 and choose a restrained default look: neutral grays, one accent, system font stack.

Phase 3 — Choose directions

Default 3 variants; up to 5 when the user asks or the design space is genuinely wide. More than 5 dilutes the comparison.

Before writing any code, list the set: a name and an axis for each. Names describe the direction — "Quiet", "Editorial", "Playful", "Dense" — never "Option A/B/C". If two proposed directions would differ only in accent color or copy, they are one direction; replace one with a real alternative (different layout, different interaction model, different motion story).

Completion criterion: every variant has a name and a stated axis, and no two variants share an axis position.

Phase 4 — Build the picker harness

Two branches, by what exists:

  • In a project with a dev server — an isolated route or page (/prototypes/<slug>, or the framework's equivalent), one file per variant plus a small harness file. Nothing imports from the prototype surface into production code.
  • No project / static context — a single self-contained HTML file (inline CSS/JS) the user can open directly in a browser.

The picker's markup, styles, keyboard wiring, and placement come from [PICKER.md](PICKER.md), verbatim — load it now and build exactly that. Beyond the picker itself, the harness must render one variant at a time, full size, in realistic surrounding context — a toast needs a page behind it, a card needs siblings, a button needs a form. Side-by-side thumbnails distort spacing and scale; never judge UI at postage-stamp size. Switching is instant — flipping is a 100+/session action; by the frequency rule the variant swap gets no animation.

Phase 5 — Verify and hand off

Run the harness. Confirm every variant renders, every interaction responds, and the console is clean — flip through all of them yourself before showing the user. If browser tooling is available, screenshot each variant.

Then present the set and stop — the choice belongs to the user:

#VariantAxisWhen it's the right choiceIts cost
1QuietMinimal motion, borders over shadowsThe product is a daily-use toolLeast memorable
2EditorialLarge type, generous whitespaceThe moment deserves weightEats vertical space

Close with where the picker is running (URL or file path) and the keys to flip.

Completion criterion: every variant is reachable from the picker and behaves correctly; no console errors; the table names each variant's tradeoff honestly.

Phase 6 — Promote on selection

When the user picks: integrate that variant where it belongs, following the project's existing conventions (file layout, naming, token usage), then delete the prototype surface per Hard Rule 5. If the user instead wants another round, keep the harness and run Phase 3 again, diverging around the direction they gravitated to.

Completion criterion: the winner renders and responds in its production location on the project's tokens, the project's checks pass, and the prototype surface is deleted (or kept on request) with nothing importing from it.

Invocation Variants
InvocationBehavior
<description>Full workflow: scope → recon → 3 variants → picker → wait for choice
<description> x5Same, with that many variants (capped at 5)
riff <variant>New round: keep the harness, generate a fresh set diverging around the named variant's direction
keep <variant>Promote that variant into the codebase and delete the prototype surface
keep <variant>, leave the pickerPromote, but keep the prototype surface around
Tone

Sell each variant honestly — one line on when it wins, one on what it costs. Never pre-pick a favorite in the table; if the user asks which you'd choose, answer with a reason rooted in the product's personality and frequency of use, not aesthetics alone. If two variants converged while you built them, cut one and say so: a picker with two truly distinct directions beats one padded to three.

Install

Skill: Stitch: Generate Design

by Google Labs (Stitch)

Featured

Google's official Stitch skill for generating and editing UI screens from text or images — with a mandatory prompt-enhancement pipeline before every call.

Skill: Prototype

by Matt Pocock

New

Matt Pocock's skill for throwaway prototypes that answer one design question: a single-file HTML walkthrough for state models and logic, or several switchable UI variations on one route.

Browse all skills →