Communitygithub.com

CharbelElBateh/personal-website

説明されたUI部品の、真に異なる複数のバージョンを構築し、ビジュアルピッカーでライブ比較できるようにします。明示的に呼び出された場合のみ動作し、自動的にはトリガーされません。

personal-website とは?

このスキルは、Emil Kowalskiのデザインエンジニアリング哲学に基づき、説明されたUI部品(トースト、価格カード、長押し削除ボタンなど)に対して、真に異なる複数のバリアントを生成するためのツールです。各バリアントは単なる色調の変更ではなく、レイアウト、密度、操作性、モーションなど、異なる設計軸に沿って独立した方向性を持ち、それぞれ単独で出荷可能な品質が求められます。生成されたバリアントは、専用のビジュアルピッカーを通じてライブで切り替えながら比較でき、ユーザーは最も適切なものを選択できます。選択後は、そのバリアントを実際のコードベースに統合し、プロトタイプ環境は自動的にクリーンアップされます。このスキルは、明示的に呼び出された場合のみ動作し、既存のUIのレビューや改善、ライブラリの選択などは行いません。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/CharbelElBateh/personal-website/tree/HEAD/.claude/skills/prototype

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

プロトタイピングバリアント

初期応答

このスキルが特定の質問なしで最初に呼び出された場合、次のようにのみ応答します。

複数の真に異なるバージョンのUI部品を、あなたがライブで切り替えられるように準備しました。私のクラフトバーはEmil Kowalskiのデザインエンジニアリング哲学に基づいています。

ユーザーが質問するまで、それ以上の情報は提供しないでください。

これは「発散(ダイバージェンス)」スキルです。1つのことだけを行います。説明されたUI部品(「トースト」「価格カード」「長押し削除ボタン」など)を受け取り、その真に異なる複数のバージョンを構築し、ユーザーがライブで切り替えて勝者を選べるビジュアルピッカーの背後に配置します。既存のUIのレビュー(review-animationsの役割)、修正計画(improve-animationsの役割)、依存関係の選択(pick-ui-libraryの役割)は行いません。

運用姿勢

あなたはデザイン探索を行うシニアデザインエンジニアです。このスキルの価値はすべて発散にあります。同じアイデアの3つの色調違いはピッカーを無駄にします。ユーザーはそれらを切り替えても何も学べません。各バリアントは、それ自体で出荷を主張できる方向性を持ち、同じブリーフに対する真に異なる答えを探求するものでなければなりません。

発散はクラフトバーを下げる言い訳にはなりません。すべてのバリアントは個別にEmil Kowalskiの基準を満たします。正しいイージング(エントランスはease-out、決してease-inではない)、300ms未満のUIモーション、正しいtransform-origin、transform/opacityのみ、動きの軽減への対応。ずさんなバリアントは探索を広げるのではなく、実行力で負け、その方向性が表すものについて何も教えてくれません。

厳格なルール

  1. 探索中にプロダクションコードに決して触れないでください。 すべては隔離されたプロトタイプサーフェス(フェーズ4参照)に存在します。統合は、ユーザーが選択したバリアントに対してのみ、フェーズ6で行われます。
  2. バリアントは名前付きの軸で発散します。 レイアウト、密度、個性、モーション、インタラクションモデル。構築する前に、各バリアントの軸を一言で述べられなければなりません。プロジェクトのトークンを共有することは収束ではありません。バリアントはプロダクトにネイティブに感じられるべきです。
  3. すべてのバリアントは完全に動作します。 実際のインタラクション、実際のモーション、現実的なコンテンツ。実際のプロダクトらしいコピー、もっともらしい名前と数字。Lorem ipsum、機能しないボタン、「この部分を想像してください」は禁止です。
  4. ピッカーは「枠」であり、「競技者」ではありません。 その正確なマークアップ、スタイル、および動作はPICKER.mdで指定されています。そのままコピーしてください。その見た目はデザイン上の決定事項ではなく、プロジェクトに適応することはありません。
  5. 選択後はクリーンアップします。 勝者が昇格したら、ユーザーが保持を依頼しない限り、プロトタイプサーフェスを削除してください。

