shadcn
Manages shadcn/ui components and projects, providing context, documentation, and usage patterns for building modern design systems.
- License 许可
- MIT
- 最近更新
- 2026-04-19
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- shadcn
- risk
- safe
- source
- https://github.com/shadcn-ui/ui/tree/main/skills/shadcn
- description
- Manages shadcn/ui components and projects, providing context, documentation, and usage patterns for building modern design systems.
- user-invocable
- false
02 资源文件 15
- 参考文档agents/openai.yml238 B
- 资产文件assets/shadcn-small.png1.0 KB
- 资产文件assets/shadcn.png3.8 KB
- 参考文档cli.md14.6 KB
- 参考文档customization.md5.8 KB
- 参考文档evals/evals.json3.0 KB
- 参考文档mcp.md2.3 KB
- 参考文档resources/shadcn-cli-and-workflow.md1.6 KB
- 参考文档resources/shadcn-critical-rules.md1.8 KB
- 参考文档resources/shadcn-patterns-and-selection.md1.4 KB
- 参考文档rules/base-vs-radix.md6.8 KB
- 参考文档rules/composition.md4.2 KB
- 参考文档rules/forms.md4.7 KB
- 参考文档rules/icons.md1.9 KB
- 参考文档rules/styling.md3.7 KB
03 SKILL.md 正文
shadcn/ui
Overview
A framework for building high-quality UI components and design systems. Components are added as source code to the project via the CLI, allowing for full customization and ownership.
? Resources
| Resource | Description |
|---|---|
| [Critical Rules](file:///C:/workspaces/antigravity-meta/.agents/skills/shadcn/resources/shadcn-critical-rules.md) | Styling, forms, and composition rules. |
| [Patterns & Selection](file:///C:/workspaces/antigravity-meta/.agents/skills/shadcn/resources/shadcn-patterns-and-selection.md) | Map of needs to components and code examples. |
| [CLI & Workflow](file:///C:/workspaces/antigravity-meta/.agents/skills/shadcn/resources/shadcn-cli-and-workflow.md) | Initialization, adding components, and smart merging. |
Core Principles
- Use existing components first: Search the registry before writing custom UI.
- Compose, don't reinvent: Build pages by composing Tabs, Cards, and Forms.
- Use semantic tokens: Prefer
bg-primaryandtext-mutedover raw colors. - Follow accessibility rules: All overlays must have titles; use
asChildfor triggers.
Quick CLI Reference
- Refresh Context:
npx shadcn@latest info - Search Registry:
npx shadcn@latest search - Add Component:
npx shadcn@latest add <component> - View Docs:
npx shadcn@latest docs <component>
Related Rules
- [Styling Rules](file:///agents/skills/shadcn/rules/styling.md)
- [Forms Rules](file:///agents/skills/shadcn/rules/forms.md)
- [Composition Rules](file:///agents/skills/shadcn/rules/composition.md)
Summary
Build accessible, performant design systems through CLI-driven component composition and semantic styling.
04 同仓库更多 Skills
wcag-audit-patterns
Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation strategies.
unit-testing-test-generate
Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
testing-qa
Comprehensive testing and QA workflow covering unit testing, integration testing, E2E testing, browser automation, and quality assurance.
test-fixing
Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests ("fix these tests", "make tests pass"), reports test failures ("tests are failing", "test suite is broken"), or completes implementation and wants tests passing.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
terraform-infrastructure
Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.