In short.
migrate-radix-to-base is an AI coding skill for React teams replacing Radix UI with Base UI, but its files disagree on several migration details. Its useful features include preserving wrapper customizations, migrating application call sites and recording behavior changes component by component. Tooltip settings, avatar delay placement and some positioning guidance need reconciliation before use. Migration success, build compatibility and browser behavior have not been assessed through execution.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises all ten captured Markdown files in skills/migrate-radix-to-base: SKILL.md, class-mapping.md, consumer-props.md, disclosure.md, display-misc.md, form-controls.md, menus.md, overlays.md, universal-patterns.md and wrapper-shapes.md, at revision dd41d19e2f80ff6891951f7ced74c2c9a650b065. The repository LICENSE.md is included as the related licence notice. Other folders, linked documentation, registry payloads and installed dependency files are excluded. No commands or code were executed; migration outcomes, builds, accessibility and browser behavior remain untested.
The overview
Identity
The resource is a Markdown instruction skill in the shadcn-ui/ui repository. Its entry point is SKILL.md, accompanied by nine reference files covering migration patterns, component families, styling and consumer props. The original address is [https://github.com/shadcn-ui/ui/tree/main/skills/migrate-radix-to-base].
It directs a coding agent to change existing React source files and dependencies. The selected files provide instructions and examples rather than a standalone migration executable.
Assessment
The skill offers a useful structure for a supervised migration. It treats application code, custom styles and interaction changes as part of the job, extending beyond replacing component imports.
Its strongest documented route uses matching Radix and Base shadcn templates to preserve project customizations. However, contradictory reference entries make unattended use difficult to justify. The supplied material does not establish migration accuracy, completion time or behavior preservation.
Users
The intended users maintain React projects with shadcn wrappers, customized Radix compositions or direct Radix primitive usage. It supports both individual-component requests and explicitly requested whole-project migrations.
Developers familiar with React props, TypeScript, Git and CSS state selectors are better positioned to resolve its edge cases. Beginners can follow the migration sequence, but interpreting merge conflicts, focus callbacks and interaction differences will usually require experienced help.
Capabilities
The references cover overlays, menus, disclosure components, form controls and display primitives. They address renamed parts, changed component nesting, callback signatures, controlled values, CSS variables, state selectors and animation hooks.
The skill distinguishes untouched stock wrappers from customized ones, supports gradual migration through temporary component-base.tsx files, and requires application call sites to be updated separately. It also documents plain HTML or CSS replacements for utilities such as Label, AspectRatio and VisuallyHidden.
The default scope excludes cmdk, vaul, sonner, input-otp, react-day-picker and recharts. Separate vaul drawer guidance is marked as requiring an explicit additional request.
Using it
Requirements
The documented process assumes an existing React project, editable source files, Git, the project's package manager and working typecheck or build commands. It calls for a clean Git tree, a working branch and a baseline check before dependency changes.
The preferred shadcn route requires the CLI and access to registry component templates. Unspecified mappings require inspection of installed @base-ui/react type definitions. Minimum React, Node.js and Tailwind versions are not stated, and no compatible-agent list is supplied.
Mechanism
For supported shadcn styles, the agent compares a project wrapper with its original registry template. It then uses the matching Base template directly for untouched wrappers or applies the project's customizations through a three-way merge. Application consumers still require individual prop and import changes.
Progressive migration keeps the original wrapper while callers move to a temporary Base version. The process finalizes the replacement after all callers have moved and postpones removing Radix dependencies until the final component.
Legacy styles such as new-york and default have no matching Base style in the documented strategy. Their existing files are transformed while retaining classes. The skill flags that future CLI additions may still generate Radix components unless the user changes that arrangement.
Setup
Keep SKILL.md and all nine sibling references together because the entry point depends on their mappings. Installation into a particular coding-agent host is not documented in the selected files.
The prescribed project preparation starts with npx shadcn@latest info --json or the project's equivalent runner, detects the existing package manager, records baseline failures and installs @base-ui/react alongside Radix. Component dependencies determine migration order; a component that still relies on an unmigrated wrapper should wait for that dependency.
Example
An illustrative, unexecuted case is a single-open accordion. The references change Accordion.Content to Accordion.Panel, remove type="single", and convert a controlled string value into an array. Its change handler must account for an array value and the additional event-details argument.
In progressive mode, the migrated wrapper first lives in accordion-base.tsx while callers move individually. A behavior difference needs attention: Base UI single mode is always collapsible, whereas a Radix accordion may forbid closing its last open item. The skill requires such differences to be flagged.
Assessment & evidence
Limitations
The tooltip guidance conflicts directly. consumer-props.md says the skip-delay concept and disableHoverableContent have no equivalent. overlays.md instead maps skipDelayDuration to Provider.timeout and disableHoverableContent to Root.disableHoverablePopup. These instructions cannot both be applied as written.
consumer-props.md places the delayMs rename on Avatar.Image, while display-misc.md places it on Avatar.Fallback. form-controls.md illustrates slider inversion with DirectionProvider dir="rtl", while SKILL.md and consumer-props.md specify the provider's direction prop.
Popover Anchor guidance also differs: SKILL.md prescribes an inert passthrough with a warning, while overlays.md describes using Positioner.anchor. Broad class rewrites have component-specific exceptions: accordion triggers use data-panel-open, and accordion parts do not expose the general data-closed hook.
These examples require reconciliation against the installed package and the intended behavior. No migration, typecheck, build or browser interaction was executed, so practical reliability remains unknown.
Why the approach matters
A wrapper can compile while its callers still use incompatible value shapes, removed props or changed defaults. The separate consumer sweep addresses this problem through examples such as nullable Select values, array-based Accordion values and renamed Slider commit callbacks.
The resource also identifies failures that typechecking can miss. Positioning props may land on Popup instead of Positioner, and a conflict-free three-way merge may retain Radix code. These warnings explain the need for import scans and browser checks alongside compiler checks.
The documented mechanisms support its value as a migration checklist. They do not establish measured improvements in speed or correctness.
Alternatives
For an untouched shadcn wrapper with a matching Base style, the documented CLI replacement route supplies the wrapper implementation; application callers still need migration. Customized wrappers instead use a template merge, while legacy styles and hand-written components require direct transformation.
A developer could perform those transformations manually using the references and installed type definitions. The supplied material contains no comparative results showing whether agent-guided migration is faster or more reliable than manual work or another migration tool.
Evidence
universal-patterns.md attributes its mappings to differences between 61 registry component pairs, radix-ui 1.4.3 exports and Base UI documentation for @base-ui/react 1.6.0. Other references describe documentation checks and inspection of installed type definitions. These are statements made by the resource's authors.
The selected files contain examples, caveats and corrections, but no accompanying execution logs or benchmark results establishing migration performance. The captured entry point is [https://raw.githubusercontent.com/shadcn-ui/ui/dd41d19e2f80ff6891951f7ced74c2c9a650b065/skills/migrate-radix-to-base/SKILL.md].
Access & freshness
Costs
The supplied MIT licence grants reuse rights without a licence charge. It does not establish the total cost of using a coding agent to perform a migration.
Agent subscriptions, model charges, token consumption, developer effort and migration duration are unknown. The selected files provide no cost measurements or estimates.
Rights
The supplied repository licence is MIT, with copyright attributed to shadcn in 2023. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The licence provides the material without warranty. It does not establish the licence terms of dependencies or registry content acquired separately. The captured notice is available at [https://raw.githubusercontent.com/shadcn-ui/ui/dd41d19e2f80ff6891951f7ced74c2c9a650b065/LICENSE.md].
Version context
The supplied snapshot was captured on November 12, 2026, at repository revision dd41d19e2f80ff6891951f7ced74c2c9a650b065. Several references date their documentation acquisition or construction to July 2, 2026, and identify Base UI 1.6.0 as their reference version.
The prescribed preflight uses shadcn@latest, and wrapper-shapes.md explicitly asks users to recheck exact tooltip offsets against the current registry. Compatibility with later dependency versions and current registry output is unknown.
Practical next steps
Before applying the skill, reconcile the conflicting mappings against the project's installed Base UI definitions. Choose a component whose shared dependencies are already migrated, record baseline build results and preserve its existing customizations.
Follow the documented progressive route, check each affected consumer and inspect the result in a browser. Relevant manual checks include dialog focus return, menu keyboard navigation and typeahead, tooltip timing, slider commit events and popup placement.
Keep the prescribed component report in .migration, record skipped files and behavior differences, and derive the remaining Radix-wrapper count from source files. Remove Radix dependencies only after the final component and application-code sweep.
