---
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
title: prototype
canonical_url: https://skilld.dev/gh/raphaelsalaja/skills/prototype
last_updated: 2026-11-22T01:08:19.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [agents/openai.yaml](https://skilld.dev/api/skills-raw/raphaelsalaja/skills/prototype/agents/openai.yaml), [switcher.js](https://skilld.dev/api/skills-raw/raphaelsalaja/skills/prototype/switcher.js).
>
> If the user asked to install this Skill, run `npx skilld install raphaelsalaja/skills/prototype`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/prototype`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/raphaelsalaja/skills/prototype) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/prototype`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/prototype --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/prototype --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# 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. The page is temporary and goes once a variant is picked.

Variants differ in approach along the axis from step 1, not in styling. Five filter bars that differ only in accent colour or radius are `prototype-differ-in-approach`. Inline pills, a sidebar, a command menu, a sheet and saved views are five approaches.

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`.

Every variant renders the same data, copy and container width, so the axis is the only difference. Load the rows from one shared fixture. Three rows in one variant beside forty in another is `prototype-hold-the-rest`.

Keep each variant in its own file beside the route, such as `prototypes/filters/inline-filters.tsx`. A variant that needs a shared component changed edits a copy in that folder, never the original. Until the pick, `git diff --stat` shows nothing outside the folder. `components/button.tsx` edited for one variant, changing every page, is `prototype-isolate-variants`.

## 3. Put them on one page

Show every variant on one route. Separate pages per variant is `prototype-one-page`. Copy [switcher.js](https://skilld.dev/api/skills-raw/raphaelsalaja/skills/prototype/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 `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`.

Each `data-note` holds one line on when the variant wins and one on what it costs. A note that only describes the layout is `prototype-name-the-cost`.

The bar sits at the bottom centre. When a variant uses that spot, such as a toast stack, set `data-position="top"` on `<prototype-switcher>`. A bar covering the variant's own toasts is `prototype-bar-clears-the-work`.

## 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`.

Click the current variant and press R to replay it, so its entrance runs again without a reload. The switcher's header comment shows how a framework component remounts on replay. Judging an entrance from the first load alone is `prototype-replay-motion`.

## 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`.

A pick can name parts of two variants, such as "Inline Filters with the sidebar's counts". Build that merge as one more variant, open it and prune once the user confirms it. Shipping Inline Filters and dropping the counts is `prototype-merge-named-parts`.

## 6. Riff on the pick

When the user asks for another round, build it around the chosen variant. Each new variant keeps what won and pushes one part of it a different way. A second round that starts from scratch is `prototype-riff-the-pick`.

## The pair

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

| Rule | Broken | Replacement |
| --- | --- | --- |
| `prototype-differ-in-approach` | Five filter bars in five accent colours | Inline pills, a sidebar, a command menu, a sheet and saved views |
| `prototype-real-code` | A static mockup image | The variant built from project components |
| `prototype-real-data` | Lorem ipsum rows | Real or realistic rows |
| `prototype-hold-the-rest` | 3 rows in Inline Filters, 40 in Sidebar List | Both reading `fixtures/projects.ts` at the same width |
| `prototype-isolate-variants` | `components/button.tsx` edited for the Sheet variant | `prototypes/filters/sheet/button.tsx` copied and edited |
| `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-label-variants` | `Variant 3` | `Inline Filters` |
| `prototype-one-theme` | Light and dark side by side, unasked | The app's current theme |
| `prototype-name-the-cost` | `data-note="Pills above the grid"` | `data-note="Wins with under 6 filters. Costs a row above the grid."` |
| `prototype-bar-clears-the-work` | The bar over a bottom-centre toast stack | `<prototype-switcher data-position="top">` |
| `prototype-open-it` | "Built at `/prototypes/filters`" | The page opened, every variant checked |
| `prototype-replay-motion` | An entrance judged once, then reloaded to see it again | R pressed to replay the variant in place |
| `prototype-prune-after-pick` | Four losing variants left in `src/` | The pick shipped, the rest deleted |
| `prototype-merge-named-parts` | "Inline Filters with the sidebar's counts" shipped as Inline Filters alone | A merged variant with both, confirmed, then the rest deleted |
| `prototype-riff-the-pick` | Five fresh ideas after the user picked one | Five turns on the pick, each changing one part |

## Reporting

**Severity.** `HIGH` is a variant that does not run, or losing variants left after a pick. It is also a shared component edited for one variant, or a merged pick shipped with a named part missing. `MEDIUM` is a mockup or placeholder data, unlabelled variants, variants that differ only in styling or a hand-built switcher. It is also variants split across routes, a bar covering the variant's own work, an entrance judged from one load or variants fed different data. `LOW` is a page that was not opened for the user, a variant with no cost named or a second round that ignores the pick. It is also both themes shown unasked.

**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`.
