/fuse-shadcn-ui:shadcn-migrationfrom fuse-shadcn-ui
Migrates shadcn/ui projects between Radix UI and Base UI primitives with step-by-step instructions, API transformation tables, and validation checklists.
Ships in fuse-shadcn-ui. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before migration, spawn agents in parallel, one Agent call each with a name:
After: Run fuse-ai-pilot:sniper for validation.
| Feature | Description |
|---|---|
| Radix -> Base UI | Optional: Base UI is the default for new projects since July 2026; Radix is NOT deprecated |
| Base UI -> Radix | Migrate to the Radix base (still fully supported) |
| React Aria | Third base (aria-*, July 2026); no documented migration path to or from it; "existing projects stay on their current base" |
| API mapping | Complete transformation table |
| Validation | Post-migration checklist |
| Need | Command / tool | Source |
|---|---|---|
| Radix -> Base UI, per component | npx skills add shadcn/ui, then ask the agent "migrate accordion to base-ui" (progressive, one commit per component, report in .migration/<component>.md) | changelog 2026-07-base-ui-default |
@radix-ui/react-* -> unified radix-ui | {runner} shadcn@latest migrate radix [path] | /docs/cli#migrate-radix |
clsx + tailwind-merge -> cn package | {runner} shadcn@latest migrate cn [path] (merge engine targets Tailwind v4 like tailwind-merge v3; on Tailwind v3 keep tailwind-merge v2, a clsx-only migration is safe; no components.json needed) | /docs/cli#migrate-cn |
| Physical -> logical classes (RTL) | {runner} shadcn@latest migrate rtl [path] | /docs/cli#migrate-rtl |
| Icon library swap | {runner} shadcn@latest migrate icons --from lucide --to phosphor | /docs/cli#migrate-icons |
| Base color swap | {runner} shadcn@latest migrate base-color --to zinc | /docs/cli#migrate-base-color |
| Keep Radix in non-interactive CI init | {runner} shadcn@latest init -b radix (default base is now base) | changelog 2026-07-base-ui-default |
{runner} shadcn@latest migrate --list prints the available migrations (CLI 4.23.0: cn, icons, base-color, radix, rtl).
Migration order (leaf components first):
1. Tooltip, Switch, Checkbox (simple)
2. Accordion, Tabs (medium)
3. Dialog, Select, Popover, Menu (complex)
-> See migration-dialog.md for complete example
[ ] Run shadcn-detection to confirm current primitive
[ ] Create backup branch (git checkout -b pre-migration)
[ ] Inventory all affected files (Grep for imports)
[ ] Review component-specific API changes
[ ] Plan migration order (leaf components first)
1. DETECT -> Run shadcn-detection skill
2. BACKUP -> Create git branch
3. INVENTORY -> List all affected components
4. TRANSFORM -> Apply API changes per component
5. VALIDATE -> Run tests + sniper check
| Aspect | Radix | Base UI |
|---|---|---|
| Composition | asChild | render prop |
| Dialog content (primitive) | Dialog.Content | Dialog.Popup (shadcn wrapper keeps DialogContent) |
| Dialog overlay (primitive) | Dialog.Overlay | Dialog.Backdrop (wrapper keeps DialogOverlay) |
| Positioning | Built-in | Separate Positioner |
| Accordion body (primitive) | Accordion.Content | Accordion.Panel (wrapper keeps AccordionContent) |
| Accordion single/multi | type="single" collapsible / type="multiple" | defaultValue={[...]} / multiple |
| Raw data attrs | data-state="open" | data-open (Tailwind data-open: variant matches both) |
| Package | radix-ui (or legacy @radix-ui/react-*) | Single @base-ui/react |
| components.json style | radix-* (legacy new-york) | base-* |
| Topic | Reference | When to Consult |
|---|---|---|
| Radix -> Base UI | radix-to-baseui.md | Migrating from Radix |
| Base UI -> Radix | baseui-to-radix.md | Migrating to Radix |
| Template | When to Use |
|---|---|
| migration-dialog.md | Complete migration example |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
shadcn-migration, radix-ui, base-ui, component-migration, cli-migration
5 skills in this plugin
/shadcn-componentsUse when building or editing shadcn/ui components, mapping Base UI vs Radix vs React Aria APIs, or choosing a composition pattern (render vs asChild vs trigger wrapper)./shadcn-detectionUse when determining which component base (Base UI, Radix UI or React Aria) a shadcn/ui project uses, before any component work or migration./shadcn-registriesUse when configuring shadcn/ui registries (namespaced, GitHub, dynamic), components.json, presets, or any shadcn CLI command (init, add, apply, preset, view, search, docs, info, migrate, eject, build, registry).npx claudepluginhub fusengine/claude-plugins --plugin fuse-shadcn-uiOther plugins' skills for the same job