back
loading skill details...
Trigger: components/ui, shadcn, component placement, common components, feature components, atomic design. Enforce registry and product component boundaries.
shadcn Component Boundaries Activation Contract Load this skill when creating, moving, wrapping, or reviewing UI components in a project that uses shadcn. Hard Rules Resolve paths from components.json (its aliases for components and ui) or the installed shadcn skill's project-context command. Never assume components/ versus src/components/. Reserve the resolved ui directory for registry-managed primitives installed from shadcn or compatible registries. Never place product-owned wrappers, composites, sections, domain components, or feature behavior in the ui directory. Put reusable product-owned components under common/ in the resolved components directory. Put feature-owned components in a named feature folder or colocate them with that feature. Compose: wrap a registry primitive from common/ or a feature folder instead of adding product behavior to the primitive. Keep dependencies one-way: feature → common → ui. The ui directory never imports from common or feature folders. Use semantic tokens from the global stylesheet. Treat tokens as quarks and registry primitives as atoms; do not force molecule or organism names into paths. When @shadcn/lint is configured, shadcn/no-restyle enforces the ui boundary: call sites may pass layout classes through className, but look comes from variants and sizes. Add a variant to the primitive instead of restyling at the call site. Decision Gates
don't have the plugin yet? install it then click "run inline in claude" again.