shadcn

When the skill loads, it first runs `npx shadcn@latest info --json` to retrieve the project configuration and installed components, then uses the `docs` command to look up component documentation and examples. The principles are: first search the registry for existing components, compose pages using components, prioritize built-in variants, and use only semantic tokens for colors. Key rules cover styling (do not use `space-x` / `space-y`, use `size` when width and height are equal, do not manually write `dark:` colors), forms (use `FieldGroup` + `Field`, use `ToggleGroup` for a small number of options), and component structure (dialogs must have a title, Avatars must have a Fallback), among others. Each rule links to a rule file with side-by-side correct and incorrect code examples. It also supports building design systems based on presets, `DESIGN.md`, or brand guidelines.

When the skill loads, it first runs npx shadcn@latest info --json to retrieve the project configuration and installed components, then uses the docs command to look up component documentation and examples. The principles are: first search the registry for existing components, compose pages using components, prioritize built-in variants, and use only semantic tokens for colors. Key rules cover styling (do not use space-x / space-y, use size when width and height are equal, do not manually write dark: colors), forms (use FieldGroup + Field, use ToggleGroup for a small number of options), and component structure (dialogs must have a title, Avatars must have a Fallback), among others. Each rule links to a rule file with side-by-side correct and incorrect code examples. It also supports building design systems based on presets, DESIGN.md, or brand guidelines.

Why it matters Read the project configuration and installed components first, then look for existing components in the component library. Enforcing rules for semantic colors, forms, and component structure results in more consistent generated interfaces.

skills.sh installs 159353 (+1361 / 24h)

Security Audit: Not audited

  • Not yet scanned

Reasoning

  • skills.sh had 1361 installs in the last 24 hours, with a cumulative total of 159353 (indicating only attention level); sourced from the main shadcn-ui/ui repository
  • allowed-tools only permits running shadcn commands via npx, pnpm dlx, and bunx; it triggers automatically in scenarios involving components.json, etc., without requiring manual invocation

Usage

  • Run npx skills add https://github.com/shadcn-ui/ui --skill shadcn, then tell the agent in a project with components.json: "Use shadcn components to build an admin page with a sidebar and a data table"

Risks

  • Not audited: Not scanned on desktop, and the website does not display installation commands
  • The skill runs npx shadcn@latest immediately upon loading, which fetches and executes the latest version from npm; it is only useful for shadcn/ui projects

Open · Repository

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

Explore the latest AI Radar updates