What problem does it solve?
This skill helps you recover from risky shadcn/ui state drift by planning a safe reinstall path while preventing accidental loss of customized components and uncommitted changes.
Core Features & Use Cases
- Confirmation-gated destructive changes: Detects the shadcn-owned surface and asks before deleting, overwriting, or reinitializing critical files.
- Evidence-based shadcn reinstall workflow: Uses the official shadcn CLI flow (init/add) and keeps actions aligned with what the project actually contains.
- Post-reinstall cleanup and optional refinements: Verifies via lint/typecheck/build when possible, and optionally splits cva() variants or renames the cn utility within a user-approved scope.
- Use Case: Reinstall shadcn/ui after a botched upgrade, missing components, or regenerated utilities that broke imports in a React/Next frontend.
Quick Start
Ask an AI agent to run the shadcn-reinstall skill to audit your project, present a deletion/reinstall plan, then reinstall shadcn/ui safely using the official CLI and verify the result.