shadcn
shadcn/ui 组件库最佳实践和模式(以前称为 shadcn-ui)。在编写、审查或重构 shadcn/ui 组件时应使用此技能,以确保正确的架构、可访问性和性能。触发涉及 Radix 原语、Tailwind 样式、使用 React Hook Form 进行表单验证、数据表、主题或组件组合模式的任务。
SKILL.md
Comprehensive best practices guide for shadcn/ui applications, maintained by the shadcn/ui community. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
| 1 | Component Architecture | CRITICAL | arch- | | 2 | Accessibility Preservation | CRITICAL | ally- | | 3 | Styling & Theming | HIGH | style- | | 4 | Form Patterns | HIGH | form- | | 5 | Data Display | MEDIUM-HIGH | data- | | 6 | Component Composition | MEDIUM | comp- | | 7 | Performance Optimization | MEDIUM | perf- |
| 8 | State Management | LOW-MEDIUM | state- |
shadcn/ui 组件库最佳实践和模式(以前称为 shadcn-ui)。在编写、审查或重构 shadcn/ui 组件时应使用此技能,以确保正确的架构、可访问性和性能。触发涉及 Radix 原语、Tailwind 样式、使用 React Hook Form 进行表单验证、数据表、主题或组件组合模式的任务。 来源:thongdn-it/react-agent-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/thongdn-it/react-agent-skills --skill shadcn- 分类
- </>开发工具
- 认证
- —
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 shadcn?
shadcn/ui 组件库最佳实践和模式(以前称为 shadcn-ui)。在编写、审查或重构 shadcn/ui 组件时应使用此技能,以确保正确的架构、可访问性和性能。触发涉及 Radix 原语、Tailwind 样式、使用 React Hook Form 进行表单验证、数据表、主题或组件组合模式的任务。 来源:thongdn-it/react-agent-skills。
如何安装 shadcn?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/thongdn-it/react-agent-skills --skill shadcn 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/thongdn-it/react-agent-skills
详情
- 分类
- </>开发工具
- 来源
- user
- 收录时间
- 2026-02-01