
shadcn CLI
CLIshadcn/ui 官方命令行:初始化项目并按需把组件源码加入代码库,可切换预设;v4 起提供 --dry-run、--diff 便于 agent 预览改动,并配套 agent skill。
shadcn
A CLI for adding components to your project.
create
Use the create command to create a new project. You will be taken to a website to build your custom design system and choose your framework.
npx shadcn create
init
Use the init command to initialize dependencies for a new project.
The init command installs dependencies, adds the cn util, configures Tailwind CSS, and CSS variables for the project.
npx shadcn init
apply
Use the apply command to apply a preset to an existing project.
The apply command overwrites the current preset configuration, reinstalls detected UI components, and updates fonts and CSS variables to match the new preset.
npx shadcn apply --preset a2r6bw
add
Use the add command to add components to your project.
The add command adds a component to your project and installs all required dependencies.
npx shadcn add [component]
Example
npx shadcn add alert-dialog
You can also run the command without any arguments to view a list of all available components:
npx shadcn add
Documentation
Visit https://ui.shadcn.com/docs/cli to view the documentation.
License
Licensed under the MIT license.
相關資源

Web Artifacts Builder
Skill用 React、Tailwind CSS 与 shadcn/ui 搭建需要状态管理或路由的多组件网页,自带初始化与打包脚本,最终打包成单个 HTML 文件作为 claude.ai Artifact。Anthropic 官方技能。
anthropics/skills182k
shadcn/ui
Skillshadcn/ui 官方技能:让 agent 借助 shadcn CLI 读取项目配置与组件文档,按规范添加、搜索、组合和修复组件,遵守样式、表单与无障碍规则,也能用预设初始化新项目。
shadcn-ui/ui126k
shadcn MCP Server
MCPshadcn/ui 官方 CLI 内置的 MCP 服务器:让 agent 浏览、搜索任意已配置 registry(含私有组件库)里的组件、区块与模板,并用自然语言把组件安装进项目。项目中需要有 components.json。
shadcn-ui/ui126k
daisyUI
SkilldaisyUI 官方技能,让 agent 编写 HTML 或 JSX 时使用 daisyUI 5 的组件类名、语义色与主题:先按功能挑选合适的组件并阅读对应文档,再按其结构与约束写代码,附带安装、用法、配置与颜色等子指南。基于 Tailwind CSS 4。
saadeghi/daisyui42.6k
React Composition Patterns
SkillVercel 出品的 React 组合模式指南:用复合组件、状态提升和清晰的 Context 接口取代布尔 props 泛滥,含 React 19 API 变化,适合重构组件库与评审组件架构。
vercel-labs/agent-skills32.6k
Taro CLI
CLI京东开源多端框架 Taro 的命令行:用 React/Vue 写一套代码,taro init 创建项目,taro build --type 编译到微信、支付宝、抖音等小程序以及 H5、鸿蒙与 React Native。
NervJS/taro37.7k