Agent skill
shadcn
How to work effectively with shadcn/ui components, always use when adding UI components
Install this agent skill to your Project
npx add-skill https://github.com/markhamsquareventures/essentials/tree/main/skills/shadcn
SKILL.md
shadcn/ui
Instructions
This project uses shadcn/ui with the New York style variant. Components are built on Radix UI primitives with Tailwind CSS styling.
Configuration
- Style:
new-york - Base color:
neutral - Icons:
lucide-react - Components location:
resources/js/components/ui/ - Utils location:
resources/js/lib/utils.ts
Adding New Components
Use the shadcn CLI to add components:
npx shadcn@latest add <component-name>
Examples:
npx shadcn@latest add table
npx shadcn@latest add tabs
npx shadcn@latest add calendar
Do NOT manually create shadcn components - always use the CLI to ensure correct styling and dependencies.
Available Components
Components already installed in this project:
alertalert-dialogavatarbadgebreadcrumbbuttoncardcheckboxcollapsibledialogdropdown-menuinput,input-otplabelnavigation-menuselectseparatorsheetsidebarskeletonsonner(toast notifications)spinnertoggle,toggle-grouptooltip
Using Components
Always import from @/components/ui/:
Button Variants
{/_ Sizes _/} <Button size="sm">Small</Button> <Button size="default">Default</Button> <Button size="lg">Large</Button> <Button size="icon"><IconComponent /></Button>
Form Patterns
Use Label + Input together, with proper error styling:
Dialog Pattern
Toast Notifications
Use Sonner for toast notifications:
// Success toast.success('Changes saved successfully');
// Error toast.error('Something went wrong');
// With description toast.success('Project created', { description: 'Your new project is ready to use.', });
The cn() Utility
Use cn() from @/lib/utils to merge Tailwind classes conditionally:
Icons
Use Lucide React for icons:
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
tailwind
How to work effectively with Tailwind CSS, always use when styling frontend features
testing
How to effectively test the application, always use when writing tests
inertia
How to work effectively with Inertia, always use when developing frontend features
laravel
How to work effectively with Laravel, always use when developing Laravel features
react
How to work effectively with React, always use when developing frontend components
Didn't find tool you were looking for?