shadcn
Build React UIs with shadcn components
Developers struggle to maintain consistent, accessible UI components across React projects. This skill provides CLI commands, component composition patterns, and styling rules for building professional UIs with the shadcn/ui component library.
Descargar el ZIP de la skill
Subir en Claude
Ve a Configuración → Capacidades → Skills → Subir skill
Activa y empieza a usar
Pruébalo
Usando "shadcn". Add a dialog component with a form inside it
Resultado esperado:
- Install: npx shadcn@latest add dialog
- Composition pattern for accessible dialog with form
Usando "shadcn". Fix my form layout - fields are not spacing correctly
Resultado esperado:
- Replace div wrappers with FieldGroup + Field pattern
- Apply correct variant for form validation states
Auditoría de seguridad
SeguroAudit complete. Static findings are false positives: backticks are markdown code formatting, URLs are documentation links, and cryptographic warnings are triggered by file paths. This is a legitimate UI component library skill with no actual security risks.
Factores de riesgo
⚙️ Comandos externos (884)
🌐 Acceso a red (11)
📁 Acceso al sistema de archivos (8)
Puntuación de calidad
Lo que puedes crear
Add components to React project
Use CLI to add button, form, dialog, and other UI components to a Next.js or Vite project
Debug styling and composition issues
Fix common issues with z-index, variants, semantic colors, and component nesting
Apply best-practice component patterns
Follow official composition rules for forms, dialogs, tabs, and other complex components
Prueba estos prompts
Add the button and card components to my project using shadcn CLI. Show me the correct composition pattern for a settings card with a title, description, and action button.
Debug and fix a dialog that is not appearing above other elements. The z-index seems wrong on mobile.
Search the shadcn registry for a table component and add it with the correct installation command.
Convert this button from hardcoded bg-blue-500 to use semantic tokens from the shadcn theme. Use the correct variant pattern.
Mejores prácticas
- Always use project package runner (npx, pnpm dlx, bunx) based on project packageManager
- Prefer component composition over custom markup (use Alert, Empty, Badge instead of styled divs)
- Use semantic color tokens (bg-primary, text-muted-foreground) instead of raw Tailwind colors
Evitar
- Do not override component colors with raw Tailwind classes - use variant prop instead
- Do not use space-x-* or space-y-* - use flex with gap-* for layout
- Do not invent CLI flags not documented in the official reference