Setup Registries
Full project setup for shadcn community registry search — registries, MCP, CLAUDE.md section, and official skill.
Instructions
Read the skill at
${CLAUDE_PLUGIN_ROOT}/skills/component-search/SKILL.mdVerify
components.jsonexists in the project root. If not:- Ask the user if they want to initialize shadcn/ui first
- Run
npx shadcn@latest initif approved
Parse arguments from "$ARGUMENTS":
- (no args) — full setup: registries + MCP + CLAUDE.md + skill
--mcp— only configure the shadcn MCP server--claudemd— only add CLAUDE.md section--skill— only install official shadcn skill
Add registries — Run
/add-registriesto fetch the registries fromhttps://ui.shadcn.com/r/registries.json(it skipsunavailableand hidden ones) and add them tocomponents.json
4b. shadcn studio registries — If the project uses shadcn studio, write the @-prefixed studio registries (not legacy ss-* keys):
"registries": {
"@shadcn-studio": "https://shadcnstudio.com/r/{style}/{name}.json",
"@ss-components": "https://shadcnstudio.com/r/components/{style}/{name}.json",
"@ss-blocks": "https://shadcnstudio.com/r/blocks/{style}/{name}.json",
"@ss-pages": "https://shadcnstudio.com/r/pages/{style}/{name}.json",
"@ss-themes": "https://shadcnstudio.com/r/themes/{name}.json"
}
For premium, convert entries to objects with "params": { "email": "${EMAIL}", "license_key": "${LICENSE_KEY}" }.
Configure the MCP server — Show the template from
${CLAUDE_PLUGIN_ROOT}/skills/component-search/references/mcp-config-template.json(the officialshadcnserver) and create/update the project's.mcp.json; or runpnpm dlx shadcn@latest mcp init --client claudeInstall the official shadcn skill:
pnpm dlx skills add shadcn/uiAdd CLAUDE.md section — Append the content from
${CLAUDE_PLUGIN_ROOT}/skills/component-search/references/claude-md-section.mdto the project's CLAUDE.mdTest by installing one component from a community registry to verify it works