base-ui-migrator

base-ui-migrator is a skill for Claude Code, Codex from pproenca/dot-skills. It costs 183 tokens per session (1,891 once invoked), scanned A, original, MIT.

A migration guide and component catalog for replacing custom React interface elements or other component libraries with Base UI, an unstyled React component library.

In plain words
What is it for?
Use it when moving React code from bespoke controls, Radix UI, Headless UI, Reach UI, or react-aria to Base UI.
Why use it?
It helps map modals, menus, dropdowns, popovers, tooltips, and similar controls to one consistent component system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when moving React code from bespoke controls, Radix UI, Headless UI, Reach UI, or react-aria to Base UI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pproenca/dot-skills/base-ui-migrator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pproenca/dot-skills --skill base-ui-migrator
Clone the repo
git clone --depth 1 https://github.com/pproenca/dot-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for base-ui-migrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/pproenca/dot-skills/base-ui-migrator/github.svg)](https://agentmods.dev/skills/pproenca/dot-skills/base-ui-migrator)
Your own site
<a href="https://agentmods.dev/skills/pproenca/dot-skills/base-ui-migrator"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/base-ui-migrator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for base-ui-migrator

Your own site · 80×15
<a href="https://agentmods.dev/skills/pproenca/dot-skills/base-ui-migrator"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/base-ui-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,891 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00183 $0.01891
Opus 5.5 $0.00073 $0.00756
Sonnet 5.5 $0.00037 $0.00378
Haiku 4.5 $0.00018 $0.00189

Measured 2mo ago against content hash 5acfdd2a474c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

base-ui-migrator scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/fetch-component-doc.sh, scripts/refresh-catalog.sh, scripts/scan-candidates.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| `curl` | Fetch llms.txt + component docs | preinstalled |
skills/.experimental/base-ui-migrator/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Base UI Migrator

Automated workflow that converts bespoke React UI primitives and other component libraries to Base UI (@base-ui/react).

Base UI is the unstyled successor to Radix UI, maintained by the Material UI team and Radix authors. It exposes the same composition model (Root + parts) but with a single canonical API, modern data attributes for state styling, and built-in transitions. This skill knows the full catalog (37 components, snapshotted) and how to map common bespoke patterns to it.

When to Apply

Use this skill when:

  • The user explicitly asks to migrate to Base UI, or to a specific Base UI component.
  • You spot a React file with bespoke overlays — manual modals, dropdown menus built from useState + click-outside hooks, floating UI compositions — that have a Base UI equivalent.
  • The codebase uses Radix UI, Headless UI, Reach UI, or react-aria components — these are 1:1 mappable to Base UI.
  • The user wants to consolidate a fragmented set of UI primitives behind one library.
  • The user wants to scan a directory for migration opportunities.

Do NOT trigger when:

  • The user is starting a fresh project and asks for a UI library recommendation (suggest they install Base UI directly, no migration needed).
  • The user is migrating away from Base UI (out of scope).

Workflow Overview

┌─────────────────────────────────────────────────────────────┐
│ 0. Stale check — is assets/data/llms.txt > 7 days old?      │
│    └─ if yes → scripts/refresh-catalog.sh                   │
├─────────────────────────────────────────────────────────────┤
│ 1. Scan target — scripts/scan-candidates.sh <path>          │
│    Output: JSON {file, line, pattern, suggested_component}  │
├─────────────────────────────────────────────────────────────┤
│ 2. Triage — present candidates to the user, confirm scope   │
│    (write-risk gate: never migrate silently)                │
├─────────────────────────────────────────────────────────────┤
│ 3. Install @base-ui/react if missing                        │
│    └─ Use the project's package manager (autodetected)      │
├─────────────────────────────────────────────────────────────┤
│ 4. Per candidate:                                           │
│    a. Look up references/catalog.md → get component name    │
│    b. Read references/migration-patterns.md (top tier) OR   │
│       fetch-component-doc.sh <component> (cached on disk)   │
│    c. Edit source — replace bespoke with Base UI parts      │
│    d. Preserve existing styling (Tailwind / CSS Modules)    │
├─────────────────────────────────────────────────────────────┤
│ 5. Verify — scripts/verify-migration.sh                     │
│    Runs typecheck + build + flags leftover bespoke patterns │
├─────────────────────────────────────────────────────────────┤
│ 6. Cleanup — uninstall replaced libraries (optional)        │
└─────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 129 lines

Files

What ships with it

51 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 129 lines · 183 tokens per session scan A 5acfdd2a474c

Subscribe to this mod's changes

base-ui-migrator is a skill published in the GitHub repository pproenca/dot-skills (231 stars, last pushed 3mo ago), licensed MIT. It adds 183 tokens to every session and 1,891 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

base-ui-migrator compared with skills from other repositories

base-ui-migrator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
base-ui-migratorpproenca/dot-skillsSkill2313mo agoMITA183Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
tamagui-v6-configtamagui/tamaguiSkill14ktodayMITA76Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14ktodayMITA48Claude Code, Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.3kyesterdayMITA48Claude Code
cobejsMengTo/SkillsSkill8.8k2d agoMITA31Claude Code, Codex
stitch::react-componentsgoogle-labs-code/stitch-skillsSkill15ktodayApache-2.0A43Claude Code