Skip to main content
skill CX Codex

prototype · raphaelsalaja — Claude Code skill: variants and installation

prototype is a Claude Code skill that builds several working versions of one idea on a single page. The agent uses it on direct request, then moves the chosen version into the product and removes the rest.

MIT 168 installs ★ 69 updated 2026-11-14

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add raphaelsalaja/skills --skill prototype -a claude-code
Open on GitHub

What prototype does

prototype builds variants with the project’s components and real or realistic data. It puts them on one route and uses the included switcher.js. Each version gets a short label describing its difference; colour alone should not distinguish the variants.

The skill starts the development server and checks each version in the page. After a choice, it moves that version into the product and removes the others, along with the route, switcher.js, and its type declaration. The project’s dev server must be running to open and inspect the page.

What it helps with

  • compare several implementations of an idea on one page
  • check UI variants with project components and realistic data
  • move the selected version into the product and remove the others
  • find variants that were not opened or cleaned up after selection

Example prompts for the agent

  • Build several working versions of this idea on one page for me to compare.
  • Use the project data to make component variants, then open the page and inspect them.
  • I picked the filters variant. Move it into the product and remove the others.

How to install prototype

1Skills CLI (Vercel)

npx skills add raphaelsalaja/skills --skill prototype -a claude-code

2Manually: put the files in place

~/.claude/skills/prototype/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/prototype/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about prototype

How do I install prototype in Claude Code?

Run npx skills add raphaelsalaja/skills --skill prototype -a claude-code. The skill file is at ~/.claude/skills/prototype/SKILL.md.

What does prototype do?

It builds several working versions of one idea on a shared page. Once one is selected, it moves that version into the product and deletes the others.

What does prototype need to run?

The project’s development server must be running so the page can be opened and checked. The skill includes the switcher.js component.

Source text

SKILL.md · MIT
---
name: prototype
description: Builds several real, labelled variants of one idea on a single page so the user can pick, then deletes the rest.
disable-model-invocation: true
---

# Prototype

This skill explores one idea as several working variants. The user compares them in the running app, picks one and the others are deleted.

## Real code, then gone

Each variant is real code with real data in the real app, not a mockup. Build the number asked for. With no number, build five that differ in approach, not only in colour. The page is temporary and goes once a variant is picked.

Every state of an existing component on one page belongs to `lab`. Copying an outside reference belongs to `match`.

## 1. Restate the idea

Write the idea in one line and the axis the variants explore, such as layout, motion or density. Ask one question when the idea has two readings.

## 2. Build real variants

Use the project's components and real or realistic data. A static image or lorem ipsum is `prototype-real-code` or `prototype-real-data`.

## 3. Put them on one page

Show every variant on one route. Separate pages per variant is `prototype-one-page`. Copy [switcher.js](switcher.js) into the app beside that route and load it once, as its header comment shows. Wrap the variants in `<prototype-switcher>`, one child each with `data-variant` and an optional `data-note`.

The switcher ships with the skill, so write the variants only. A switcher, tab row or grid written from scratch is `prototype-shipped-switcher`.

Give each a short label that says how it differs. "Variant 3" is `prototype-label-variants`. Use the app's current theme unless the user asked for both. Light and dark side by side by default is `prototype-one-theme`.

## 4. Open it

Start the dev server, open the page and look at every variant once. A path in the reply with nothing opened is `prototype-open-it`.

## 5. Prune after the pick

The bar's Pick button copies a line such as "Pick Inline Filters from /prototypes/filters" for the user to paste back. When the user picks, move that variant into the product. Delete the losing variants with the route, `switcher.js` and its type declaration. Leftover variants after a pick is `prototype-prune-after-pick`.

## The pair

Every check is a pair. The broken line sits beside the line that replaces it.

| Rule | Broken | Replacement |
| --- | --- | --- |
| `prototype-real-code` | A static mockup image | The variant built from project components |
| `prototype-real-data` | Lorem ipsum rows | Real or realistic rows |
| `prototype-label-variants` | `Variant 3` | `Inline Filters` |
| `prototype-one-page` | Five routes, one per variant | One route with a switcher |
| `prototype-shipped-switcher` | A switcher written from scratch | `switcher.js` loaded, only the variants written |
| `prototype-one-theme` | Light and dark side by side, unasked | The app's current theme |
| `prototype-open-it` | "Built at `/prototypes/filters`" | The page opened, every variant checked |
| `prototype-prune-after-pick` | Four losing variants left in `src/` | The pick shipped, the rest deleted |

