shadcn

shadcn is a skill for Claude Code from compozy/compozy. It costs 47 tokens per session (949 once invoked), scanned A, original, MIT.

A development guide for building and styling shadcn/ui components, a set of reusable interface components built on Radix UI and Tailwind CSS. The components are copied into your project so you can change their code.

In plain words
What is it for?
Use it when creating buttons, dialogs, forms, and other React interface components with shadcn/ui.
Why use it?
It helps keep interface components consistent, customizable, and accessible while avoiding ad hoc styling decisions.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating buttons, dialogs, forms, and other React interface components with shadcn/ui.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/compozy/compozy/shadcn
About the project

Compozy is a system for coordinating AI coding agents, allowing command-line agents to divide work, exchange tasks, run scheduled or repeated jobs, and share project memory under browser supervision. Developers and technical operators use it to create, automate, and monitor ongoing agent work. The catalogue entries provide skills and other add-ons for its agent workflows.

compozy/compozy · 2,926 stars · on GitHub · compozy.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add compozy/compozy --skill shadcn
Clone the repo
git clone --depth 1 https://github.com/compozy/compozy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shadcn

README.md
[![agentmods](https://agentmods.dev/badge/skills/compozy/compozy/shadcn/github.svg)](https://agentmods.dev/skills/compozy/compozy/shadcn)
Your own site
<a href="https://agentmods.dev/skills/compozy/compozy/shadcn"><img src="https://agentmods.dev/badge/skills/compozy/compozy/shadcn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shadcn

Your own site · 80×15
<a href="https://agentmods.dev/skills/compozy/compozy/shadcn"><img src="https://agentmods.dev/badge/skills/compozy/compozy/shadcn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 949 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 43
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00949
Opus 5.5 $0.00019 $0.00380
Sonnet 5.5 $0.00009 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 2mo ago against content hash e66d80e91887, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shadcn scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • shadcn — 100% identical, 0 lines differ
.agents/skills/shadcn/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shadcn UI Developer Guide

This skill provides guidelines, patterns, and best practices for working with shadcn/ui components in this project.

Quick Start

  1. Core Patterns: Read references/patterns.md for comprehensive styling, theming, and component patterns.
  2. Tailwind Integration: For Tailwind CSS patterns, use the tailwindcss skill.

Core Philosophy

  • Ownership: Shadcn is copy-paste, not a dependency - you own the code.
  • Customization: Components are meant to be modified for your needs.
  • Accessibility: Built on Radix UI primitives for proper accessibility.
  • Flexibility: Styled with Tailwind CSS for easy customization.

Critical: Design Token Usage

Always use design system tokens for theme switching compatibility:

Required tokens:

  • Backgrounds: bg-background, bg-card, bg-muted, bg-popover
  • Text: text-foreground, text-muted-foreground, text-card-foreground
  • Borders: border-border, border-input, border-ring
  • Actions: bg-primary text-primary-foreground, bg-secondary text-secondary-foreground
  • States: bg-destructive text-destructive-foreground, bg-accent text-accent-foreground

Never use explicit colors like bg-white, text-black, border-gray-200 - they break theme switching.

Common Tasks

Adding Components

Use the CLI to add components, then customize as needed:

npx shadcn@latest add button card dialog

Extending Components

Add custom props and variants while preserving accessibility:

export interface ButtonProps
  extends React.ButtonHTMLAttributes<HTMLButtonElement>,
    VariantProps<typeof buttonVariants> {
  loading?: boolean
}

const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
  ({ className, variant, size, loading, children, ...props }, ref) => {
    return (
      <button
        className={cn(buttonVariants({ variant, size, className }))}
        ref={ref}
        disabled={loading || props.disabled}
        {...props}
      >
        {loading && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
        {children}
      </button>
    )
  }
)

Read the full file on GitHub · 141 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 141 lines · 47 tokens per session scan A e66d80e91887

Subscribe to this mod's changes

shadcn is a skill published in the GitHub repository compozy/compozy (2,926 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 949 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

shadcn compared with skills from other repositories

shadcn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shadcncompozy/compozySkill2.9ktodayMITA47Claude Code
create-backchat-themeopenma-ai/backchatSkill1320d agononeA62Codex
frontend-designHmbown/CodeWhaleSkill41k3d agoMITA21Claude Code, Codex
ui-html-rendererOrkas-AI/OrkasSkill7.7ktodayMITA4Claude Code, Codex
product-uiOrkas-AI/OrkasSkill7.7ktodayMITA2Claude Code, Codex
mcp-host-styling-integrationa5c-ai/babysitterSkill1.9k1mo agoMITA44Claude Code
anti-slop-frontendBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA147Claude Code, Codex