shadcn-core-registry

Resolve shadcn UI registry namespaces into validated components.json and registry.json items.

Updated May 19, 2026
One-click install
npx skills add https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package --skill shadcn-core-registry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn-core-registry
Source: https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package/tree/main/skills/source/shadcn-core/shadcn-core-registry
Command: npx skills add https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package --skill shadcn-core-registry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents failed or inconsistent shadcn UI installs caused by incorrect components.json registry configuration, especially around immutable fields, namespace URL templates, alias mapping, env-var expansion, and Tailwind v3 vs v4 token shapes.

Core Features & Use Cases

  • components.json registry correctness: Covers every key in components.json that affects registry resolution and installation behavior, including constraints, defaults, and immutability after init.
  • URL template & namespace resolution: Explains the required {name} placeholder (and optional {style}), how the CLI materializes templates, and how it validates registry item JSON.
  • Secure, production-ready custom registries: Guides safe header/params configuration using ${ENV_VAR} expansion to avoid committed secrets, and details registry.json hosting and item type schemas for publishers.

Quick Start

In a custom or private components.json, define the registries entry using a URL template that includes {name}, use ${ENV_VAR} for any secrets in headers, and keep style, tailwind.baseColor, and tailwind.cssVariables aligned before running init and add.

Frequently Asked Questions about shadcn-core-registry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a custom shadcn registry in components.json?

To configure a custom shadcn registry, define the `registries` entry in components.json using a URL template that includes the required `{name}` placeholder. This template allows the CLI to resolve namespaces into validated registry items and write files to the proper aliases.

Why does my shadcn UI installation fail when adding a custom component namespace?

shadcn UI installation failures often stem from incorrect components.json configuration, such as missing the `{name}` placeholder in URL templates, improper alias mapping, or immutable field conflicts. Template placeholders and env-var expansion must be strictly enforced to resolve namespaces correctly.

How do I use environment variables for secure authentication in a private shadcn registry?

Use `${ENV_VAR}` interpolation within the `headers` and `params` fields of your components.json registry configuration. This environment variable expansion avoids committing secrets directly to source control while enabling secure, production-ready access to private or paid registries.

Does the shadcn registry format support both Tailwind v3 and v4 token shapes?

Yes, the shadcn registry format supports both Tailwind v3 and v4, but you must ensure `style`, `tailwind.baseColor`, and `tailwind.cssVariables` are correctly aligned before running init. Token mismatches between versions are a common source of install failures.

What is the correct schema for hosting my own shadcn registry.json file?

Hosting your own shadcn registry requires generating public `r/*.json` files that adhere to the registry item type and file target schemas. You must enforce proper content negotiation expectations and use correct `{name}` placeholder usage within your immutable style and theme token generation.

Which fields in components.json are immutable after running shadcn init?

Fields determining style and theme token generation, specifically `style`, `tailwind.baseColor`, and `tailwind.cssVariables`, are immutable after initialization. Modifying these decision constraints post-init causes registry resolution errors and inconsistent component installation behavior.