shadcn-ui
Fungsinya
Skill ini meminta agent memakai elemen antarmuka bawaan aplikasi dan temanya, alih-alih menebak dari contoh luar. Skill ini untuk pengembang yang membangun atau mengubah layar di aplikasi yang memakai komponel bergaya shadcn.
Kapan dipakai
- ✓Saat Anda menambahkan dialog, menu, formulir, atau tombol ke layar aplikasi.
- ✓Ketika Anda mengubah tampilan komponen dan perlu tetap sesuai tema.
- ✓Saat Anda membutuhkan elemen antarmuka yang mungkin sudah disediakan aplikasi.
Link skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/shadcn-ui/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Tambahkan dialog konfirmasi dengan formulir ke layar ini, memakai tombol dan warna yang sudah dipakai aplikasi.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca pengaturan komponen aplikasi dan memakai varian serta token tema yang sudah ada. Agent mengimpor kontrol melalui pembungkus lokal aplikasi, alih-alih mengubah tampilan bersama hanya untuk satu layar.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Haruskah saya menimpa gaya komponen untuk satu halaman?
Tidak. Skill ini menyatakan untuk menaruh tata letak halaman di induknya, bukan mengubah tampilan bersama.
Dari mana warna tema sebaiknya berasal?
Dari token tema aplikasi, seperti bg-background atau text-muted-foreground.
Bagaimana jika contoh dari hulu terlihat berbeda?
Ekspor, varian, dan props aplikasi sendiri menjadi acuannya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.6k
- Peringkat
- #13183
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
design-exploration
7.6kMembantu agent Anda mengeksplorasi beberapa arah desain UI secara berdampingan, membiarkan Anda memilih satu, lalu menyempurnakan desain yang dipilih.
visual-edit
7.6kMembantu agent Anda membuka aplikasi lokal yang sedang berjalan di editor visual agar Anda dapat meninjau dan mengedit layar aslinya bersama-sama.
turn-into-app
7.6kMengubah alur kerja, spreadsheet, atau proyek menjadi aplikasi visual yang rapi, dengan layar yang terisi dan agent yang bekerja di balik kontrol.
visual-plan
7.6kMengubah rencana teks biasa menjadi rencana visual interaktif dengan diagram, peta file, cuplikan kode, dan pertanyaan terbuka.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.