ワンクリックで
shadcn-registry
Add or adapt installable shadcn registry items in _cn template repos.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Add or adapt installable shadcn registry items in _cn template repos.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | shadcn-registry |
| description | Add or adapt installable shadcn registry items in _cn template repos. |
Use this skill for installable registry items across all public shadcn registry types, previews, usage docs, and registry dependency metadata. Local AGENTS.md and README.md override this file.
registry/items/**. Do not put installable item source under src/components/ui; that folder is only for the docs app shell.bun --bun ./scripts/new.ts --type registry:ui --name example-card --description "A compact card component."
Use --target for registry:page, registry:file, source-backed custom alias installs such as @ui/ai/prompt-input.tsx, and targeted registry:item files. Use --file-extension for registry:file and targeted registry:item files. Provide font flags for registry:font in noninteractive mode.
| User intent | Type | Folder |
|---|---|---|
| shadcn-style UI component | registry:ui | registry/items/components/<name>/ |
| non-UI component | registry:component | registry/items/components/<name>/ |
| composed UI pattern | registry:block | registry/items/blocks/<name>/ |
| React hook | registry:hook | registry/items/hooks/<name>/ |
| helper module | registry:lib | registry/items/lib/<name>/ |
| app page | registry:page | registry/items/pages/<name>/ |
| explicit target file | registry:file | registry/items/files/<name>/ |
| style metadata | registry:style | registry/items/styles/<name>/ |
| theme metadata | registry:theme | registry/items/themes/<name>/ |
| font metadata | registry:font | registry/items/fonts/<name>/ |
| design system base | registry:base | registry/items/bases/<name>/ |
| universal item | registry:item | registry/items/items/<name>/ |
Use kebab-case folder and file names.
_registry.mdxEach item uses _registry.mdx for YAML frontmatter and optional public MDX Usage. Put interactive previews in sibling _preview.tsx files. Never list _registry.mdx or _preview.tsx in files.
Common frontmatter:
---
name: example-card
type: registry:ui
title: Example Card
description: A compact card component.
---
Dependency fields:
registryDependencies: shadcn primitive names such as button, card, badge, dialog, or input.localRegistryDependencies: other local registry item names.files: required for hooks, libs, blocks, pages, target paths, and multi-file items. Use source paths relative to the item _registry.mdx file, for example path: stats-panel.tsx; the catalog emits shadcn-facing files[].target placeholders automatically for alias-backed item types. One-file registry:ui items may omit it only when the published source is <item-name>.tsx in the item folder. Metadata-only style, theme, font, base, and universal items may omit it.Do not add registry/items/** prefixes or sourcePath frontmatter. The catalog derives the source path from the item folder and authored files[].path.
Minimal usage:
```tsx
import { ExampleCard } from "@/components/ui/example-card";
```
Minimal preview:
"use client";
import { ExampleCard } from "./example-card";
export function Preview() {
return <ExampleCard />;
}
Keep previews client-safe: static data, local state, and events are fine; avoid network calls, auth, server functions, env reads, and app-only providers.
registry:lib files only when that improves install clarity.vp check --fix <touched-files>.bun --bun ./scripts/doctor.ts after registry item changes when Bun is available.vp build before handoff when docs, routes, registry JSON, catalog loading, or source loading changed.