prototype

作成者: emilkowalski

あなたが説明するUIパーツの、本質的に異なる複数のバージョンを構築し、視覚的なピッカーの背後にレンダリングして、ライブで切り替えながら確認し、しっくりくるものを昇格させることができます。明示的に呼び出された場合のみ実行され、単独でトリガーされることはありません。

npx skills add https://github.com/emilkowalski/skills --skill prototype

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

  1. 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.
  2. 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.
  3. 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".
  4. 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.
  5. 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, verbatim — load it now and build exactly that. Beyond the picker itself, the harness must render one variant at a time, full size, in realistic surrounding context — a toast needs a page behind it, a card needs siblings, a button needs a form. Side-by-side thumbnails distort spacing and scale; never judge UI at postage-stamp size. Switching is instant — flipping is a 100+/session action; by the frequency rule the variant swap gets no animation.

Phase 5 — Verify and hand off

Run the harness. Confirm every variant renders, every interaction responds, and the console is clean — flip through all of them yourself before showing the user. If browser tooling is available, screenshot each variant.

Then present the set and stop — the choice belongs to the user:

#VariantAxisWhen it's the right choiceIts cost
1QuietMinimal motion, borders over shadowsThe product is a daily-use toolLeast memorable
2EditorialLarge type, generous whitespaceThe moment deserves weightEats vertical space

Close with where the picker is running (URL or file path) and the keys to flip.

Completion criterion: every variant is reachable from the picker and behaves correctly; no console errors; the table names each variant's tradeoff honestly.

Phase 6 — Promote on selection

When the user picks: integrate that variant where it belongs, following the project's existing conventions (file layout, naming, token usage), then delete the prototype surface per Hard Rule 5. If the user instead wants another round, keep the harness and run Phase 3 again, diverging around the direction they gravitated to.

Invocation Variants

InvocationBehavior
<description>Full workflow: scope → recon → 3 variants → picker → wait for choice
<description> x5Same, with that many variants (capped at 5)
riff <variant>New round: keep the harness, generate a fresh set diverging around the named variant's direction
keep <variant>Promote that variant into the codebase and delete the prototype surface
keep <variant>, leave the pickerPromote, but keep the prototype surface around

Tone

Sell each variant honestly — one line on when it wins, one on what it costs. Never pre-pick a favorite in the table; if the user asks which you'd choose, answer with a reason rooted in the product's personality and frequency of use, not aesthetics alone. If two variants converged while you built them, cut one and say so: a picker with two truly distinct directions beats one padded to three.

emilkowalskiのその他のスキル

find-animation-opportunities
emilkowalski
コードベースまたはUIを検索して、アニメーション化すべきだがされていない場所を見つけ、すべきでないものはすべて拒否します。読み取り専用です。正確な値でモーションを提案しますが、実装はしません。ユーザーが「ここで何をアニメーション化できるか?」と尋ねたり、「これをより生き生きと感じさせる」ことを望む場合に使用します。既存のアニメーションを修正するには、代わりにimprove-animationsまたはreview-animationsを使用してください。
developmentdesigncreative
animate
emilkowalski
アニメーションをゼロから構築し、適切かどうかを判断する順序で決定を下します——そもそもアニメーションさせるべきか、目的、使用ツール、プロパティ、カーブと持続時間、割り込み方法、終了方法。実装を記述します。アニメーションの作成、動きの追加、コンポーネントに動きを持たせる、トランジションの構築を依頼された場合に使用してください。既存のモーションを批評する場合はreview-animationsを、コードベース全体を監査する場合はimprove-animationsを使用してください。
pick-ui-library
emilkowalski
与えられたフロントエンドタスクに適したライブラリを、厳選された意見ベースのリストから選び出します — 数値入力、OTP入力、チャート、コマンドメニュー、仮想化、ドラッグ&ドロップ、トースト、状態管理、スタイリングなど。明示的に呼び出された場合のみ実行され、自動的には起動しません。
ask-sonner
emilkowalski
Sonner(Reactトーストライブラリ)のガイド — Toasterのインストールとセットアップ、適切なtoast()呼び出しの選択、プロミスとローディングトースト、トーストの更新・破棄・永続化、スタイリング、テーマ設定とアイコン、配置と複数のトースター。Sonnerを使用する際やトラブルシューティングに使用します — トーストが表示されない、二重に表示される、スタイルが失われる、Tailwindクラスが無視される、モーダルの背後に配置される、ダークモードに従わない場合など。
emil-design-eng
emilkowalski
このスキルは、Emil KowalskiのUIポリッシュ、コンポーネントデザイン、アニメーションの決定、そしてソフトウェアを素晴らしいものにする目に見えない細部に関する哲学をエンコードしています。
designdevelopmentcreative
review-animations
emilkowalski
アニメーションとモーションコードを、Emil Kowalskiのデザインエンジニアリング哲学に基づく高い品質基準でレビューします。デフォルトでフラグを立て、承認は実績によって得られます。
animation-vocabulary
emilkowalski
逆引き用語集で、Webアニメーションやモーションエフェクトの曖昧な説明から正確な用語を導き出します(「ポップオーバーが開くときの
creativedesignresearch
improve-animations
emilkowalski
コードベースのアニメーションとモーションコードをシニアモーションアドバイザーとして調査し、優先順位付けされた監査結果と、他のエージェント(または低コストモデル)が実行可能な自己完結型の実装計画を作成します。ソースコードは読み取り専用で、改善計画を立案するのみで、適用は行いません。ユーザーが「アニメーションを改善して」「モーションを監査して」「このアプリの感触を良くして」と依頼した場合や、単一の差分レビューではなくアニメーション修正のロードマップを求めている場合に使用します。