Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prototype

БесплатноЗапускает вложенные скриптыНе проверен

Builds several real, labelled variants of one idea on a single page so the user can pick, then deletes the rest.

raphaelsalajaот raphaelsalaja★ 74 звезды на GitHub

Об этом скилле

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. The one exception is the line that registers the route in an app with a central router. 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 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 route is development-only, gated the way the app gates its other dev pages or behind process.env.NODE_ENV === "development". A prototype a production build can reach is prototype-dev-only.

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. The theme follows defaults.

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.

The bar shows the current variant's name. Clicking it or pressing ⌘K opens a palette that searches labels and notes. A variant that needs ⌘K itself calls preventDefault on it and keeps it.

4. Open it

Open the page and look at every variant once, as verify asks. 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 Keep and Drop buttons mark variants, Note adds the user's own note to one and Copy Prompt copies a review to paste back. With no marks, the current variant counts as kept:

Prototype review: /prototypes/filters

Keep:
- Inline Filters
  Note: Make the counts bigger

Unmarked:
- Sidebar List
- Filter Sheet

Next: Move Inline Filters into the product, then delete the other variants. Follow each note.

A note is part of the pick, so the shipped or merged variant carries out what it asks.

When the user keeps one variant, move it 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.

Two or more kept variants make a merge, and so does a pick naming parts of two, 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.

A variant under Drop has its file and section deleted at once, and unmarked variants stay for another look. A merge borrows nothing from a dropped variant. Filter Sheet left on the page, or its sheet reused in the merge, is prototype-delete-dropped.

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

Полный SKILL.md на GitHub

Установить prototype в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlswitcher.js

FAQ

Что делает скилл prototype?

Builds several real, labelled variants of one idea on a single page so the user can pick, then deletes the rest.

Как установить скилл prototype?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prototype запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить prototype с