shadcn-errors-cli-sync-mismatch
OfficialPrevent shadcn overwriting your edits
AuthorImpertio-Studio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill prevents the shadcn CLI from silently wiping your local changes when you re-run shadcn add with overwrite, especially when upstream components change and you need to recover customizations safely.
Core Features & Use Cases
- Diff-first overwrite workflow: Use
--dry-runand--diffto preview exactly what the CLI will change before any destructive write. - Choose the right sync strategy: Apply one of three approaches—vendor snapshot, diff-merge, or fork—to match how much you customized and how frequently upstream changes.
- Preserve customizations safely: Move custom variants and extensions into
*-extensions.tsxso re-adds and migrations do not delete them, and maintain clear documentation for each component’s sync policy. - Migration and hygiene guardrails: Run migrations like
migrate iconsandmigrate radixwith clean git state to avoid tangled diffs you can’t confidently resolve.
Quick Start
First make your git working tree clean, then run pnpm dlx shadcn@latest add <component> --diff to review the upstream changes before applying overwrite.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: shadcn-errors-cli-sync-mismatch Download link: https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package/archive/main.zip#shadcn-errors-cli-sync-mismatch Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.