Skip to content
mattbx avatar

Shadcn Component Review

Review custom components and layouts against shadcn patterns, style conventions, and composition rules.

CCM score
57 of 100
skills.sh installs
680
GitHub stars
26
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers spacing drift, hardcoded colors, missing data-slot attributes, and Radix or Base UI composition anti-patterns
  • Includes per-style checks for Vega, Nova, Maia, Lyra, and Mira, plus a grep for hardcoded Tailwind color scales
  • Enforces semantic design tokens, gap-* over space-y-*, and cn() with a consumer className override
  • Designed for post-hoc audits of components written by hand, by a teammate, or by an AI assistant

Install

$ npx -y skills add mattbx/shadcn-skills --skill shadcn-component-review -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

shadcn Component Review

Systematic audit process for ensuring custom components align with shadcn design patterns, the project's chosen visual style, and modern composition conventions.

How This Complements the Official shadcn Skill

The official shadcn skill (shipped with CLI v4) enforces rules at generation time — telling agents "use gap-* not space-y-*, use semantic colors, use size-* for equal width/height," and so on. That's correct behavior when writing new code.

This skill is for post-hoc audit — reviewing components that already exist (written by Claude, by a teammate, by a previous iteration) against those same rules plus the visual-style-specific patterns that vary by theme (Vega spacing differs from Maia differs from Mira). When the two skills both apply, the official handles forward-generation and this one handles retrospective review. They don't conflict — they check the same rules from different directions.

Core Principle

Details

Repository
github.com/mattbx/shadcn-skills
Categories
Frontend & UI Code, Design & UI/UX, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the shadcn-component-review skill do?

shadcn-component-review audits custom components and layouts against shadcn design patterns, visual style conventions, composition rules and design token usage. It flags spacing drift, hardcoded colors, missing data-slot attributes and composition anti-patterns in existing code.

How do I install the shadcn-component-review skill?

Run npx -y skills add mattbx/shadcn-skills --skill shadcn-component-review -y in your project. Once installed, shadcn-component-review reviews components when you ask it to check spacing, audit a layout or confirm a component follows shadcn patterns.

Which visual styles does shadcn-component-review check against?

shadcn-component-review checks against the Vega, Nova, Maia, Lyra and Mira visual styles, applying per-style spacing, radius and density expectations. It reads the project's style from the shadcn CLI or components.json before reviewing.

Where does shadcn-component-review sit among other Frontend and UI Code skills?

shadcn-component-review is listed in the Frontend & UI Code category on Claude Marketplaces. Its own focus is retrospective review of existing shadcn components, unlike generation-time rules that guide writing new code.

More from mattbx/shadcn-skills

All 2

Similar to Shadcn Component Review

More Frontend & UI Code