shadcn

58 community-maintained best practices for shadcn/ui component development, organized by priority and impact. Covers 10 rule categories spanning CLI setup, component architecture, accessibility, styling, forms, data display, layout, composition, performance, and state management Each rule includes specific guidance on Radix primitives, Tailwind styling, React Hook Form integration, and accessibility compliance Prioritized by impact: CRITICAL rules for setup and architecture, HIGH for styling and forms, MEDIUM for composition and performance Designed for automated refactoring and code generation workflows, with individual reference files and a compiled single-document guide

INSTALLATION
npx skills add https://github.com/pproenca/dot-skills --skill shadcn
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

shadcn/ui Community Best Practices

Comprehensive best practices guide for shadcn/ui applications, maintained by the shadcn/ui community. Contains 58 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Installing and configuring shadcn/ui in a project
  • Writing new shadcn/ui components or composing primitives
  • Implementing forms with React Hook Form and Zod validation
  • Building data tables or handling large dataset displays
  • Customizing themes or adding dark mode support
  • Reviewing code for accessibility compliance

Rule Categories by Priority

Priority

Category

Impact

Prefix

1

CLI & Project Setup

CRITICAL

setup-

2

Component Architecture

CRITICAL

arch-

3

Accessibility Preservation

CRITICAL

ally-

4

Styling & Theming

HIGH

style-

5

Form Patterns

HIGH

form-

6

Data Display

MEDIUM-HIGH

data-

7

Layout & Navigation

MEDIUM

layout-

8

Component Composition

MEDIUM

comp-

9

Performance Optimization

MEDIUM

perf-

10

State Management

LOW-MEDIUM

state-

Quick Reference

1. CLI & Project Setup (CRITICAL)

2. Component Architecture (CRITICAL)

3. Accessibility Preservation (CRITICAL)

4. Styling & Theming (HIGH)

5. Form Patterns (HIGH)

6. Data Display (MEDIUM-HIGH)

7. Layout & Navigation (MEDIUM)

8. Component Composition (MEDIUM)

9. Performance Optimization (MEDIUM)

10. State Management (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a single-file reference containing all rules, see AGENTS.md.

Reference Files

File

Description

AGENTS.md

Complete compiled guide with all rules

references/_sections.md

Category definitions and ordering

assets/templates/_template.md

Template for new rules

metadata.json

Version and reference information

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card