Agent skill Frontend
Stitch shadcn/ui
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/google-labs-code/stitch-skills/tree/main/plugins/stitch-build/skills/shadcn-ui --skill shadcn-ui --agent claude-code --yesCheck this file in your project.claude/skills/shadcn-ui/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/google-labs-code/stitch-skills/tree/main/plugins/stitch-build/skills/shadcn-ui --skill shadcn-uiSelect 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 existing shadcn project and the official shadcn MCP server for discovery. The verified CLI was shadcn 4.23.1 with a Radix Nova and Tailwind v4 fixture. This registry workflow uses public component docs.
View operation manualWhat this skill helps with
- Build or refine reusable components for a web interface.
Good for
- Component implementation
- Skill name
- shadcn-ui
- Scenario
- Discover and add a labelled field with the public registry
- Deliverable
- A Label with a working input association and a record of the registry result and package changes.
- Skill name
shadcn-ui- Repository
google-labs-code/stitch-skills
Define a component task with an observable result
A request with an unclear outcome
Guess the MCP tool name and copy whatever label snippet appears.
The published MCP server and older examples can expose different tool names and project styles.
A workflow with observable results
- Discover the project registry item
- Preview and adopt one Label
- Check setup and field association
Stitch shadcn/ui operation manual
Use the shadcn MCP server for registry discovery, then verify the copied Label in your existing project.
Replace the bracketed details with your own project and target.
Discover the project registry item
Read the connected server’s actual tool list.
Prompt · Step 1Use the google-labs-code `shadcn-ui` skill for [form field]. Read components.json and query the connected registry tools. With CLI server 4.23.1, call `get_project_registries`, then `view_items_in_registries` for `@shadcn/label`; call `get_item_examples_from_registries` with query `label-demo` when needed. Identify the fixture item’s dependencies and compare with the installed project.Preview and adopt one Label
Use local configuration to resolve the correct variant.
Prompt · Step 2Use google-labs-code `shadcn-ui` to integrate [approved label]. Reuse an existing Label wrapper. If missing, preview `shadcn add label --dry-run` with the project CLI, then add the one approved item. Use the resulting local import, assign the input a stable id and connect the Label via htmlFor. Show the actual files and dependencies.Check setup and field association
Treat the script as a setup check and verify behavior in a browser.
- The registry item matches the project style and the actual added files.
- The rendered label both names and focuses the input.
Prompt · Step 3Use the google-labs-code `shadcn-ui` skill to validate [local form]. From the project root run `bash "<installed-skill>/scripts/verify-setup.sh"` and review all warnings as well as its exit status. Click the label and confirm the input receives focus. Use Tab and verify the field’s accessible name. Return the registry result, script findings and browser behavior.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
The Skill mentions a tool the server lacksReference
- Command or reference
Official shadcn MCP · Tool discovery- Examples
- Use the actual connected server’s tools/list and check the item with the current API.
Stitch shadcn/ui troubleshooting
Does a setup-script pass prove the form works?
It checks project conventions. Verify the rendered label and focus behavior in a browser. A modern v4 project may also omit older recommended animation packages.