.cursor/skills/moai-library-shadcn/SKILL.md
# shadcn/ui Design System - Skill **Name:** `moai-library-shadcn` **Purpose:** Build consistent, accessible UI using shadcn/ui components, tokens, and composable primitives. Use this skill whenever selecting, installing, composing, or customizing shadcn/ui in this repo. **Applies when:** Working with shadcn/ui components, Tailwind tokens/themes, registry items, or component wrappers. **Do not use when:** The UI is intentionally built only with Base UI primitives (use `base-ui` first). ## Rule
npx skillsauth add asymmetric-al/core .cursor/skills/moai-library-shadcnInstall 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: moai-library-shadcn
Purpose: Build consistent, accessible UI using shadcn/ui components, tokens, and composable primitives.
Use this skill whenever selecting, installing, composing, or customizing shadcn/ui in this repo.
Applies when: Working with shadcn/ui components, Tailwind tokens/themes, registry items, or component wrappers.
Do not use when: The UI is intentionally built only with Base UI primitives (use base-ui first).
components/ui/* as owned project code with stable conventions.asChild intentionally, and avoid boolean-prop explosion.components/ui/*.components/ui/*.cn() and variants are consistent with existing patternsasChild and composition semantics are correctcomponents/ui/*import { Button } from "@/components/ui/button";
export function Actions() {
return (
<div className="flex gap-2">
<Button>Save</Button>
<Button variant="secondary">Cancel</Button>
</div>
);
}
import { Button } from "@/components/ui/button";
type LoadingButtonProps = React.ComponentProps<typeof Button> & {
loading?: boolean;
};
export function LoadingButton({
loading,
children,
...props
}: LoadingButtonProps) {
return (
<Button disabled={loading} {...props}>
{children}
</Button>
);
}
docs/ai/skills/base-ui/SKILL.mddocs/ai/skills/base-ui/reference-links.mddevelopment
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