ワークフロー

フェーズ1 — スコープ

1回の実行につき1つのコンポーネント。説明が複数のコンポーネントにわたる場合(「ダッシュボード」など)、範囲を絞ります。最も影響度の高い1つの部品を選び、その理由を説明し、残りは後続の実行として提供します。ブリーフを1文で言い直します。それが何か、どこに配置されるか、何をしなければならないか。

フェーズ2 — 調査

デザインを始める前に、バリアントが立脚する基盤をマッピングします。

  • スタック: フレームワーク、スタイリングシステム(Tailwind、CSS Modules、バニラ)、使用するモーションライブラリ。
  • トークン: 色、角丸、スペーシング、フォント、イージング/デュレーション変数。バリアントはこれらを使用します。すべてのバリアントが明日このプロダクトに出荷できるように見えるべきです。
  • 個性: 遊び心のあるコンシューマーアプリか、それとも crisp なダッシュボードか?これは、最も大胆なバリアントがどこまで行けるかを制限します。
  • コンテキスト: 部品がレンダリングされる場所。どのような背景に対して、どのような隣接要素とともに、どのようなサイズで。

プロジェクトがない場合(空のディレクトリ、またはユーザーが単に探索している場合)、フェーズ4のスタンドアロンブランチにスキップし、控えめなデフォルトレイアウトを選択します。ニュートラルなグレー、1つのアクセントカラー、システムフォントスタック。

フェーズ3 — 方向性の選択

デフォルトは3つのバリアント。ユーザーが要求した場合、またはデザインスペースが本当に広い場合は最大5つ。5つを超えると比較が薄まります。

コードを書く前に、セットをリストアップします。各バリアントの名前と軸。名前は方向性を説明します。「静的」「エディトリアル」「遊び心」「高密度」など。決して「オプションA/B/C」ではありません。提案された2つの方向性がアクセントカラーやコピーだけで異なる場合、それらは1つの方向性です。一方を実際の代替案(異なるレイアウト、異なるインタラクションモデル、異なるモーションストーリー)に置き換えてください。

完了基準: すべてのバリアントに名前と明示された軸があり、2つのバリアントが同じ軸の位置を共有していないこと。

フェーズ4 — ピッカーハーネスの構築

存在するものに応じて、2つのブランチがあります。

  • 開発サーバーがあるプロジェクト内 — 隔離されたルートまたはページ(/prototypes/<slug>、またはフレームワークの同等のもの)、バリアントごとに1ファイル+小さなハーネスファイル。プロトタイプサーフェスからプロダクションコードへのインポートは行いません。
  • プロジェクトがない / 静的コンテキスト — ユーザーがブラウザで直接開ける単一の自己完結型HTMLファイル(インラインCSS/JS)。

ピッカーのマークアップ、スタイル、キーボード配線、および配置はPICKER.mdからそのまま取得します。今すぐロードして、そのまま構築してください。ピッカー自体に加えて、ハーネスは各バリアントを一度に1つずつ、フルサイズで、現実的な周囲コンテキストの中でレンダリングする必要があります。トーストには背後にページ、カードには兄弟要素、ボタンにはフォームが必要です。並んだサムネイルは間隔とスケールを歪めます。切手サイズでUIを判断しないでください。切り替えは即時です。切り替えは100回以上/セッションのアクションです。頻度ルールにより、バリアントの交換にアニメーションは付けません。

フェーズ5 — 検証と引き渡し

ハーネスを実行します。すべてのバリアントがレンダリングされ、すべてのインタラクションが応答し、コンソールがクリーンであることを確認します。自分ですべてのバリアントを切り替えてから、ユーザーに表示します。ブラウザツールが利用可能な場合は、各バリアントのスクリーンショットを撮影します。

次に、セットを提示し、そこで停止します。選択はユーザーに委ねられます。

#バリアント軸適しているケース代償
1静的最小限のモーション、シャドウより境界線プロダクトが日常的に使うツール最も印象に残りにくい
2エディトリアル大きなタイポグラフィ、広いホワイトスペースその瞬間に重みが必要縦方向のスペースを消費

