moai-library-shadcn
БесплатноБез исполняемых скриптовНе проверенBuild UI with Core's shadcn/Base UI system. Use for selecting, installing, composing, or customizing shadcn/ui, registry items, themes, and wrappers. Always…
от Asymmetric-al★ 354 звезды на GitHubОб этом скилле
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
- Use for selecting, installing, composing, or customizing shadcn/ui, registry items, themes, and wrappers in this repo.
- Use together with
packages/ui/AGENTS.mdanddocs/ai/rules/frontend.md. - Do not use to switch styles, run
shadcn init/shadcn create, or switch the component base to Radix or React Aria. Prefer Base UI over Radix; a narrow Radix need goes through review, aspackages/ui/AGENTS.mdsays. Never runshadcn init. Do not switch Core tobase-nova,base-luma,base-mira,base-rhea,base-sera,base-vega,base-lyra, a Radix-based style, or a React Aria-based style.
Workflow
- Read
packages/ui/components.jsonand confirmstyle: "base-maia",tailwind.baseColor: "zinc",tailwind.cssVariables: true. - Run
bunx shadcn info --jsonfrompackages/ui(never from an app); it uses the CLI version pinned in the rootpackage.json. - Search existing
@asym/uicomponents before adding anything new. - 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
--overwritewithout reviewing customizations. - Use Base UI
render(not RadixasChild). Prefer semantic tokens over literalzinc-*or hardcoded colors. - 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
- Exact
base-maia/ Zinc / CSS variables remain unchanged - Shared ownership stays in
packages/ui - Registry output adapted to Core tokens, radii, and primitives
- No
shadcn init, preset-switch or React Aria base, and no new Radix dependency without a reviewed need - Overlay reconciled before
bun run skills:sync
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
- Docs first: Start with reference-links.md, then open the exact component doc before editing.
- Where components live: shadcn components are copied into
packages/ui/components/shadcn/(theuialias@/components/shadcninpackages/ui/components.json) and are first-party code. Apps import them as@asym/ui/components/shadcn/<name>. Shared wrappers and UI SDK behavior wrappers live inpackages/ui/components/primitives/. - No app-local forks: Do not copy a shared component into an app to make a local variation; add a variant, slot, or composition wrapper in
packages/ui. - Prefer install over reinvention: Use CLI/registry install paths for base components, then adapt the output to Maia.
- Behavior primitives stay intact: Keep accessibility and keyboard behavior from the Base UI-backed internals. UI SDK-backed components follow "Choosing a library" in
packages/ui/AGENTS.md. - Tokens over one-offs: Use semantic tokens for color, radius, spacing, and typography; avoid hardcoded one-off styles.
- Composable APIs: Keep props minimal, use Base UI's
renderprop (noasChild), and avoid boolean-prop explosion.
Checklist
- Existing
@asym/uicomponent evaluated before creating a new one - Token-based styling (no unnecessary arbitrary values)
-
cn()and variants consistent with existing patterns -
renderprop and composition semantics correct - Focus, keyboard, labels, descriptions, and light/dark behavior verified
- No duplicate variants that should be shared
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
- Full shadcn docs index: reference-links.md
- Base primitives companion skill:
docs/ai/skills/base-ui/SKILL.md
Установить moai-library-shadcn в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл moai-library-shadcn?
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 styles, run `shadcn init`, or switch the component base to Radix or React Aria. Pair with `packages/ui/AGENTS.md`.
Как установить скилл moai-library-shadcn?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл moai-library-shadcn запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic