shadcn

Run shadcn CLI commands to add, update, and audit shadcn/ui components.

5.4k|168|Updated May 7, 2018
One-click install
npx skills add https://github.com/remeda/remeda --skill shadcn-remeda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn
Source: https://github.com/remeda/remeda/tree/main/.agents/skills/shadcn
Command: npx skills add https://github.com/remeda/remeda --skill shadcn-remeda

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates slow, inconsistent shadcn/ui work by guiding you through the correct CLI workflow and enforcing composition and styling rules for shadcn components.

Core Features & Use Cases

  • shadcn/ui project-safe management: Run the proper shadcn CLI commands to initialize, apply presets, and add components for a working Next.js/Vite/React project.
  • Quality guardrails for UI code: Enforce composition patterns (e.g., correct Group/Item structure, required Titles for Dialog/Sheet/Drawer) and styling rules (semantic tokens, gap-* spacing, icon data-icon conventions).
  • Deterministic upgrade workflow: Use dry-run/diff/view and smart-merge practices to update components without breaking local customizations.

Quick Start

Run npx shadcn@latest info to fetch your project context, then ask me to add or fix a specific shadcn component with the correct rules applied.

Frequently Asked Questions about shadcn

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

FAQPage Schema
How do I add shadcn/ui components to an existing React project?

To fix shadcn/ui component composition, apply structural rules like correct Group/Item hierarchy, add required Titles for Dialog/Sheet/Drawer, and use semantic tokens with gap-* spacing for consistent styling.

How do I update shadcn components without breaking local customizations?

To update shadcn components safely, use the CLI's dry-run, diff, and view features with smart-merge practices to apply deterministic upgrades without overwriting your local styling and composition customizations.

Can I use shadcn/ui with Tailwind CSS and Vite?

Before using shadcn/ui, you must initialize a working Next.js, Vite, or React project and run npx shadcn@latest info to fetch your components.json context, ensuring correct aliases and Tailwind version setup.

What is the correct way to structure shadcn/ui forms and icons?

To structure shadcn/ui forms and icons correctly, follow strict validation rules and use icon data-icon conventions alongside semantic styling tokens to ensure UI composition remains consistent across your application.