agentsclimarketplace

Shadcn migration

Skill fusengine/agents/plugins/shadcn-expert/skills/shadcn-migration

Redefining development through cognitive automation and collaborative agent systems.

Install
npx -y skills add fusengine/agents --skill shadcn-migration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Migration guide between Radix UI and Base UI primitives for shadcn/ui. Covers step-by-step migration, API transformations, and validation checklists. Use when: migrating a project between Radix UI and Base UI primitives, or validating a migration's API transformations.

SKILL.md

3.5 KB, as published. Nobody here has run it

shadcn Migration

Agent Workflow (MANDATORY)

Before migration, use TeamCreate to spawn agents:

  1. fuse-ai-pilot:explore-codebase - Inventory all affected components
  2. fuse-ai-pilot:research-expert - Verify migration patterns via Context7

After: Run fuse-ai-pilot:sniper for validation.


Overview

FeatureDescription
Radix -> Base UIMigrate from legacy to new primitives
Base UI -> RadixMigrate to established primitives
API mappingComplete transformation table
ValidationPost-migration checklist

Critical Rules

  1. ALWAYS run detection before starting migration
  2. ALWAYS create backup branch before migration
  3. MIGRATE one component type at a time
  4. UPDATE CSS selectors along with JSX changes
  5. RUN tests after each component migration

Architecture

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


Pre-Migration Checklist

[ ] 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)

Migration Workflow

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

Key API Changes

AspectRadixBase UI
CompositionasChildrender prop
Dialog contentDialogContentDialog.Popup
Dialog overlayDialogOverlayDialog.Backdrop
PositioningBuilt-inSeparate Positioner
Accordion bodyAccordionContentAccordion.Panel
Data attrsdata-state="open"data-[open]
PackageMultiple @radix-ui/*Single @base-ui/react

Best Practices

DO

  • Migrate one component type at a time
  • Run tests after each component migration
  • Update CSS selectors along with JSX
  • Remove unused Radix packages after migration

DON'T

  • Migrate all components at once
  • Skip detection step
  • Leave mixed APIs in production
  • Forget to update data-attribute CSS selectors

Reference Guide

Concepts

TopicReferenceWhen to Consult
Radix -> Base UIradix-to-baseui.mdMigrating from Radix
Base UI -> Radixbaseui-to-radix.mdMigrating to Radix

Templates

TemplateWhen to Use
migration-dialog.mdComplete migration example

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.