prototype
できること
このスキルは、いくつかの異なるデザインを作り、それらを切り替えられるようにすることで、UIのアイデアを探ります。方向性を決める前に比べたいデザイナーや開発者向けです。
使う場面
- ✓ボタン、カード、トーストなどのUI部品について、いくつかの方向性を試したいとき。
- ✓2つのデザインのアプローチで迷い、並べて見たいとき。
- ✓選んだバージョンを実際のコードベースに取り入れたいとき。
スキルのリンク
https://github.com/spree/spree/blob/main/.agents/skills/prototype/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“価格カードについて、3つの異なる方向性を試作してください。切り替えて、1つ選べるようにしてください。”
毎週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
よくある質問
探索中に本番のコードを変更しますか?
いいえ。あなたが1つ選ぶまで、バージョンは分離された試作の領域にあります。
なぜバージョンは本当に異なっている必要があるのですか?
わずかな違いのものを切り替えても、ほとんど何も分からないため、選択画面が役立たなくなるからです。
各バージョンは同じ品質基準を満たしますか?
はい。各バージョンは、reduced motionへの対応を含め、同じ動きの基準を満たします。
詳細
作者による元の説明
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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
animate
16kまずアニメーションすべきかを判断し、その目的、タイミング、カーブを決めてから、コードを書いてゼロからアニメーションを作ります。
animation-vocabulary
16kアニメーションや動きの効果についての曖昧な説明を、正確な専門用語に言い換え、何を頼めばよいかが分かるようにします。
apple-design
16kAppleの流動的なデザインの考え方をWebに持ち込みます。反応のよいジェスチャー、スプリング(バネ)の動き、中断可能なトランジション、reduced motion(動きを抑える設定)を扱います。
find-animation-opportunities
16kインターフェース内で、動きが役立つ箇所を探し、そうでない箇所は除外します。コードを変更せず、正確なアニメーションの提案を短いリストで示します。
似ているスキル
canvas
394k接続されたMacのパネルにホスト型のビジュアルウィジェットを表示し、そのパネルを隠したり別のページに移動したりするようエージェントを支援します。
control-ui
394kセッション、ダッシュボード、接続されたGatewayを含め、OpenClaw Control UIを整理し、問題を解決するようエージェントを支援します。
diagram-maker
394kプロセス、システムのアーキテクチャ、ホワイトボードのスケッチのために、SVG、HTML、または編集可能なExcalidrawとして、分かりやすい図を作るようエージェントを支援します。