migrate-radix-to-base
Skill by 8starlabs
Migrates React projects and components from Radix UI to Base UI, including shadcn wrappers and their consumers. Built for developers who want to switch a shadcn project's base library or migrate one component at a time.
Install migrate-radix-to-base
Built from the published package, never by AI.
git clone --depth 1 https://github.com/8starlabs/ui /tmp/ui && mkdir -p ~/.claude/skills && cp -r /tmp/ui/.agents/skills/migrate-radix-to-base ~/.claude/skills/migrate-radix-to-baseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/8starlabs/ui /tmp/ui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ui/.agents/skills/migrate-radix-to-base ~/.gemini/antigravity-cli/skills/migrate-radix-to-baseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install migrate-radix-to-base in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an AI assistant through moving React code from Radix UI primitives to @base-ui/react. It covers shadcn ui wrappers, hand-written Radix compositions, and the app code that consumes them. Where a shadcn project has a known style, it prefers the shadcn CLI to fetch the matching base variant and merge the user's customizations onto it. Otherwise it transforms code using mapping reference files for props, parts, and data attributes.
The skill works in two modes. Progressive mode migrates one component at a time and keeps the project buildable at each step. Whole-project mode runs the same work in dependency order, then removes the Radix dependencies. Each component gets a report in a .migration/ folder. It is aimed at developers maintaining React projects that use Radix or shadcn and want a careful, staged move to Base UI.
Written from the project's SKILL.md and checked against it.
What it can do
- Preflight checksReads shadcn info, detects the package manager, requires a clean git tree, and runs a baseline build.
- Golden pair via CLIUses the shadcn registry base variant and a three-way merge to keep user customizations.
- Transformation engineRewrites hand-rolled Radix code using per-family props tables and class-mapping references.
- Progressive migrationMigrates one component at a time, writing a -base file and repointing consumers one at a time.
- Whole-project migrationMigrates wrappers in dependency order, sweeps app code, then removes Radix dependencies.
- Leftover sweepGreps migrated files for radix-ui imports to confirm no Radix references remain.
- Per-component reportsWrites .migration/<component>.md files with changes, behavior changes, and a manual QA checklist.
- Scope protectionLeaves non-Radix libraries such as cmdk, vaul, sonner, and recharts untouched and reports them.
What you need
- A React project
- git with a clean working tree
- shadcn CLI for the golden pair path
- npm, pnpm, yarn, or bun, matching the project's lockfile
Try asking
- Migrate the accordion component from Radix to Base UI
- Migrate my whole project from radix to base-ui
- What wrappers remain on Radix in my ui directory?
Good to know
- Legacy shadcn styles such as new-york get classification only, not a full replay.
- Behavior changes like tabs activation and menu close-on-click are flagged, not patched.
- Some parts have no Base UI equivalent, such as Popover Anchor and NavigationMenu Indicator.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/migrate-radix-to-base/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to migrate-radix-to-base
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migrate-radix-to-base: common questions
Does it change how components look?
For legacy styles, the skill keeps the user's own classes and look. Base variants are used only for prefixed styles like radix-<style>.
Can I migrate one component at a time?
Yes. Progressive mode is the default and writes a -base file, then repoints consumers one at a time.
Does it touch cmdk, vaul, or sonner?
No. The skill states these are not Radix libraries and reports them as intentionally untouched.
How do I install migrate-radix-to-base?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migrate-radix-to-base free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is migrate-radix-to-base safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migrate-radix-to-base?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
