shadcn

Enforce shadcn/ui component composition and styling via CLI workflows.

Updated May 3, 2026
One-click install
npx skills add https://github.com/tabesink/deepdoc-agent --skill shadcn-tabesink
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn
Source: https://github.com/tabesink/deepdoc-agent/tree/main/.cursor/skills/shadcn
Command: npx skills add https://github.com/tabesink/deepdoc-agent --skill shadcn-tabesink

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents incorrect or inconsistent shadcn/ui implementations by enforcing the project's required component composition, styling rules, and CLI-based workflows.

Core Features & Use Cases

  • Guides shadcn component creation and fixes across the full UI composition lifecycle, including styling, variants, layout, and accessibility requirements.
  • Ensures correct usage patterns for forms, overlays (Dialog/Sheet/Drawer), icons, spacing, semantic tokens, and base vs radix behavioral differences.
  • Optimizes component discovery and installation by directing you to use shadcn’s CLI for search, docs, view, and safe update workflows (dry-run/diff) rather than guessing or fetching raw files.

Quick Start

Ask the AI to install and correctly compose a target shadcn component for your project using the shadcn CLI workflow, including fetching the component’s docs first.

Frequently Asked Questions about shadcn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install and configure shadcn UI components correctly in a React project?

To install shadcn UI components correctly, use the npx shadcn@latest CLI commands to search, view docs, and add components rather than manually fetching files. This ensures proper composition, styling, and adherence to your project's specific configuration and semantic tokens.

What is the best way to update existing shadcn/ui components without breaking custom styles?

The best way to update shadcn/ui components safely is by using the CLI's validated update workflows with --dry-run and --diff flags. This helps identify potential conflicts and prevents incorrect manual edits to your base component configurations.

Why does my shadcn form or dialog overlay behave differently when switching between radix and base presets?

Switching between radix and base presets in shadcn causes behavioral differences in forms and overlay components like Dialog, Sheet, and Drawer due to underlying API variations. You must apply the specific composition and input constraints tied to your active preset.

Can I use Tailwind CSS to apply custom variants and layout rules to shadcn components?

Yes, you can apply Tailwind CSS for custom variants and layout, but you must follow Critical Rules for layout, semantic tokens, icon usage, and overlay titles. Correct shadcn implementation requires enforcing these specific styling constraints.

What are the limitations of manually editing shadcn/ui component files instead of using the CLI?

Manually editing shadcn/ui component files bypasses the project's required composition and styling rules, leading to inconsistent accessibility and layout. It prevents you from leveraging the CLI's validated update workflows, making component maintenance and future updates error-prone.

How do I ensure accessibility requirements are met when composing shadcn UI components?

To ensure accessibility when composing shadcn UI components, follow the enforced component composition rules for forms, overlays, icons, and spacing. The framework's Critical Rules automatically apply the necessary semantic tokens and structure to maintain accessibility standards.