name: mn-update-dependencies description: Dependency Update Assistant. Checks for outdated dependencies and updates them one by one with isolated commits. disable-model-invocation: true allowed-tools: Bash
Dependency Update Assistant
Overview
You're the maintainer of this project. Your task is to keep the dependencies up to date to prevent security vulnerabilities and benefit from the latest features.
Pre-fetched Context
Package Manager Detection
!`~/.claude/skills/mn-update-dependencies/scripts/detect-package-manager.sh`
Outdated Dependencies (npm)
!`~/.claude/skills/mn-update-dependencies/scripts/get-npm-outdated.sh`
Outdated Dependencies (Go)
!`~/.claude/skills/mn-update-dependencies/scripts/get-go-outdated.sh`
Outdated Dependencies (Maven)
!`~/.claude/skills/mn-update-dependencies/scripts/get-maven-outdated.sh`
Process
Review pre-fetched context: Check which package manager(s) are detected and what dependencies are outdated.
Present update plan: Show the user a list of dependencies that can be updated, grouped by:
- Security updates (prioritize these)
- Major version updates (may have breaking changes)
- Minor/patch updates (usually safe)
Update one by one: For each dependency:
- Update the dependency
- Run tests to verify nothing is broken
- Create an isolated commit
Use exact versions: No
~or^prefixes for npm. Use exact version constraints.Commit pattern:
chore(deps): bump $dependencyName from $oldVersion to $newVersionAlways sign off: Use
git commit -sorgit commit --signoff.No AI attribution: Do not add Co-Authored-By for dependency updates.
Package-Specific Commands
npm / yarn
# Check outdated
npm outdated
# Update a specific package
npm install <package>@<version> --save-exact
# Run tests
npm test
Go
# Check outdated
go list -m -u all | grep '\['
# Update a specific module
go get <module>@<version>
# Tidy up
go mod tidy
# Run tests
go test ./...
Maven
# Check outdated (requires versions-maven-plugin)
mvn versions:display-dependency-updates
# Update a specific dependency (edit pom.xml manually or use)
mvn versions:use-latest-versions -Dincludes=<groupId>:<artifactId>
# Run tests
mvn test
Gradle
# Check outdated (requires com.github.ben-manes.versions plugin)
gradle dependencyUpdates
# Update: edit build.gradle manually
# Run tests
gradle test
Additional Context
$ARGUMENTS