shadcn-ui

shadcn-ui is a skill for Claude Code from MadAppGang/claude-code. It costs 62 tokens per session (7,609 once invoked), scanned A, original, MIT.

A guide to shadcn/ui, a collection of accessible interface components whose source code is copied into your project. It covers setup, adding components, composing interfaces, and managing component updates with its command-line tool.

In plain words
What is it for?
Use it to add buttons, cards, dialogs, and other interface components to projects using TypeScript, Tailwind CSS, and supported frameworks.
Why use it?
It gives developers reusable UI building blocks they can inspect and customize directly instead of treating them as a fixed package.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex.

Part of the dev plugin — 47 skills, 12 commands, 14 agents shipped together

Good fit Use it to add buttons, cards, dialogs, and other interface components to projects using TypeScript, Tailwind CSS, and supported frameworks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madappgang/claude-code/shadcn-ui
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 MadAppGang/claude-code --skill shadcn-ui
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 47 skills, 12 commands, 14 agents.

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-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/claude-code/shadcn-ui/github.svg)](https://agentmods.dev/skills/madappgang/claude-code/shadcn-ui)
Your own site
<a href="https://agentmods.dev/skills/madappgang/claude-code/shadcn-ui"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/shadcn-ui/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-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/madappgang/claude-code/shadcn-ui"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/shadcn-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,609 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.
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.00062 $0.07609
Opus 5.5 $0.00025 $0.03044
Sonnet 5.5 $0.00012 $0.01522
Haiku 4.5 $0.00006 $0.00761

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

Security

Grade A, and why

shadcn-ui 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 3mo 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.

plugins/dev/skills/frontend/shadcn-ui/SKILL.md · 930 lines

How it starts

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

shadcn/ui Component Library

shadcn/ui is a collection of beautifully-designed, accessible components and a code distribution platform. It is built with TypeScript, Tailwind CSS, and Radix UI primitives. It supports multiple frameworks including Next.js, Vite, Remix, Astro, and more. Open Source. Open Code. AI-Ready. It also comes with a command-line tool to install and manage components and a registry system to publish and distribute code.

Key Principles

  • Open Code: Components are copied into your project, not installed as dependencies
  • Composition: Build complex UIs by composing simple components
  • Distribution: CLI and registry system for easy component management
  • Beautiful Defaults: Production-ready styling out of the box
  • AI-Ready: Designed to work well with AI assistants

Quick Reference

CLI Commands

# Initialize shadcn/ui in your project
npx shadcn@latest init

# Add a component
npx shadcn@latest add button

# Add multiple components
npx shadcn@latest add button card dialog

# Add all components
npx shadcn@latest add --all

# Update components
npx shadcn@latest diff

# List available components
npx shadcn@latest add

Configuration (components.json)

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/index.css",
    "baseColor": "neutral",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils",
    "ui": "@/components/ui",
    "lib": "@/lib",
    "hooks": "@/hooks"
  }
}

Documentation Index

Overview

Topic URL Description
Introduction https://ui.shadcn.com/docs Core principles and getting started
CLI https://ui.shadcn.com/docs/cli Command-line tool reference
components.json https://ui.shadcn.com/docs/components-json Configuration file documentation
Theming https://ui.shadcn.com/docs/theming Colors, typography, design tokens
Changelog https://ui.shadcn.com/docs/changelog Release notes and version history
About https://ui.shadcn.com/docs/about Credits and project information

Read the full file on GitHub · 930 lines

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. 3mo ago First seen · 930 lines · 62 tokens per session scan A 2e1fd7294205

Subscribe to this mod's changes

shadcn-ui is a skill published in the GitHub repository MadAppGang/claude-code (291 stars, last pushed 8mo ago), licensed MIT. It adds 62 tokens to every session and 7,609 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-ui compared with skills from other repositories

shadcn-ui next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shadcn-uiMadAppGang/claude-codeSkill2918mo agoMITA62Claude Code
anti-slop-designsickn33/agentic-awesome-skillsSkill51ktodayMITA34Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k2d agoMITA52Codex
baseline-uivercel-labs/open-agentsSkill5.9k2d agoMITA48Claude Code, Codex
prototype-webnexu-io/html-anythingSkill17k5d agoApache-2.0A24Claude Code, Codex
open-design-setupcompozy/compozySkill2.9ktodayMITA67Claude Code, Codex