ui-handler
Shadcn MCPと21st.dev MCPを活用し、ボタンやレイアウトの追加、ランディングページの作成など、UI実装を効率的に行うSkill。
📜 元の英語説明(参考)
Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.
🇯🇵 日本人クリエイター向け解説
Shadcn MCPと21st.dev MCPを活用し、ボタンやレイアウトの追加、ランディングページの作成など、UI実装を効率的に行うSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ui-handler.zip https://jpskill.com/download/16919.zip && unzip -o ui-handler.zip && rm ui-handler.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/16919.zip -OutFile "$d\ui-handler.zip"; Expand-Archive "$d\ui-handler.zip" -DestinationPath $d -Force; ri "$d\ui-handler.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ui-handler.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ui-handlerフォルダができる - 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-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
UIハンドラー
指示
1. 標準コンポーネント(Atoms)のインストール
基本的なUI要素(ボタン、入力、ダイアログ)には、Shadcn MCPを使用してください。
- アクション: Shadcn MCPにコンポーネントの追加を依頼します。
"Shadcn MCPを使用して、buttonとdialogコンポーネントを追加してください。"
- 手動フォールバック:
pnpm dlx shadcn@latest add {component}
2. 複雑なセクション(Blocks)の生成
高レベルなセクション(ランディングページ、ヒーロー、ダッシュボード)には、21st.dev Magic MCPを使用してください。
- アクション: 21st.dev MCPに説明をプロンプトします。
"ダークグラデーションの背景とメールキャプチャフォームを備えた、モダンなSaaSヒーローセクションを生成してください。"
- 場所: 生成されたファイルを
src/components/sections/またはsrc/components/website/に配置します。 - 統合:
page.tsxでインポートして使用します。
3. テーマとスタイリング
Shadcn MCPを使用するか、src/app/globals.cssを直接編集します。
- テーマの更新: Shadcn MCPに特定のテーマまたはカラーパレットの適用を依頼します。
"アプリのテーマを更新して、'zinc'ニュートラルベースと'blue'プライマリカラーを使用してください。"
- CSS変数:
src/app/globals.cssではCSS変数(多くの場合OKLCH)を使用しています。新しいスタイルは、これらの変数(例:bg-background、text-primary)を使用するようにしてください。
4. レイアウトの作成
- 識別: ヘッダー、サイドバー、コンテンツエリア。
- 構成:
@/components/uiのatomsと@/components/sectionsのセクションを使用します。 - 同一場所: コンポーネントがページ固有である場合は、ページの隣の
_components/に配置します。
リファレンス
詳細なアーキテクチャとベストプラクティスについては、reference.mdを参照してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
UI Handler
Instructions
1. Installing Standard Components (Atoms)
Use the Shadcn MCP for foundational UI elements (buttons, inputs, dialogs).
- Action: Ask the Shadcn MCP to add the component.
"Add the button and dialog components using Shadcn MCP."
- Manual Fallback:
pnpm dlx shadcn@latest add {component}
2. Generating Complex Sections (Blocks)
Use the 21st.dev Magic MCP for high-level sections (Landing pages, Heros, Dashboards).
- Action: Prompt the 21st.dev MCP with a description.
"Generate a modern SaaS hero section with a dark gradient background and email capture form."
- Location: Place generated files in
src/components/sections/orsrc/components/website/. - Integration: Import and use in your
page.tsx.
3. Theming & Styling
Use Shadcn MCP or edit src/app/globals.css directly.
- Theme Updates: Ask Shadcn MCP to apply a specific theme or color palette.
"Update the app theme to use a 'zinc' neutral base with 'blue' primary color."
- CSS Variables: We use CSS variables (often OKLCH) in
src/app/globals.css. Ensure any new styles use these variables (e.g.,bg-background,text-primary).
4. Creating Layouts
- Identify: Header, Sidebar, Content Area.
- Compose: Use atoms from
@/components/uiand sections from@/components/sections. - Co-location: If a component is unique to a page, put it in
_components/next to the page.
Reference
For detailed architecture and best practices, see reference.md.