prototype
Что он делает
Этот скилл исследует идею интерфейса, создавая несколько разных дизайнов и позволяя переключаться между ними. Он нужен дизайнерам и разработчикам, которые хотят сравнить направления, прежде чем выбрать одно.
Когда использовать
- ✓Когда хотите исследовать несколько направлений для кнопки, карточки, тоста или другого элемента интерфейса.
- ✓Когда не можете выбрать между подходами к дизайну и хотите увидеть их рядом.
- ✓Когда хотите перенести выбранный вариант в настоящую кодовую базу.
Ссылка на скилл
https://github.com/spree/spree/blob/main/.agents/skills/prototype/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Сделай три разных направления для нашей карточки цен и дай мне переключаться между ними, чтобы выбрать один.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент создаёт каждый вариант как настоящий, отличающийся ответ на одно и то же задание, и не трогает продакшен-код во время исследования. Он показывает варианты за переключателем и переносит выбранный в кодовую базу только после вашего одобрения.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Prototyping Variants
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, correct transform-origin, transform/opacity only, 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
- 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.
- 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.
- 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".
- The picker is chrome, not a contestant. Its exact markup, styles, and behavior are specified in PICKER.md — copy them verbatim. Its look is not a design decision and never adapts to the project.
- 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, verbat
Частые вопросы
Изменит ли он мой продакшен-код во время исследования?
Нет. Варианты живут в изолированной области прототипа, пока вы не выберете один.
Почему варианты должны быть по-настоящему разными?
Мелкие правки бесполезны для переключателя: переключаясь между почти одинаковыми версиями, вы ничего не узнаете.
Соответствует ли каждый вариант одинаковому уровню качества?
Да. Каждый вариант проверяется по тем же стандартам движения, включая поддержку уменьшенного движения.
Подробности
Оригинальное описание автора
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. Only runs when explicitly invoked; it does not trigger on its own.
repo: spree/spree
Популярность
- Звёзды на GitHub
- 16k
- Место в рейтинге
- #10878
- Лицензия
- BSD-3-Clause
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
animate
16kСоздаёт анимацию с нуля: сначала решает, нужна ли вообще анимация, затем выбирает её цель, тайминг и кривую, и только потом пишет код.
animation-vocabulary
16kПревращает неточное описание анимации или эффекта движения в его точное техническое название, чтобы вы знали, что просить.
apple-design
16kПереносит на веб плавный подход Apple к дизайну: отзывчивые жесты, пружинную анимацию, прерываемые переходы и режим уменьшенного движения.
find-animation-opportunities
16kИщет в интерфейсе места, которым пошло бы на пользу движение, и отбрасывает остальные. Даёт короткий список точных предложений по анимации без изменения кода.
Похожие скиллы
canvas
394kПозволяет агенту показать размещенный визуальный виджет на подключенной панели Mac, а затем скрыть панель или перенести ее на другую страницу.
control-ui
394kПомогает агенту упорядочивать интерфейс управления OpenClaw и устранять неполадки в нем, включая сессии, панели и подключенные Gateway.
diagram-maker
394kПомогает агенту создавать понятные диаграммы в форматах SVG, HTML или редактируемом Excalidraw для процессов, архитектуры систем и эскизов на доске.