Moai library shadcn

From Asymmetric-al/core · View interactive version

Moai library shadcn is an AI agent skill from the GitHub repository Asymmetric-al/core. Build UI with Core's shadcn/Base UI system. Use for selecting, installing, composing, or customizing shadcn/ui, registry items, themes, and wrappers. Always preserve exact style `base-maia`, Zinc-oriented semantic CSS-variable tokens, and Base UI primitives in shadcn components. Do not use to switch

How to use this skill

Skill file

This repository (Asymmetric-al/core)

These repo-owned sections are intentionally kept on top of the vendored

shadcn skill. If upstream refreshes replace this file, reconcile this overlay

before running bun run skills:sync.

Triggers

items, themes, and wrappers in this repo.

the component base to Radix or React Aria. Prefer Base UI over Radix; a

narrow Radix need goes through review, as packages/ui/AGENTS.md says.

Never run shadcn init. Do not switch Core to

base-nova, base-luma, base-mira, base-rhea, base-sera,

base-vega, base-lyra, a Radix-based style, or a React Aria-based style.

Workflow

  1. Read packages/ui/components.json and confirm style: "base-maia",

tailwind.baseColor: "zinc", tailwind.cssVariables: true.

  1. Run bunx shadcn info --json from packages/ui (never from an app); it

uses the CLI version pinned in the root package.json.

  1. Search existing @asym/ui components before adding anything new.
  2. For registry or generated components, inspect CLI output and its actual

dependencies (take the Base UI build, not Radix), adapt to Maia, and

review the full diff. Never --overwrite without reviewing customizations.

  1. Use Base UI render (not Radix asChild). Prefer semantic tokens over

literal zinc-* or hardcoded colors.

  1. Follow Core design-system lint for

scoped lint, raw-finding review, authoring exceptions, and checking consumers

after shared changes. To fix a specific finding, use the short

fix guide. Preserve other shadcn

guardrails and browser evidence when visible. Do not load this workflow for

unrelated work.

Checklist

dependency without a reviewed need

shadcn/ui in Core

Use this skill whenever selecting, installing, composing, or customizing shadcn/ui in this repo. Use base-ui for primitive API details after this skill.

Rules

Checklist

Example

import { Button } from "@asym/ui/components/shadcn/button";

export function Actions() {
  return (
    <div className="flex gap-2">
      <Button>Save</Button>
      <Button variant="secondary">Cancel</Button>
    </div>
  );
}

Additional resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.