How to add the shadcn/ui skill to Claude Code
- Choose Claude Code when running the skill command. Use it in the application repo that has the shadcn configuration, usually components.json.
- 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.
npx skills add https://github.com/shadcn-ui/ui --skill shadcnAdd 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.