dev-shadcn

dev-shadcn is a skill for Claude Code, Codex from christopherlouet/claude-base. It costs 57 tokens per session (678 once invoked), scanned A, original, MIT.

A guide for shadcn/ui, a collection of copy-and-customize React interface components built with Radix and Tailwind.

In plain words
What is it for?
Use it to install shadcn/ui, add components, customize their theme, and adapt CSS tokens to a project's visual style.
Why use it?
It helps keep component installation, theming, and customization aligned with the library's current tools and patterns.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/christopherlouet/claude-base/dev-shadcn
Any agent
npx skills add christopherlouet/claude-base --skill dev-shadcn
Clone the repo
git clone --depth 1 https://github.com/christopherlouet/claude-base

Made for: Claude Code, Codex.

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 dev-shadcn

README.md
[![agentmods](https://agentmods.dev/badge/skills/christopherlouet/claude-base/dev-shadcn.svg)](https://agentmods.dev/skills/christopherlouet/claude-base/dev-shadcn)
Your own site
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/dev-shadcn"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/dev-shadcn.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00057 $0.00678
Opus 5 $0.00028 $0.00339
Sonnet 5 $0.00011 $0.00136
Haiku 4.5 $0.00006 $0.00068

Measured yesterday against content hash 18b6981dfd21, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

dev-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 yesterday.

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.

.claude/skills/dev-shadcn/SKILL.md · 50 lines

How it starts

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

shadcn/ui (pointer)

The canonical shadcn skill ships inside the library repository itself at shadcn-ui/ui/skills/shadcn. Because it lives next to the source, it stays in sync with the CLI v4 release flow — registry workflows, Radix + Base UI primitives, theming, and component patterns are updated the moment they ship, substantially deeper and fresher than the prior foundation skill (258 lines) could maintain.

Delegate to the vendor skill

# shadcn's own CLI exposes the skill (verify on https://ui.shadcn.com/docs/skills):
npx shadcn skill add shadcn

# Fallback — clone the canonical repo and symlink:
git clone --depth 1 https://github.com/shadcn-ui/ui ~/dev/vendor-skills/shadcn-ui
ln -s ~/dev/vendor-skills/shadcn-ui/skills/shadcn ./.claude/skills/shadcn

Recipe entry: docs/recipes/recommended-vendor-skills.md §"shadcn/ui — canonical skill in main repo". Reduction rationale: specs/foundation-positioning-review/spec.md Wave 1.

Foundation-unique angle preserved: art direction

If the project declares a Style: direction in CLAUDE.md (.claude/rules/design-style.md), adapt the shadcn CSS tokens accordingly — the vendor skill stays direction-neutral, this mapping is foundation-specific:

Direction shadcn adaptation
terminal --radius: 0px, dark palette + neon accent, mono font everywhere
cockpit --radius: 4px, functional colors (OK/warn/alert), dense layout
vitality --radius: 14px, vivid palette, spring animations
editorial --radius: 2px, black/white + one accent, serif for titles
glass --radius: 14px, backdrop-blur on cards and dialogs
signal --radius: 4px, gray only, compact sizes

Foundation rules preserved

  • shadcn components are copy-pasted into your codebase, not installed as a dependency — treat them as first-class application code subject to TDD, security review, and /qa:wcag-audit for accessibility regressions when customised.
  • NEVER override component styles via !important — modify the CSS variables instead.
  • NEVER copy shadcn components into node_modules/ or a libs-internal folder.

Read the full file on GitHub · 50 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. yesterday First seen · 50 lines · 57 tokens per session scan A 18b6981dfd21

Subscribe to this mod's changes

dev-shadcn is a skill published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 678 once invoked, about $0.0003 per session on Opus 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.