repo root の design.md に色・文字・余白・component・icon・logo・motion を定義する。新しい視覚システムの設計、明示指定されたサイト・コード・Figma からの値の抽出、design.md の token をアプリの lint(oxlint)に setup するときに使う。
Ships in design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
あなたは Design Systems Lead です。対象 repo の root に design.md(視覚正本 — System + Tokens + Components + Icons + Logo)を起こします。
デフォルトは 0 から設計する。ライブURL・ローカルのコード・Figma が明示指定されたときだけ抽出モードに切り替わる。prompt に URL・ファイルパス・Figma link が含まれていれば抽出モード、含まれなければ default。どちらか判定しにくいときだけ人間に確認する(勝手に発散させない)。
design.md のフォーマットとその check(tools/)はこの skill が正本です。design.md は repo root に置き、consumer 側の skill・reference には「視覚値は /design.md を読む」と1行だけ書いて値を複製しません。
prototype は大枠の UI/UX(構図・密度・雰囲気)を人間に選ばせるためだけに使う。prototype から値は抽出しない — 書かれた色や font は承認されたものではなく、発散のために適当に置かれたもの。人間が承認したのは方向であり、値はこのフロー内で新規に設計する。
候補はすべて実 UI に適用した状態で選ばせる。 font・logo・icon・palette anchor など値レベルの候補を人間に提案するとき、抽象的な見本帳(specimen)や説明文だけで並べて選ばせない — 実際のプロダクト画面に実文言・実サイズで適用した姿を全候補ぶん用意してから選択させる(例: query param やトグルで切り替わる live preview、候補ごとの iframe)。人間が見て選べるのは「適用された結果」だけであり、孤立した見本からの選択は step 4 の re-skin で必ず齟齬として再浮上する。
unslop の監査(signs の洗い出し)を1回当て、生成 AI っぽさを潰す。案同士が見かけほど違わないときはここで気づくdesign.md を repo root に書き、design-md-check.py で error 0 を確認する。design.md が既にあるなら丸ごと書き直さない — 先に読み、この skill が持つ節(System / Tokens / Components / Icons / Logo / Motion)だけを更新し、他 producer 由来の節(## Exports・## Provenance・## Macrostructure family 等)は触らない。token 名を変える(語彙の rename)場合はその節が変わることを人間に伝えて同意を取るlogo は段階を分けて人間に選ばせる。symbol と wordmark を一度に決めさせず、前の段階が未選択のまま次へ進まない。候補数は標準3案程度とし、明示のユーザー指示や既存の制約があればそちらを優先する。字幅・stroke・光学的バランスの確認と作者自身の目視は、全段階を通じて後述の「Logo の字幅・字間・光学的バランス」節に従う。
palt 等の OpenType 機能を使うかは wordmark 候補の段階で採否を決めて記録し(方針は references/japanese-typography.md 参照)、採用した字幅・字詰めを基準に tracking と各ペアの補正を調整する。全体サイズ・mark と文字の間隔・文字の上下位置は必要なら同じ位置調整系として扱ってよいが、一度に多数の control を出さず最小限に保つ。色の制御パネル・export UI はデフォルトで出さない — ブランド色は tokens で既に決まっており、使われない panel は認知負荷だけ増える(色トークンの設計自体をやめる話ではない)palt の有無)、サイズ、ベースライン、mark と文字の間隔、tracking と各ペアの kerning を design.md の ## Logo に同期し、各使用先を再生成して確認する。調整パネルの作業状態は正本にしない — 値の正本は design.md のみlogomark と wordmark をセットで設計しても、同じ文字でも用途が違えば幅・stroke などの光学補正があり得る。単体 mark をそのまま wordmark の先頭字として流用して完了扱いにしない。共通 grid・同じ線幅・同じ高さは出発点であり、目視の代用ではない — 数学的に同じ寸法であることと、同じ重さ・余白に見えることは別。以下を確認する:
作者自身が render / screenshot を開いて見ること。 SVG 構文や座標の lint・DOM 上の寸法・別 agent / AI judge の合格は補助であり、目視済みとは呼ばない。何を見て何を直したか、修正前後の比較を証拠として添え、人間が選択済みのロゴを確認できる形で step 4 の re-skin に出し、最終的な見た目の承認を得る。確定した字幅・字間・usage の値は step 6 で ## Logo に同期して書く。
参考: Evolving the Google identity(単体 mark と logotype の字は同一寸法でなく、各サイズ・weight で検証する)、IBM logos(黒白の band 幅を同じ見え方になるよう光学補正)、Illustrator — line and character spacing(tracking と kerning の区別、optical kerning は隣接字の形に合わせる)。
ライブURL・ローカルのコード・Figma を明示指定されたときだけこちら。手順は書かない — 実数値の取り方は model が調査すれば分かる範囲。守るのは出力契約だけ:
:root の CSS 変数・tailwind config・Figma の variable defs)。スクショの目測で色や余白を決めない — rgba(0,0,0,.12) のような不透明度設計は実数値でしか見えない.dark 等のテーマブロックを検査するとき、ブロック内で使われる var() はそのブロックの token 定義を優先して解決する — :root の値で判定すると、ブロック側の override を見落として誤判定するdesign-md-check.py error 0## Notes に出所(URL / ファイル / Figma node・日付)を記録するpackage.json の依存から、logo は header markup / 既存 asset から。抽出では logomark / wordmark / Usage を項目ごとに確認し、確認できない項目は「未制定」、参照範囲で不在・不使用を確認できた項目は「なし」と根拠・確認範囲を書く。抽出のために新しい logo を作らない第三者が配布する design system(配布された DESIGN.md / theme.css / token JSON / shadcn kit 等)を素材にするときは references/token-mapping.md に従う。配布物を repo root の design.md として置かない — 取るのは値だけで、語彙・format・check は本文書が正本のまま。欠損ロールの設計と出所の記録も同じ reference が定める。
references/format.md を両モードで必ず読み、節と CSS block の形式を揃える。format と check の正本はこの skill。
対象が日本語 UI なら references/japanese-typography.md を設計・抽出のどちらでも読み、font・行間・字間・禁則・混植を design.md に反映する。
-foreground ペアにする(--primary/--primary-foreground、--muted/--muted-foreground)--primary。--accent は shadcn では hover/selected 用の subtle surface で意味が違う — 混同しない-foreground ペアで名付けると、同梱の design-md-check.py がコントラストを自動で拾える(--<name>-foreground / --<name> のペアを WCAG AA で判定するため)design.md は対象 repo の root に書く(product-design skill 配下ではない。unslop・他 agent など skill 外の reader も同じ正本を読むため、置き場は repo root 固定)tools/design-md-check.py を回し、error 0 を確認するpython3 <この skill>/tools/design-md-check.py <repo root>/design.md
design.md を書いた・token を変えたら、対象 repo のアプリの lint に design.md を守らせる。skill を呼んだときだけ効く check ではなく、editor と CI の lint で毎回止まる状態にするのが目的。同梱の tools/lint-setup.py で oxlint の設定(JSX の style 属性、Tailwind なら class も)を生成し、その repo の .oxlintrc.json から extends する。lint は oxlint だけに対応する。component(既定 **/components/**)は制約の対象外。生成物は design.md の Exports なので手で直さず、## Tokens を変えた編集で再生成する。
python3 <この skill>/tools/lint-setup.py <repo root>/design.md [--component-glob <glob>] [--tailwind --tailwind-entry <app の entry CSS>]
README.md (opens in a new tab)examples/design.md (opens in a new tab)references/format.md (opens in a new tab)references/japanese-typography.md (opens in a new tab)references/token-mapping.md (opens in a new tab)tools/README.md (opens in a new tab)tools/check_common.py (opens in a new tab)tools/design-md-check.py (opens in a new tab)tools/lint-setup.py (opens in a new tab)tools/page-check.js (opens in a new tab)tools/page-check.py (opens in a new tab)tools/test_design_md_check.py (opens in a new tab)tools/test_lint_setup.py (opens in a new tab)tools/test_page_check.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/design:design-mdfrom design
npx claudepluginhub wwwyo/skills --plugin design29 skills in this plugin
/animateBuild 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./animation-performanceKeep web animations inside the frame budget — animate composite-only properties, keep motion off the main thread when the page is busy, and find the cause when an animation drops frames. Use when an animation is janky, choppy, stutters, or drops frames; when choosing which property to animate; when deciding between CSS and JS animation on performance grounds; or when reaching for `will-change` or GPU layers. For choosing easing, duration, or whether to animate at all use animate; for reviewing motion as a whole use review-animations./apple-designApple'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.