Agent skill Frontend
Shadcn Kit
Build or refine reusable components for a web interface.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/blencorp/claude-code-kit/tree/main/cli/kits/shadcn/skills/shadcn --skill shadcn --agent claude-code --yesCheck this file in your project.claude/skills/shadcn/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/blencorp/claude-code-kit/tree/main/cli/kits/shadcn/skills/shadcn --skill shadcnSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use an already initialized Radix-backed shadcn project. A local radix-nova fixture used shadcn 4.23.1 and Radix UI 1.8.1. This publisher’s Skill installs as `shadcn`, which can collide with other publishers.
View operation manualWhat this skill helps with
- Build or refine reusable components for a web interface.
Good for
- Component implementation
- Skill name
- shadcn
- Scenario
- Build a keyboard-ready Radix details dialog
- Deliverable
- A labelled dialog that opens from one real Button and restores focus after closing.
- Skill name
shadcn- Repository
blencorp/claude-code-kit
Define a component task with an observable result
A request with an unclear outcome
Copy the Radix asChild snippet into a project that uses Base UI.
The trigger composition API depends on the primitive selected by the project.
A workflow with observable results
- Check the library and local wrappers
- Compose one labelled dialog
- Open and dismiss with the keyboard
Blencorp shadcn operation manual
Use the Skill’s Dialog composition with one project-owned trigger and a labelled body.
Replace the bracketed details with your own project and target.
Check the library and local wrappers
Read components.json and compare local files.
Prompt · Step 1Use the Blencorp `shadcn` skill to plan [details dialog]. Read components.json and confirm this project uses Radix. Check local Button and Dialog wrappers before editing. If Dialog is missing, preview `shadcn add dialog --dry-run` with the project runner and report the proposed files and dependencies for approval.Compose one labelled dialog
Use the existing Button as the single trigger.
Prompt · Step 2Use Blencorp’s `shadcn` guidance to build [approved Radix dialog]. Reuse existing wrappers or add only the approved Dialog registry item through the project CLI. Render one Button via `DialogTrigger asChild`. Include `DialogTitle`, `DialogDescription` and an explicit close action. Preserve local component changes and show which paths were added or imported.Open and dismiss with the keyboard
Check focus ownership and restoration.
- The installed registry wrapper and trigger style match the Radix project.
- Keyboard open, dismiss and focus restoration pass in the local route.
Prompt · Step 3Use the Blencorp `shadcn` skill on [local dialog route]. Open the dialog with Enter. Verify its accessible name and description, then move through its controls with Tab. Check that Escape closes the dialog and returns focus to the original trigger. Repeat with the visible Close action and report the actual behavior.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
Preview the files before adding DialogReference
- Command or reference
SKILL.md · Installation and Dialog- Examples
- A Dialog add can also bring in Button. Review the dry-run summary.
Blencorp shadcn troubleshooting
How do I know which same-named Skill I loaded?
Check that the installed Skill source resolves to Blencorp’s `claude-code-kit` shadcn directory.