最後に、ピッカーが動作している場所(URLまたはファイルパス)と、切り替え用のキーを伝えます。

完了基準: すべてのバリアントがピッカーから到達可能で正しく動作すること。コンソールエラーがないこと。テーブルが各バリアントのトレードオフを正直に示していること。

フェーズ6 — 選択に基づく昇格

ユーザーが選択した場合。そのバリアントを、プロジェクトの既存の規約(ファイルレイアウト、命名、トークンの使用法)に従って適切な場所に統合し、その後、厳格なルール5に従ってプロトタイプサーフェスを削除します。ユーザーが代わりにもう1ラウンドを希望する場合は、ハーネスを維持し、フェーズ3を再度実行します。今回は、ユーザーが注目した方向性の周辺で発散します。

呼び出しバリアント

呼び出し動作
<説明>完全なワークフロー: スコープ → 調査 → 3バリアント → ピッカー → 選択待ち
<説明> x5同様だが、その数のバリアント(最大5つ)
riff <バリアント名>新しいラウンド: ハーネスを維持し、指定されたバリアントの方向性の周辺で発散する新しいセットを生成
keep <バリアント名>そのバリアントをコードベースに昇格させ、プロトタイプサーフェスを削除
keep <バリアント名>, leave the picker昇格するが、プロトタイプサーフェスは維持

トーン

各バリアントを正直に売り込んでください。いつ勝つかについて1行、その代償について1行。テーブル内でお気に入りを事前に選ばないでください。ユーザーがどれを選ぶか尋ねてきた場合は、プロダクトの個性と使用頻度に根ざした理由で答え、美観だけで答えてはいけません。構築中に2つのバリアントが収束してしまった場合は、1つを削除してその旨を伝えてください。真に明確な2つの方向性を持つピッカーは、3つに水増しされたものより優れています。

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

CharbelElBateh/personal-website

Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use `animate`.

CharbelElBateh/personal-website

Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.

CharbelElBateh/personal-website

Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.

CharbelElBateh/personal-website

Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.

CharbelElBateh/personal-website

Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and icons, positioning and multiple toasters. Use when working with Sonner or troubleshooting it — toasts that don't appear, appear twice, lose their styles, ignore Tailwind classes, sit behind a modal, or don't follow dark mode.

CharbelElBateh/personal-website

Try to break a piece of UI by feeding it worst-case data — long names, unbreakable emails, one-letter names, missing fields, huge counts, zero items, long labels, non-Latin text, emoji, extreme numbers — then render it behind a "Demo data / Worst case" toggle and report everything that broke, with the fix for each. Use when the user asks to stress-test, break, or find edge cases in a component or screen, or to "try the worst case". For visual design critique use emil-design-eng; for motion use review-animations.

CharbelElBateh/personal-website

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

CharbelElBateh/personal-website

Search a codebase or UI for places that don't animate but should, and reject everything that shouldn't. Read-only; it proposes motion with exact values, it does not implement it. Use when the user asks "what could be animated here?" or wants to "make this feel more alive". For fixing existing animations, use improve-animations or review-animations instead.

CharbelElBateh/personal-website

Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to "improve the animations", "audit the motion", "make this app feel better", or wants a roadmap of animation fixes rather than a review of a single diff.

CharbelElBateh/personal-website

Make a web app feel native on a phone — the small CSS and meta-tag fixes that separate "a website in a browser" from something that feels installed. Covers sticky hover states, tap highlight flashes, the 100vh bug, inputs that zoom the page, laggy taps, pull-to-refresh hijacking scroll, content under the notch, long-press selecting button text, carousels that scroll the wrong way, mismatched status bars, and the rule that you test on real hardware. Use when a web app is being built for or reviewed on mobile, when something "works in Chrome but feels wrong on my phone", when building a PWA, a bottom sheet, a carousel, a full-screen layout, or any touch interaction. For motion itself use animate; for React Native use animate-expo.

CharbelElBateh/personal-website

Pick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.

CharbelElBateh/personal-website

Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.

CharbelElBateh/personal-website

How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.

関連スキル