🛠️ UI Component
StyleSeed Tossのルールに沿って、見た目や
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Generate a new UI component that follows StyleSeed Toss conventions for structure, tokens, accessibility, and component ergonomics.
🇯🇵 日本人クリエイター向け解説
StyleSeed Tossのルールに沿って、見た目や
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ui-component.zip https://jpskill.com/download/3635.zip && unzip -o ui-component.zip && rm ui-component.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/3635.zip -OutFile "$d\ui-component.zip"; Expand-Archive "$d\ui-component.zip" -DestinationPath $d -Force; ri "$d\ui-component.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ui-component.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ui-componentフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › UI Component を使って、最小構成のサンプルコードを示して
- › UI Component の主な使い方と注意点を教えて
- › UI Component を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
UI コンポーネント
概要
StyleSeed の一部であるこのスキルは、場当たり的なマークアップやスタイリングではなく、Toss seed のデザイン言語を尊重するコンポーネントを生成します。セマンティックトークン、予測可能な型付け、再利用可能なバリアント、モバイルフレンドリーなアクセシビリティのデフォルトを重視しています。
使用する場面
- StyleSeed ベースのプロジェクト内で新しい UI プリミティブまたは構成されたコンポーネントが必要な場合に使用します。
- コンポーネントを既存の Toss seed の慣例に合わせたい場合に使用します。
- コンポーネントが再利用可能で、型付けされ、デザイン・トークン駆動であるべき場合に使用します。
- AI が間隔、色、またはインタラクションパターンを独自に考案する可能性がある場合に使用します。
仕組み
ステップ 1: ローカルのデザインコンテキストを読み取る
コードを生成する前に、seed の信頼できる情報源を検査します。
- 慣例については
CLAUDE.md - セマンティックトークンについては
css/theme.css components/ui/から少なくとも 1 つの代表的なコンポーネント
ユーザーがより良いローカルの例をすでに持っている場合は、一般的なテンプレートよりもローカルのコードベースに従います。
ステップ 2: 正しい配置場所を選択する
出力を適切な場所に配置します。
- プリミティブおよび低レベルのビルディングブロックには
src/components/ui/ - 構成されたセクションまたは複数パーツのパターンには
src/components/patterns/
既存のプリミティブを安全に拡張できる場合は、新しいプリミティブを作成しないでください。
ステップ 3: 構造ルールに従う
ホストプロジェクトが強く反対しない限り、以下のデフォルトを使用します。
constコンポーネントではなく関数宣言React.ComponentProps<>または同等のネイティブなプロパティ型付けclassNameパススルーサポートcn()またはプロジェクトの標準的なクラスマージャー- コンポーネント識別のための
data-slot - バリアントが本当に必要な場合にのみ CVA または同等
ステップ 4: セマンティックトークンのみを使用する
デザインシステムにトークンがある場合は、視覚的な値をハードコードしないでください。
推奨される例:
bg-cardtext-foregroundtext-muted-foregroundborder-bordershadow-[var(--shadow-card)]
ステップ 5: StyleSeed のタイポグラフィと間隔を保持する
- seed によってすでに定義されているスケールを使用します。
- 6px の倍数を優先します。
- サポートされている場合は論理的な間隔ユーティリティを使用します。
- ディスプレイと見出しのテキストは引き締め、本文のテキストは読みやすく、キャプションは控えめにします。
ステップ 6: アクセシビリティを組み込む
- インタラクティブな要素のタッチターゲットは、少なくとも 44x44px である必要があります。
- キーボードフォーカスは視覚的に表示される必要があります。
- 適切な場合は
aria-*属性をパススルーします。 - 不要なモーションについては、reduced-motion の設定を尊重します。
出力
以下を提供します。
- 生成されたコンポーネント
- ターゲットパス
- 必要なインポートまたは依存関係
- バリアント、トークン、またはフォローアップの統合作業に関するメモ
ベストプラクティス
- 新しいプリミティブを考案する前に、既存のプリミティブから構成します。
- コンポーネント API を小さく予測可能に保ちます。
- 任意の値よりもセマンティックなレイアウトクラスを優先します。
- ホストプロジェクトが別の標準を一貫して使用している場合を除き、名前付きコンポーネントをエクスポートします。
追加リソース
制限事項
- このスキルは、タスクが上記で説明されている範囲と明確に一致する場合にのみ使用してください。
- 出力を、環境固有の検証、テスト、または専門家によるレビューの代わりとして扱わないでください。
- 必要な入力、権限、安全境界、または成功基準が不足している場合は、停止して明確化を求めてください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
UI Component
Overview
Part of StyleSeed, this skill generates components that respect the Toss seed's design language instead of improvising ad hoc markup and styling. It emphasizes semantic tokens, predictable typing, reusable variants, and mobile-friendly accessibility defaults.
When to Use
- Use when you need a new UI primitive or composed component inside a StyleSeed-based project
- Use when you want a component to match the existing Toss seed conventions
- Use when a component should be reusable, typed, and design-token driven
- Use when the AI might otherwise invent spacing, colors, or interaction patterns
How It Works
Step 1: Read the Local Design Context
Before generating code, inspect the seed's source of truth:
CLAUDE.mdfor conventionscss/theme.cssfor semantic tokens- at least one representative component from
components/ui/
If the user already has a better local example, follow the local codebase over a generic template.
Step 2: Choose the Correct Home
Place the output where it belongs:
src/components/ui/for primitives and low-level building blockssrc/components/patterns/for composed sections or multi-part patterns
Do not create a new primitive if an existing one can be extended safely.
Step 3: Follow the Structural Rules
Use these defaults unless the host project strongly disagrees:
- function declaration instead of a
constcomponent React.ComponentProps<>or equivalent native prop typingclassNamepassthrough supportcn()or the project's standard class mergerdata-slotfor component identification- CVA or equivalent only when variants are genuinely needed
Step 4: Use Semantic Tokens Only
Do not hardcode visual values if the design system has a token for them.
Preferred examples:
bg-cardtext-foregroundtext-muted-foregroundborder-bordershadow-[var(--shadow-card)]
Step 5: Preserve StyleSeed Typography and Spacing
- Use the scale already defined by the seed
- Prefer multiples of 6px
- Use logical spacing utilities where supported
- Keep display and heading text tight, body text readable, captions restrained
Step 6: Bake in Accessibility
- Touch targets should be at least 44x44px for interactive elements
- Keyboard focus must be visible
- Pass through
aria-*attributes where appropriate - Respect reduced-motion preferences for nonessential motion
Output
Provide:
- The generated component
- The target path
- Any required imports or dependencies
- Notes on variants, tokens, or follow-up integration work
Best Practices
- Compose from existing primitives before inventing new ones
- Keep the component API small and predictable
- Prefer semantic layout classes over arbitrary values
- Export named components unless the host project uses another standard consistently
Additional Resources
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.