Agents
Give AI coding tools the right context for using and authoring this registry.
This template is designed to work well with coding agents and LLM-powered tools. It exposes Markdown-first routes for reading context, and it ships an installable Agent Skill for authoring registry items correctly.
Install the Registry Skill
Install the _cn registry authoring skill from the upstream template:
npx skills add jakejarvis/_cn --skill shadcn-registryForks can install the same skill from their own repository:
npx skills add <owner>/<repo> --skill shadcn-registryAfter installing the skill, ask for registry work directly:
- "add a button component to the registry"
- "adapt this modal from my app into a reusable registry component"
- "add a reusable hook to the registry"
- "turn this dashboard section into a registry block"
The skill covers all public registry item types, previews, usage docs, dependency metadata, and the scaffold command for creating new items non-interactively.
Point Agents At Markdown
The generated /llms.txt route gives AI tools a compact map of the docs, registry catalog, and item pages.
Use /llms-full.txt when a tool needs expanded context with generated Markdown content inlined.
Every docs page, the registry catalog, and each registry item also has a Markdown route:
Inspired by Fumadocs, "human" permalinks support Markdown content negotiation too. AI clients can request text/markdown, text/x-markdown, or text/plain in the Accept header on pages like /docs or /components/example-card and receive Markdown without changing URLs.
Recommended Agent Workflow
For registry authoring tasks, agents should:
- Read
AGENTS.md, this docs section, and/llms.txtor/llms-full.txtfor project context. - Use the
shadcn-registryskill when available. - Scaffold new items with
bun --bun ./scripts/new.ts --type <type> --name <kebab-name> --description "<description>". - Add
--targetforregistry:page,registry:file, custom alias installs like@ui/ai/<file>.tsx, and targetedregistry:itemfiles; use--file-extensionforregistry:fileand targetedregistry:itemfiles. - Edit the generated source,
_registry.mdx, and_preview.tsxwith usage docs, previews, and dependency metadata. - Run
vp check --fixon touched files,bun --bun ./scripts/doctor.ts, andvp buildbefore handoff when docs, routes, registry JSON, catalog loading, or source loading changed.