shadcn-ui
できること
このスキルは、外部の例から推測するのではなく、アプリの組み込みの画面部品とテーマを使うようエージェントに指示します。shadcn 形式のコンポーネントを使うアプリで、画面を作成・変更する開発者向けです。
使う場面
- ✓アプリの画面にダイアログ、メニュー、フォーム、ボタンを追加するとき。
- ✓部品の見た目を変えて、テーマに合わせる必要があるとき。
- ✓アプリがすでに提供しているかもしれない画面部品が必要なとき。
スキルのリンク
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/shadcn-ui/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この画面に確認ダイアログとフォームを追加してください。アプリがすでに使っているボタンと色を使ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、アプリのコンポーネントの設定を読み、既存のバリエーションとテーマの色を使います。共通の見た目を変えず、アプリのローカルのラッパーを通して部品を読み込みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
shadcn/ui and Local UI Adapters
Use the components already provided by the app. Read the app's design-system configuration, Toolkit provider, and local UI components before adding or changing a control. Their exports, variants, and props are the contract; do not guess from upstream examples.
Keep imports behind the local adapter
Product pages and domain components should import standard controls through the
app's configured local UI alias. In the Chat starter, that is
@/components/ui/*; its app/components/ui/button.tsx is a one-line
re-export of @agent-native/toolkit/ui/button. Follow an adjacent local shim
when the app needs another Toolkit primitive that is already exported there.
Use the app's configured design system and provider mapping for controls passed
to shared Toolkit surfaces. For shared Toolkit feature presentation, use the
semantic components exposed by @agent-native/toolkit/design-system; keep the
feature behavior in its existing controller and customize only its supported
presentation seam.
Compose existing controls
- Prefer a primitive's built-in variant and size. Put page layout on a parent instead of overriding shared component appearance for one screen.
- Use the app's semantic theme tokens for reusable UI, such as
bg-background,text-muted-foreground,border-border, andbg-primary. Keep theme values in the app's existing CSS theme file. - Use the control that matches the choice:
Switchfor a binary setting,Checkboxfor independent multi-select,RadioGroupfor one choice from a short set, andSelector the app's combobox for a longer predefined list. - Compose cards and form fields from the primitives already available. Avoid
adding explanatory copy that repeats a visible title or label; see
frontend-designfor the app's surface-density rules. - Put selectable items inside their menu or list group primitives. Keep tab triggers inside the tab list. Supply an accessible title to dialog, sheet, drawer, and alert-dialog content.
- Match the trigger API to the actual local component. Toolkit wrappers may
expose a different API from the upstream primitive; inspect its props before
using options such as
asChildorrender.
Keep controls operable
Use the app's existing field components and validation pattern. Associate errors with their inputs and expose invalid state to assistive technology. Icon-only actions need an accessible name and a usable focus target. Use the icon package already installed by the app.
Do not recreate menus, popovers, dialogs, or confirmations with absolute
positioning and custom click-outside handlers. Never use browser alert,
confirm, or prompt; use the app's dialog primitives. Keep overlay focus,
keyboard, dismissal, and stacking behavior from the existing primitive.
For small visual refinements, use layout classes and semantic tokens. Avoid raw
palette overrides, arbitrary one-off values, and manual overlay z-index unless
you are fixing a reproduced bug. Use gap-* for layout spacing and the app's
class-merging helper when it has one.
Related skill
- frontend-design — Product UX, density, visual direction, and responsive behavior.
よくある質問
1つのページのために、部品のスタイルを上書きすべきですか?
いいえ。共通の見た目は変えず、ページのレイアウトは親の要素で整えるよう、スキルは述べています。
テーマの色はどこから取りますか?
bg-background や text-muted-foreground などの、アプリのテーマのトークンから取ります。
上流の例の見た目が違う場合はどうしますか?
アプリ自身のエクスポート、バリアント、プロパティが基準になります。
詳細
作者による元の説明
Using the app's local UI adapter and Toolkit or shadcn primitives. Use when choosing or composing standard controls, implementing dialogs, menus, or forms, or changing component variants and theme tokens.
repo: BuilderIO/agent-native
人気
- GitHubのスター
- 7.6k
- ランキング
- #13183
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
design-exploration
7.6kUIの複数のデザインの方向性を並べて検討し、1つを選んでもらい、選んだデザインを磨き上げるようエージェントを支援します。
visual-edit
7.6k実行中のローカルのアプリをビジュアルエディターで開き、本物の画面をまとめて確認し編集できるようエージェントを支援します。
turn-into-app
7.6kワークフロー、スプレッドシート、プロジェクトを、画面にデータが入り、操作の裏でエージェントが働く、洗練されたビジュアルアプリに変えます。
visual-plan
7.6kプレーンテキストの計画を、図、ファイルのマップ、コードの断片、未解決の質問を含む、対話できるビジュアルな計画に変えます。
似ているスキル
canvas
394k接続されたMacのパネルにホスト型のビジュアルウィジェットを表示し、そのパネルを隠したり別のページに移動したりするようエージェントを支援します。
control-ui
394kセッション、ダッシュボード、接続されたGatewayを含め、OpenClaw Control UIを整理し、問題を解決するようエージェントを支援します。
diagram-maker
394kプロセス、システムのアーキテクチャ、ホワイトボードのスケッチのために、SVG、HTML、または編集可能なExcalidrawとして、分かりやすい図を作るようエージェントを支援します。