shadcn/ui skill for Claude Code

Give Claude Code the shadcn/ui project conventions for choosing, installing, and composing UI components in an existing codebase.

How to add the shadcn/ui skill to Claude Code

  1. Choose Claude Code when running the skill command. Use it in the application repo that has the shadcn configuration, usually components.json.
  2. The publisher marks this skill as automatic. Describe a concrete shadcn component task in natural language and ask Claude to identify the project’s existing primitives before editing.
Claude Code · Install this skill
npx skills add https://github.com/shadcn-ui/ui --skill shadcn

Add an accessible delete confirmation

In a shadcn project, ask for a delete-confirmation dialog that uses the local component library and design tokens. Specify that approval should call the existing delete action and that Cancel should receive initial focus.

Check the diff for reuse of the project's dialog and button components. Open the dialog with a keyboard, dismiss it with Escape, and confirm the focus returns to its trigger without deleting the row.

Browse Skills