shadcn

When the skill loads, it runs `npx shadcn@latest info --json` to read the project configuration and installed components. It then requires the agent to first search the component library for existing components, use ready-made variants and semantic colors, and combine `FieldGroup` with `Field` for forms, among other rules. Each rule links to a documentation file with positive and negative examples. It also covers initializing projects, switching presets, and building design systems according to `DESIGN.md` or brand guidelines. Allowed tools are restricted to calling `shadcn` commands via `npx`, `pnpm dlx`, or `bunx`.

When the skill loads, it runs npx shadcn@latest info --json to read the project configuration and installed components. It then requires the agent to first search the component library for existing components, use ready-made variants and semantic colors, and combine FieldGroup with Field for forms, among other rules. Each rule links to a documentation file with positive and negative examples. It also covers initializing projects, switching presets, and building design systems according to DESIGN.md or brand guidelines. Allowed tools are restricted to calling shadcn commands via npx, pnpm dlx, or bunx.

Why it matters First, use the shadcn command to read the project configuration and installed components, then write code according to rules for styles, forms, etc. This reduces the agent hand-writing duplicate components and arbitrarily changing colors.

skills.sh installs 151740 (+1310 / 24h)

Security Audit: Not audited

  • Not yet scanned

Rationale

  • skills.sh had 1310 installs in the last 24 hours, with a cumulative total of 151740 (indicating only attention level); the skill is located in the main shadcn-ui/ui repository
  • SKILL.md has been read from the repository

Usage

  • After installing in a project with components.json, simply say "add a settings page" or "create a new app with --preset", and it will load automatically

Risks

  • Has not yet undergone automated desktop auditing; the website does not display installation commands; when the skill loads, it executes npx shadcn@latest, which pulls the latest version of the command-line tool from npm
  • Only applicable to shadcn/ui projects

Open · Repository

Best Skills 每日数据(LinklyAI / @BlueeonY,CC BY 4.0)

Explore the latest AI Radar updates