Expert guide for ShadCN UI component library with Next.js. An agent skill from mikeOnBreeze/cc-crossbeam.

MITAuto-check passedFrontend & Design

Install Shadcn

skills CLI
$ npx skills add mikeOnBreeze/cc-crossbeam --skill shadcn -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mikeOnBreeze/cc-crossbeam shadcn --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mikeOnBreeze/cc-crossbeam.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/shadcn .claude/skills/shadcn && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
shadcn
GitHub stars
293
Token cost
~1.2k tokens
SKILL.md length
333 words
Files
6 (incl. references)
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Expert guide for ShadCN UI component library with Next.js. An agent skill from mikeOnBreeze/cc-crossbeam.

  • Works in 5 steps: Use Variants - Never hardcode styles;… → CSS Variables - Theme with CSS variables… → Composition - Build complex UIs by… → …
  • Working with ShadCN/UI projects including
  • SKILL.md covers Core Philosophy, ⚠️ Critical: Tailwind v4 Color…, Quick Reference and Core Principles, plus 6 more sections
  • Calls npx

What it does

Shadcn is an agent skill from mikeOnBreeze/cc-crossbeam. Expert guide for ShadCN UI component library with Next.js. Use when working with ShadCN/UI projects including (1) Initial setup and configuration, (2) Adding and customizing components, (3) Theming and styling patterns, (4) Avoiding common mistakes like hardcoding styles instead of using variants/design tokens. Critical for maintaining consistent, reusable component patterns instead of one-off hardcoded implementations.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/common-mistakes.md`, `references/component-patterns.md` and `references/setup-guide.md`).

It sits in Frontend & Design, covering Design systems, Theming and dark mode and Design tokens. It works with shadcn/ui, Next.js and Tailwind CSS. The repository describes itself as: CrossBeam Permits — AI-assisted building-permit plan review for cities and builders. The licence is MIT.

When your agent uses it

  • Working with ShadCN/UI projects including
  • Initial setup and configuration
  • Adding and customizing components
  • Theming and styling patterns

Example prompts

  • “/shadcn”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Use Variants - Never hardcode styles; always create/use component variants
  2. CSS Variables - Theme with CSS variables in globals.css, not hardcoded colors
  3. Composition - Build complex UIs by composing simple components
  4. cn() Utility - Always use cn() from lib/utils.ts for conditional classes
  5. Own Your Code - Components live in your repo; modify them as needed

What it can do on your machine

Read from SKILL.md and the folder at commit cc5591e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • ui.shadcn.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Shadcn loads about 1.2k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 333 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mikeOnBreeze/cc-crossbeam at commit cc5591e, republished under its MIT licence (© mikeOnBreeze). 333 words, ~1,179 tokens.

Download SKILL.mdSave it as .claude/skills/shadcn/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
shadcn
description
Expert guide for ShadCN UI component library with Next.js. Use when working with ShadCN/UI projects including (1) Initial setup and configuration, (2) Adding and customizing components, (3) Theming and styling patterns, (4) Avoiding common mistakes like hardcoding styles instead of using variants/design tokens. Critical for maintaining consistent, reusable component patterns instead of one-off hardcoded implementations.

ShadCN UI Expert Guide

Core Philosophy

ShadCN UI is NOT a traditional component library - it's a code distribution system that copies source code directly into your project at components/ui/. You own and control the code completely.

Critical Rule: Always use CSS variables and component variants for styling. NEVER hardcode styles directly in components. This maintains consistency across your design system.

⚠️ Critical: Tailwind v4 Color Issue

If colors aren't showing up in Tailwind v4, you need to wrap CSS variables with hsl():

css
/* ❌ WRONG - Colors won't work */
@theme inline {
  --color-primary: var(--primary);
}

/* ✅ CORRECT - Wrap with hsl() */
@theme inline {
  --color-primary: hsl(var(--primary));
}

ShadCN stores HSL channels as raw values (28 100% 50%). Tailwind v4's @theme inline needs hsl() wrapper to recognize them as colors.

See theming-guide.md for full details.

Quick Reference

Initial Setup
bash
npx shadcn@latest init        # Interactive setup
npx shadcn@latest init -d     # Use defaults (recommended)
Adding Components
bash
npx shadcn@latest add button card dialog

Components install to components/ui/[component-name].tsx

Import & Use
tsx
import { Button } from "@/components/ui/button"

<Button variant="default" size="lg">Click me</Button>

Core Principles

  1. Use Variants - Never hardcode styles; always create/use component variants
  2. CSS Variables - Theme with CSS variables in globals.css, not hardcoded colors
  3. Composition - Build complex UIs by composing simple components
  4. cn() Utility - Always use cn() from lib/utils.ts for conditional classes
  5. Own Your Code - Components live in your repo; modify them as needed

Detailed Documentation

For comprehensive guides and examples, read these reference files:

Quick Anti-Patterns

❌ Wrong
tsx
// Hardcoded styling
<Button className="bg-blue-600 text-white px-8">Submit</Button>

// Arbitrary overrides
<Button className="!bg-red-500 !text-lg">Click</Button>

// Duplicated code
<button className="rounded-lg bg-primary px-4 py-2">Save</button>
✅ Correct
tsx
// Use variants
<Button variant="primary" size="lg">Submit</Button>

// Create new variant in components/ui/button.tsx
variants: {
  variant: {
    danger: "bg-destructive text-destructive-foreground"
  }
}

// Use component system
<Button>Save</Button>

File Structure

project/
├── components/
│   ├── ui/              # ShadCN components (YOU OWN)
│   │   ├── button.tsx
│   │   ├── card.tsx
│   │   └── ...
│   └── custom/          # Your extensions
├── lib/
│   └── utils.ts         # cn() utility
├── app/
│   └── globals.css      # Theme CSS variables
└── components.json      # ShadCN config

Search the official docs for:

  • Specific component API details
  • New/updated component examples
  • Advanced composition patterns
  • Latest features or changes

Example: shadcn ui [component-name] examples

Server vs Client Components

  • Server Components (no "use client"): Card, Badge, Typography, Separator
  • Client Components (has "use client"): Dialog, Dropdown, Sheet, Form

Interactive components automatically include the directive.

Key Reminders

  • Components don't auto-update; manually re-add or update them
  • Always use the theming system - never hardcode colors or spacing
  • Build reusable patterns with variants, not one-off implementations
  • Use composition to build complex UIs from simple pieces
  • Official docs: https://ui.shadcn.com

© mikeOnBreeze, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in .claude/skills/shadcn of mikeOnBreeze/cc-crossbeam.

  • SKILL.md
  • references/common-mistakes.md
  • references/component-patterns.md
  • references/setup-guide.md
  • references/theming-guide.md
  • references/variant-creation.md

Open the folder on GitHubat commit cc5591e

Compare with similar skills

Shadcn next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Shadcn compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Shadcn this skillmikeOnBreeze/cc-crossbeam293—~1.2kAutomated safety check: PassMIT
UI Design Systemtry-works/role-model118—~5kAutomated safety check: PassMIT
Shadcn Tailwind UILiarMTTT/TavernWeave154—~1.7kAutomated safety check: PassCustom licence
Tailwind V4 Shadcnever-works/ever-works1622 repos~3.8kAutomated safety check: PassMIT
Tailwind ShadcnBlackBeltTechnology/pi-agent-dashboard315—~1.2kAutomated safety check: PassMIT
Tailwind V4 Shadcnaiskillstore/marketplace4331 repos~4.8kAutomated safety check: PassNone

Similar skills

  • UI Design System

    try-works/role-model

    React UI component systems with TailwindCSS + Radix + shadcn/ui.

    118 GitHub stars~5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Shadcn Tailwind UI

    LiarMTTT/TavernWeave

    Build, restyle, or review accessible React interfaces that use shadcn/ui, Radix UI primitives, and Tailwind CSS.

    154 GitHub stars~1.7k tokensUpdated 6 days ago
    Frontend & DesignAuto-check passed
  • Tailwind V4 Shadcn

    ever-works/ever-works

    Production-tested setup for Tailwind CSS v4 with shadcn/ui, Vite, and React.

    162 GitHub starsUsed in 2 repos~3.8k tokens
    Frontend & DesignAuto-check passed
  • Tailwind Shadcn

    BlackBeltTechnology/pi-agent-dashboard

    Tailwind CSS utility patterns with shadcn/ui component usage, theming via CSS variables, and responsive design.

    315 GitHub stars~1.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Tailwind V4 Shadcn

    aiskillstore/marketplace

    Set up Tailwind v4 with shadcn/ui using @theme inline pattern and CSS variable architecture.

    433 GitHub starsUsed in 1 repo~4.8k tokens
    Frontend & DesignAuto-check passed
  • Tailwind Design System

    giuseppe-trisciuoglio/developer-kit

    Skill for creating and managing a Design System using Tailwind CSS and shadcn/ui.

    357 GitHub stars~2.4k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check: notes

More from mikeOnBreeze/cc-crossbeam

All 20 skills in this repo
  • Adu PDF Extraction

    mikeOnBreeze/cc-crossbeam

    This skill extracts construction PDF plan binders into agent-consumable formats.

    293 GitHub stars~5k tokensUpdated 7 mo ago
    Auto-check passed
  • Adu Targeted Page Viewer

    mikeOnBreeze/cc-crossbeam

    Extracts construction plan PDFs into page PNGs, reads the sheet index to build a sheet-to-page manifest, and enables targeted viewing of specific sheets.

    293 GitHub stars~1.8k tokensUpdated 7 mo ago
    Auto-check passed
  • Fal AI

    mikeOnBreeze/cc-crossbeam

    This skill enables AI video generation from images AND text-to-speech voiceover generation using Fal.ai's API.

    293 GitHub stars~1.9k tokensUpdated 7 mo ago
    Auto-check: notes
  • Nano Banana

    mikeOnBreeze/cc-crossbeam

    This skill enables image generation and editing using Google's Gemini Nano Banana models.

    293 GitHub stars~944 tokensUpdated 7 mo ago
    Auto-check: notes
  • Adu City Research

    mikeOnBreeze/cc-crossbeam

    Researches city-level ADU regulations, municipal codes, and standard details for any California city.

    293 GitHub stars~3.9k tokensUpdated 7 mo ago
    Auto-check passed
  • Adu Plan Review

    mikeOnBreeze/cc-crossbeam

    City-side ADU plan review — the flip side of adu-corrections-flow.

    293 GitHub stars~3.7k tokensUpdated 7 mo ago
    Auto-check passed

Questions about Shadcn

What does Shadcn do?

Expert guide for ShadCN UI component library with Next.js. An agent skill from mikeOnBreeze/cc-crossbeam. Shadcn is an agent skill from mikeOnBreeze/cc-crossbeam.js.

When should I use Shadcn?

Shadcn fits situations like: working with ShadCN/UI projects including; initial setup and configuration; adding and customizing components; theming and styling patterns.

How do I install Shadcn in Claude Code?

Run `npx skills add mikeOnBreeze/cc-crossbeam --skill shadcn -a claude-code`. Or copy the skill folder (.claude/skills/shadcn in mikeOnBreeze/cc-crossbeam) into .claude/skills/shadcn in your project. Claude Code loads it when a task matches its description.

How do I install Shadcn in Codex?

Run `npx skills add mikeOnBreeze/cc-crossbeam --skill shadcn -a codex`. Or copy the skill folder (.claude/skills/shadcn in mikeOnBreeze/cc-crossbeam) into .agents/skills/shadcn in your project. Codex loads it when a task matches its description.

Can I use Shadcn in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mikeOnBreeze/cc-crossbeam --skill shadcn -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/shadcn, .gemini/skills/shadcn, .github/skills/shadcn and .opencode/skills/shadcn in your project.

What does Shadcn need to run?

Going by SKILL.md and its folder, Shadcn needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Shadcn access the network?

SKILL.md names 1 domain. As links in the text: ui.shadcn.com. This is read from the text; nothing was executed.

Is Shadcn safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Shadcn use?

Shadcn is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Shadcn use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.

What are the alternatives to Shadcn?

Skills that share tags, products or a category with Shadcn: UI Design System (try-works/role-model, 118 stars), Shadcn Tailwind UI (LiarMTTT/TavernWeave, 154 stars), Tailwind V4 Shadcn (ever-works/ever-works, 162 stars) and Tailwind Shadcn (BlackBeltTechnology/pi-agent-dashboard, 315 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Shadcn?

mikeOnBreeze (a GitHub user) maintains it in mikeOnBreeze/cc-crossbeam, which has 293 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on March 2, 2026.

Source: mikeOnBreeze/cc-crossbeam on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.