Loading...
Loading...
shadcn/ui component library best practices and patterns (formerly shadcn-ui). This skill should be used when writing, reviewing, or refactoring shadcn/ui components to ensure proper architecture, accessibility, and performance. Triggers on tasks involving Radix primitives, Tailwind styling, form validation with React Hook Form, data tables, theming, or component composition patterns.
npx skill4agent add pproenca/dot-skills shadcn| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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 | |
setup-components-jsonsetup-path-aliasessetup-cn-utilitysetup-use-cli-not-copysetup-css-variables-themesetup-rsc-configurationarch-use-asChild-for-custom-triggersarch-preserve-radix-primitive-structurearch-extend-variants-with-cvaarch-use-cn-for-class-mergingarch-forward-refs-for-composable-componentsarch-isolate-component-variantsally-preserve-aria-attributesally-provide-sr-only-labelsally-maintain-focus-managementally-preserve-keyboard-navigationally-ensure-color-contrastally-dialog-title-requiredally-form-field-labelsally-aria-invalid-errorsally-checkbox-label-associationally-focus-visible-stylesstyle-use-css-variables-for-themingstyle-avoid-important-overridesstyle-use-tailwind-theme-extendstyle-consistent-spacing-scalestyle-responsive-design-patternsstyle-dark-mode-supportform-use-react-hook-form-integrationform-use-zod-for-schema-validationform-show-validation-errors-correctlyform-handle-async-validationform-reset-form-state-correctlydata-use-tanstack-table-for-complex-tablesdata-virtualize-large-listsdata-use-skeleton-loading-statesdata-paginate-server-sidedata-empty-states-with-guidancelayout-sidebar-providerlayout-sidebar-collapsiblelayout-sidebar-groupslayout-sheet-mobile-navlayout-breadcrumb-navigationcomp-compose-with-compound-componentscomp-use-drawer-for-mobile-modalscomp-combine-command-with-popovercomp-nest-dialogs-correctlycomp-create-reusable-form-fieldscomp-use-slot-pattern-for-flexibilityperf-lazy-load-heavy-componentsperf-memoize-expensive-rendersperf-optimize-icon-importsperf-avoid-unnecessary-rerenders-in-formsperf-debounce-search-inputsstate-prefer-uncontrolled-for-simple-inputsstate-lift-state-to-appropriate-levelstate-use-controlled-dialog-statestate-colocate-state-with-components| 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 |