shadcn-ui
Skill by strapi
Guides adding and customizing shadcn/ui components in the apps/ui Next.js monorepo. It is for developers who need components to follow the repo's existing conventions.
Install shadcn-ui
Built from the published package, never by AI.
git clone --depth 1 https://github.com/strapi/website /tmp/website && mkdir -p ~/.claude/skills && cp -r /tmp/website/.agents/skills/shadcn-ui ~/.claude/skills/shadcn-uiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/strapi/website /tmp/website && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/website/.agents/skills/shadcn-ui ~/.gemini/antigravity-cli/skills/shadcn-uiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives an AI assistant repo-specific guidance for shadcn/ui components in the apps/ui Next.js monorepo. It tells the assistant to read the components.json, package.json, styles.ts and globals.css files first, then run the shadcn CLI with pnpm dlx from apps/ui. The skill covers the post-install fixes to check, such as the cn() import path in @/lib/styles, the use of the radix-ui package, Tailwind v4 CSS variables, and the "use client" directive.
The skill also lists common pitfalls. It says not to use a tailwind.config.js file, not to install duplicate Radix primitives, and to prefer existing design tokens over shadcn defaults. Validation uses the pnpm typecheck and lint commands for @repo/ui. It is written for developers working in this specific monorepo who add, install, customize or troubleshoot shadcn/ui components.
Written from the project's SKILL.md and checked against it.
What it can do
- Component discovery and installRuns the shadcn CLI from apps/ui to add a named component.
- Post-install fixup checklistChecks generated files for wrong cn() paths, scoped Radix imports and missing CSS variables.
- Radix import handlingConverts @radix-ui/react-* imports to the unified radix-ui package when appropriate.
- Tailwind v4 variable checksVerifies that new components use CSS variables defined in globals.css.
- Naming conflict checksLooks for existing files in apps/ui/src/components/ui before adding a component.
- Validation stepsRuns the pnpm typecheck and lint commands for the @repo/ui package.
What you need
- pnpm
- A Next.js monorepo with an apps/ui workspace
- Tailwind CSS v4 setup as described in the repo
Try asking
- Add a tabs component to apps/ui using the shadcn CLI
- Check the newly added button component for the correct cn() import
- Customize the dialog component to use existing theme tokens
Good to know
- Written for the apps/ui monorepo and its specific file paths and conventions
- Does not use tailwind.config.js, so it targets Tailwind v4 CSS-based config only
- Does not force migration between radix-ui, @radix-ui packages or Base UI unless asked
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/shadcn-ui/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to shadcn-ui
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
shadcn-ui: common questions
Does this skill work outside the apps/ui monorepo?
The source is written for this specific monorepo and its apps/ui paths and conventions. It points to official shadcn docs for general details.
Which cn() import should components use?
The source says cn() lives in @/lib/styles, not @/lib/utils. If the CLI generates @/lib/utils, the import should be fixed.
Does it support Tailwind v3 config files?
No. The source says not to assume Tailwind v3 patterns such as tailwind.config.js or @tailwind base blocks.
How do I install shadcn-ui?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shadcn-ui free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shadcn-ui safe to use?
It scores 49 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to shadcn-ui?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
