A Claude Code slash command for intelligent dependency upgrades with breaking change analysis.
# Clone to your preferred location
git clone git@github.com:claude-commands/command-deps-upgrade.git <clone-path>/command-deps-upgrade
# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-deps-upgrade/deps-upgrade.md ~/.claude/commands/deps-upgrade.md/deps-upgrade # Analyze all upgradable dependencies
/deps-upgrade react # Upgrade specific package
/deps-upgrade --major # Include major version upgrades
/deps-upgrade --safe # Only patch/minor updates
/deps-upgrade --interactive # Choose which to upgrade
- Detects package manager and lists outdated deps
- Categorizes by version change type (patch/minor/major)
- Analyzes breaking changes for major updates
- Generates upgrade plan with risk assessment
- Applies upgrades and runs verification
- Provides rollback commands if needed
# Dependency Upgrade Plan
## Safe Updates (14 packages)
| Package | Current | Latest | Type |
| ------- | ------- | ------ | ---- |
| lodash | 4.17.19 | 4.17.21 | Patch |
## Major Updates (2 packages)
**react: 17.0.2 → 18.2.0**
- Risk: High
- Breaking changes: New concurrent rendering
- Migration effort: 2-4 hours
## Verification Results
- Tests: ✓ Passed
- Build: ✓ Successful| Level | Criteria |
|---|---|
| Low | Patch update, security fix |
| Medium | Minor update, new features |
| High | Major update, breaking changes |
| Manager | Command |
|---|---|
| npm | npm outdated |
| yarn | yarn outdated |
| Go | go list -m -u |
| pip | pip list --outdated |
| cargo | cargo outdated |
- Package manager installed
- Claude Code with Opus 4.5 model access
cd <clone-path>/command-deps-upgrade && git pull