.cursor/skills/base-ui/SKILL.md
# Base UI Primitives - Skill **Name:** `base-ui` **Purpose:** Build accessible, composable UI with `@base-ui/react` primitives and project styling tokens. Use this when creating or refining unstyled primitive components and behavior-heavy UI. **Applies when:** Building overlays, menus, form controls, or custom component APIs with Base UI. **Do not use when:** You are using copied-in shadcn components as the primary implementation path (use `moai-library-shadcn` first). ## Rules - **Docs firs
npx skillsauth add asymmetric-al/core .cursor/skills/base-uiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Name: base-ui
Purpose: Build accessible, composable UI with @base-ui/react primitives and project styling tokens.
Use this when creating or refining unstyled primitive components and behavior-heavy UI.
Applies when: Building overlays, menus, form controls, or custom component APIs with Base UI.
Do not use when: You are using copied-in shadcn components as the primary implementation path (use moai-library-shadcn first).
@base-ui/react is present in the target workspace package.json.cn, tokens, Tailwind).type FieldShellProps = {
label: string;
error?: string;
children: React.ReactNode;
};
export function FieldShell({ label, error, children }: FieldShellProps) {
return (
<div className="grid gap-1.5">
<span className="text-sm font-medium">{label}</span>
{children}
{error ? <p className="text-sm text-destructive">{error}</p> : null}
</div>
);
}
When docs examples rely on Tailwind v4-only utilities,
replace them with equivalent v3-safe utilities before commit.
development
Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.
testing
Use when CI tests fail on main branch after PR merge, or when investigating flaky test failures in CI environments
tools
Use when new translation keys are added to packages to generate new translations strings
data-ai
Pointer to the canonical agent instruction and skill system for this monorepo