본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)7.6k · #13183

shadcn-ui

하는 일

이 스킬은 외부 예제를 추측하는 대신, 에이전트가 앱의 내장 인터페이스 요소와 테마를 쓰도록 안내합니다. shadcn 스타일 컴포넌트를 쓰는 앱의 화면을 만들거나 바꾸는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓앱 화면에 대화상자, 메뉴, 양식 또는 버튼을 추가할 때.
  • ✓컴포넌트의 모양을 바꾸면서 테마에 맞춰야 할 때.
  • ✓앱이 이미 제공할 수 있는 인터페이스 요소가 필요할 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/shadcn-ui/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/shadcn-ui/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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, and bg-primary. Keep theme values in the app's existing CSS theme file.
  • Use the control that matches the choice: Switch for a binary setting, Checkbox for independent multi-select, RadioGroup for one choice from a short set, and Select or 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-design for 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 asChild or render.

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.
자주 묻는 질문

한 페이지에서 컴포넌트 스타일을 덮어써야 하나요?

아니요. 공유 모양을 바꾸지 말고, 페이지 레이아웃은 상위 요소에 두라고 이 스킬은 말합니다.

테마 색상은 어디서 와야 하나요?

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