base-ui
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, migrate, or debug React interfaces that use Base UI (`@base-ui/react`) unstyled accessible primitives. Use when the user asks about Base UI docs, component anatomy, styling, composition, render props, forms, dialogs, drawers, popovers, menus, selects, comboboxes, autocomplete, tabs, toast, accessibility, TypeScript wrapper types, or replacing lower-level UI primitives with Base UI.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- gandolh/my-personal-skillstheir own version, first seen Nov 29, 2026
- Jbmanllr/agent-skillstheir own version, first seen Nov 29, 2026
- fedeya/wisp-aitheir own version, first seen Nov 29, 2026
- alainkaiser/skillstheir own version, first seen Aug 4, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- fedeya/wisp-ai★ 8same name
- alainkaiser/skills★ 2same name
- Jbmanllr/agent-skills★ 2same name
- gandolh/my-personal-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 5 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use Base UI as an unstyled, accessible React primitive layer.
- Distinctive: line 15
Read the relevant reference before implementing:
- Distinctive: line 21
Verify keyboard behavior, focus return, accessible names, controlled/uncontrolled state, portal layering, animation exit behavior, and …
- Very specific: line 25
Import components from subpaths such as @base-ui/react/dialog, @base-ui/react/popover, and @base-ui/react/field.
- Very specific: line 27
Treat Base UI as unstyled.
- Very specific: line 28
Keep accessible names explicit.
- Very specific: line 30
Prefer uncontrolled components unless the product needs external state.
- Very specific: line 31
Use Base UI event details deliberately.
- Distinctive: line 32
Do not copy Tailwind v4-only syntax blindly into Tailwind v3 projects.
- Distinctive: line 33
Add portal setup when the app lacks it: isolate the app root and handle the iOS 26+ backdrop requirement described in the core patterns …
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Base UI
Overview
Use Base UI as an unstyled, accessible React primitive layer. Keep semantics, focus, labels, keyboard behavior, and styling hooks intact while adapting the parts to the host app's design system.
Workflow
- Confirm the installed package and version from the project before changing code. Use
@base-ui/react, not the retired@base-ui-components/reactpackage name. - Read the relevant reference before implementing:
- references/source-map.md: current docs sources, package status, and component inventory.
- references/core-patterns.md: setup, styling, composition, state, TypeScript, animation, accessibility, and utilities.
- references/component-patterns.md: common component anatomy and implementation notes by component family.
- Fetch current official docs when exact prop names, event reasons, release behavior, or component APIs matter. Prefer Context7 library
/mui/base-ui, Exa, or the page's.mdURL fromhttps://base-ui.com/llms.txt. - Build from Base UI parts first, then wrap with local design-system components only through the documented
renderprop or thin wrappers that preserve props and refs. - Verify keyboard behavior, focus return, accessible names, controlled/uncontrolled state, portal layering, animation exit behavior, and responsive/mobile behavior.
Implementation Rules
- Import components from subpaths such as
@base-ui/react/dialog,@base-ui/react/popover, and@base-ui/react/field. - Assemble the documented compound parts instead of inventing shortcuts. Most complex components need
Root, triggers, portals, positioners or viewports, popups, labels/titles/descriptions, and close/actions parts. - Treat Base UI as unstyled. Apply local styling via
className, state-awareclassNamefunctions,style, data attributes, and CSS variables. - Keep accessible names explicit. Use
Field.Label, component-specific labels, native labels, oraria-label/aria-labelledbydepending on the control. - Preserve custom component composition rules: custom rendered elements must forward refs and spread all received props onto the underlying DOM element.
- Prefer uncontrolled components unless the product needs external state. Control with
open/valueplus the matchingonOpenChange/onValueChangehandler. - Use Base UI event details deliberately.
eventDetails.cancel()cancels internal state updates;eventDetails.allowPropagation()allows a normally stopped DOM event to bubble. - Do not copy Tailwind v4-only syntax blindly into Tailwind v3 projects. Convert unsupported utilities when the host project is on Tailwind v3.
- Add portal setup when the app lacks it: isolate the app root and handle the iOS 26+ backdrop requirement described in the core patterns reference.
Verification Checklist
- The rendered markup has the intended roles, labels, disabled states, and focus-visible styles.
- Keyboard navigation covers arrows, Home/End, Enter/Space, Escape, tab order, and focus return where relevant.
- Popup/drawer/dialog layers appear above the app and close correctly by trigger, close button, Escape, outside interaction, and route/unmount transitions.
- Form controls submit the intended names/values and surface native, server, or external-library validation errors.
- Animations use
data-starting-styleanddata-ending-styleorkeepMountedcorrectly, and reduced-motion or no-motion behavior remains usable. - TypeScript wrappers expose the correct
Component.Part.Propstypes and do not drop refs, handlers, or data attributes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

