shadcn
하는 일
이 스킬은 웹 앱 화면을 위한 기성 부품을 제공하는 shadcn/ui 컴포넌트 라이브러리로 AI 에이전트를 안내합니다. 이 라이브러리로 웹 앱을 만드는 사람을 위한 스킬입니다.
사용하는 경우
- ✓shadcn/ui 프로젝트에 기성 버튼, 양식, 카드를 추가하고 싶을 때.
- ✓앱의 컴포넌트가 이상하게 보여 라이브러리의 의도대로 스타일을 맞추고 싶을 때.
- ✓직접 만들기 전에 라이브러리에 이미 있는 컴포넌트를 확인하고 싶을 때.
스킬 링크
https://github.com/different-ai/openwork/blob/dev/.opencode/skills/shadcn/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“shadcn 컴포넌트를 사용해 제 앱에 로그인 양식을 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 프로젝트 설정과 컴포넌트 문서를 읽은 뒤, 라이브러리의 의도에 맞게 부품을 추가하거나 조정합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
shadcn/ui
A framework for building ui, components and design systems. Components are added as source code to the user's project via the CLI.
IMPORTANT: Run all CLI commands using the project's package runner:
npx shadcn@latest,pnpm dlx shadcn@latest, orbunx --bun shadcn@latest— based on the project'spackageManager. Examples below usenpx shadcn@latestbut substitute the correct runner for the project.
Current Project Context
!`npx shadcn@latest info --json`
The JSON above contains the project config and installed components. Use npx shadcn@latest docs <component> to get documentation and example URLs for any component.
Principles
- Use existing components first. Use
npx shadcn@latest searchto check registries before writing custom UI. Check community registries too. - Compose, don't reinvent. Settings page = Tabs + Card + form controls. Dashboard = Sidebar + Card + Chart + Table.
- Use built-in variants before custom styles.
variant="outline",size="sm", etc. - Use semantic colors.
bg-primary,text-muted-foreground— never raw values likebg-blue-500.
Critical Rules
These rules are always enforced. Each links to a file with Incorrect/Correct code pairs.
Styling & Tailwind → styling.md
classNamefor layout, not styling. Never override component colors or typography.- No
space-x-*orspace-y-*. Useflexwithgap-*. For vertical stacks,flex flex-col gap-*. - Use
size-*when width and height are equal.size-10notw-10 h-10. - Use
truncateshorthand. Notoverflow-hidden text-ellipsis whitespace-nowrap. - No manual
dark:color overrides. Use semantic tokens (bg-background,text-muted-foreground). - Use
cn()for conditional classes. Don't write manual template literal ternaries. - No manual
z-indexon overlay components. Dialog, Sheet, Popover, etc. handle their own stacking.
Forms & Inputs → forms.md
- Forms use
FieldGroup+Field. Never use rawdivwithspace-y-*orgrid gap-*for form layout. InputGroupusesInputGroupInput/InputGroupTextarea. Never rawInput/TextareainsideInputGroup.- Buttons inside inputs use
InputGroup+InputGroupAddon. - Option sets (2–7 choices) use
ToggleGroup. Don't loopButtonwith manual active state. FieldSet+FieldLegendfor grouping related checkboxes/radios. Don't use adivwith a heading.- Field validation uses
data-invalid+aria-invalid.data-invalidonField,aria-invalidon the control. For disabled:data-disabledonField,disabledon the control.
Component Structure → composition.md
- Items always inside their Group.
SelectItem→SelectGroup.DropdownMenuItem→DropdownMenuGroup.CommandItem→CommandGroup. - Use
asChild(radix) orrender(base) for custom triggers. Checkbasefield fromnpx shadcn@latest info. → base-vs-radix.md - Dialog, Sheet, and Drawer always need a Title.
DialogTitle,SheetTitle,DrawerTitlerequired for accessibility. UseclassName="sr-only"if visually hidden. - Use full Card composition.
CardHeader/CardTitle/CardDescription/CardContent/CardFooter. Don't dump everything inCardContent. - Button has no
isPending/isLoading. Compose withSpinner+data-icon+disabled. TabsTriggermust be insideTabsList. Never render triggers directly inTabs.Avataralways needsAvatarFallback. For when the image fails to load.
Use Components, Not Custom Markup → composition.md
- Use existing components before custom markup. Check if a component exists before writing a styled
div. - Callouts use
Alert. Don't build custom styled divs. - Empty states use
Empty. Don't build custom empty state markup. - Toast via
sonner. Usetoast()fromsonner. - Use
Separatorinstead of<hr>or<div className="border-t">. - Use
Skeletonfor loading placeholders. No customanimate-pulsedivs. - Use
Badgeinstead of custom styled spans.
Icons → icons.md
- Icons in
Buttonusedata-icon.data-icon="inline-start"ordata-icon="inline-end"on the icon. - No sizing classes on icons inside components. Components handle icon sizing via CSS. N
자주 묻는 질문
shadcn/ui 프로젝트에서만 작동하나요?
네. components.json 파일로 표시되는 shadcn/ui 프로젝트에 적용됩니다.
프로젝트에 새 컴포넌트를 추가할 수 있나요?
네. shadcn 레지스트리의 컴포넌트를 소스 코드로 프로젝트에 추가할 수 있습니다.
컴포넌트 사용법을 설명할 수 있나요?
네. 어떤 컴포넌트든 문서와 사용 예시를 가져올 수 있습니다.
상세 정보
작성자의 원본 설명
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
repo: different-ai/openwork
인기도
- GitHub 스타
- 24k
- 순위
- #10111
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-plugin
24k에이전트가 OpenCode 플러그인에 사용자 도구와 훅을 추가하도록 돕습니다. 플러그인 API에 맞는 올바른 구조를 사용합니다.
upload-photo
24k에이전트가 스크린샷이나 동영상을 GitHub 풀 리퀘스트나 이슈에 첨부하도록 돕습니다. 접근성을 위해 대체 텍스트도 붙일 수 있습니다.
connect-openwork-mcp
24k에이전트가 OpenWork MCP 게이트웨이에 연결해, 팀의 OpenWork 스킬, 플러그인, 연결 기능을 사용하도록 돕습니다.
install-openwork
24k에이전트가 무료 데스크톱 앱 OpenWork를 컴퓨터에 설치하고 첫 작업을 시작하도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.