jpskill.com
🛠️ 開発・MCP コミュニティ 🔴 エンジニア向け 👤 エンジニア・AI開発者

🛠️ UI Component

ui-component

StyleSeed Tossのルールに沿って、見た目や

⏱ テスト計画作成 2時間 → 20分

📺 まず動画で見る(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本体の挙動とは独立した参考情報です。

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • UI Component を使って、最小構成のサンプルコードを示して
  • UI Component の主な使い方と注意点を教えて
  • UI Component を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Claude が読む原文 SKILL.md(中身を展開)

この本文は AI(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.md for conventions
  • css/theme.css for 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 blocks
  • src/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 const component
  • React.ComponentProps<> or equivalent native prop typing
  • className passthrough support
  • cn() or the project's standard class merger
  • data-slot for 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-card
  • text-foreground
  • text-muted-foreground
  • border-border
  • shadow-[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:

  1. The generated component
  2. The target path
  3. Any required imports or dependencies
  4. 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.