Generate a /update-app command for dependency updates and deprecation fixes
Creates a `/update-app` command that updates dependencies and fixes deprecations for your project's package manager (npm, yarn, pip, poetry, go, cargo). Use it when dependencies are outdated or you need to fix warnings and security issues.
/plugin marketplace add KenKaiii/minimal-claude/plugin install minimal-claude@minimal-claude-marketplaceGenerate a minimal /update-app command that updates dependencies and fixes deprecations.
Check for config files:
package.json → JavaScript/TypeScript (npm/yarn/pnpm/bun)pyproject.toml or requirements.txt → Python (pip/poetry)go.mod → GoCargo.toml → Rustcomposer.json → PHPFor JavaScript/TypeScript: Check for lock files:
package-lock.json → npmyarn.lock → yarnpnpm-lock.yaml → pnpmbun.lockb → bunFor Python: Check for:
poetry.lock → poetryCreate .claude/commands/update-app.md:
---
name: update-app
description: Update dependencies, fix deprecations and warnings
---
# Dependency Update & Deprecation Fix
## Step 1: Check for Updates
[INSERT CHECK COMMAND]
## Step 2: Update Dependencies
[INSERT UPDATE COMMAND]
## Step 3: Check for Deprecations & Warnings
Run installation and check output:
[INSERT INSTALL COMMAND]
Read ALL output carefully. Look for:
- Deprecation warnings
- Security vulnerabilities
- Peer dependency warnings
- Breaking changes
## Step 4: Fix Issues
For each warning/deprecation:
1. Research the recommended replacement or fix
2. Update code/dependencies accordingly
3. Re-run installation
4. Verify no warnings remain
## Step 5: Run Quality Checks
[INSERT QUALITY CHECK COMMANDS]
Fix all errors before completing.
## Step 6: Verify Clean Install
Ensure a fresh install works:
1. Delete dependency folders/caches
2. Run clean install
3. Verify ZERO warnings/errors
4. Confirm all dependencies resolve correctly
Replace placeholders with actual commands:
## Step 1: Check for Updates
```bash
npm outdated
npm update
npm audit fix
rm -rf node_modules package-lock.json
npm install
npm run lint
npm run typecheck
rm -rf node_modules package-lock.json
npm install
### JavaScript/TypeScript (yarn):
```markdown
## Step 1: Check for Updates
```bash
yarn outdated
yarn upgrade
yarn audit
rm -rf node_modules yarn.lock
yarn install
### Python (pip):
```markdown
## Step 1: Check for Updates
```bash
pip list --outdated
pip install --upgrade -r requirements.txt
pip install -r requirements.txt
mypy .
pylint src/
### Python (poetry):
```markdown
## Step 1: Check for Updates
```bash
poetry show --outdated
poetry update
poetry install
### Go:
```markdown
## Step 1: Check for Updates
```bash
go list -u -m all
go get -u ./...
go mod tidy
go mod download
go vet ./...
gofmt -l .
### Rust:
```markdown
## Step 1: Check for Updates
```bash
cargo outdated
cargo update
cargo check
cargo clippy
cargo fmt --check
## Step 5: Confirm Completion
Tell the user:
- ✅ `/update-app` created
- 🔄 Updates: [package manager commands]
- ⚠️ Zero-tolerance for deprecations/warnings
- 🛡️ Security audit included
- ✨ Clean install verification enabled