## Reporting

**Severity.** `HIGH` is a variant that does not run, or losing variants left after a pick. `MEDIUM` is placeholder data, unlabelled variants, variants that differ only in colour or a hand-built switcher. `LOW` is a page that was not opened for the user.

**Format.** One finding per root cause:

```
file:line - [rule-id] what is wrong
```

Then a `Rule | Count | Severity` summary. `Block` when any `HIGH` remains, `Approve` otherwise. Mark every variant you could not open as `Not verified`.

© raphaelsalaja · MIT · raphaelsalaja/skills

Similar skills

All skills for Frontend and UI →

prototype by other authors comes first.

prototype Matt Pocock Creates throwaway prototypes for checking state logic or exploring UI before committing the decision to the main codebase. CX Codex +1 986,201installs prototype emilkowalski The prototype Claude Code skill builds several distinct versions of a UI element and places them in a visual picker. It explores design directions before integrating the selected version into the project. CX Codex +1 227,700installs prototype Donchitos This skill turns one game mechanic into a throwaway prototype and returns a PROCEED, PIVOT, KILL, or NOT ASSESSED verdict. Use it before GDD work. CX Codex +1 693installs prototype plugin87 A skill for Claude Code guides an idea from content through wireframes and prototypes to code, with a validation plan at each stage. It activates for prototyping, user-flow mapping, or usability-test planning and execution. CX Codex +1 563installs prototype adobe prototype renders a proposed page redesign into one self-contained static HTML file you can open in a browser and iterate on from chat. CX Codex +1 578installs web-prototype-taste-editorial nexu-io web-prototype-taste-editorial — a skill for single-page prototypes styled like Notion, Linear or premium docs: warm monochrome, serif display and grotesque body, hairline borders, muted pastel chips, generous whitespace. CX Codex +1 172installs html-prototype plannotator html-prototype — a skill that builds one self-contained HTML file: a static mockup or a working prototype with states, keyboard support and responsive layout. It exists to test an interface decision before code. CX Codex +1 2,200installs ux-component Laith Aljunaidy ux-component — a slash command from the ux plugin that forwards the call to /ux-design --component to generate a single UI component. It is a temporary alias, removed in 4.1. CX Codex +1 ★ 110repo stars break-ui emilkowalski Claude Code skill break-ui stress-tests user interfaces with realistic worst-case data and reports layout breaks. CX Codex +1 121,000installs claude-design BadTechBandit claude-design — a skill for building HTML artifacts — landing pages, prototypes, decks — in Claude Code, Codex and Cursor. Reads project context and produces a self-contained file with markup and styles. CX Codex +1 698installs sketch Hermes Agent (adapted from gsd-build/get-shit-done) sketch generates 2-3 HTML mockup variants to compare design directions before you commit to production code. CX Codex +1 414installs

From the same set25

The whole set →
verify The verify Claude Code skill checks UI and behaviour changes in the running app. The agent opens the affected screen, tests new controls and reports where the result can be seen. CX Codex +1 171installs keyboard This Claude Code skill tests a running page using only the keyboard. It records focus stops and reports controls that users cannot reach, see, or operate. CX Codex +1 170installs rule This Claude Code skill turns repeated corrections into short project rules and fixes code that breaks them. After the same correction comes up twice, it proposes a rule. CX Codex +1 169installs scope The scope Claude Code skill keeps code edits within the user’s request and tracks each requested item. It applies to focused changes, refactors, and planning tasks. CX Codex +1 169installs ship A skill for Claude Code takes finished changes through commits, merges, releases and production checks. It runs when asked to push, merge or ship work. CX Codex +1 167installs avatar The avatar Claude Code skill turns an object into a flat character and animates its eyes and body. The character blinks, breathes, tracks the pointer, and falls asleep after inactivity. CX Codex +1 164installs prose prose — a skill for Claude Code that edits long-form articles, case studies and design notes. It runs when reviewing drafts to keep the author's voice and ground decisions in facts. CX Codex +1 140installs bots Imports selected Grok Bots onto your site. It creates a dynamic physics pile, portfolio cards, and an org chart page with private data stripped. CX Codex +1 133installs

Project sponsors

Companies that keep this analytics open