检查、汇总和更新所有已安装包管理器(npm、pip、brew、cargo、go等)中的软件包。用于用户想要检查过期软件包、获取更新摘要或更新依赖项时使用。
This skill automates package update workflows: check → summarize → update (on demand).
Run these commands to check outdated packages for each package manager:
bash
# npm global packages
npm outdated -g --depth=0 2>/dev/null || echo "npm: no global packages"
# pip
pip list --outdated 2>/dev/null || pip3 list --outdated 2>/dev/null
# Homebrew
brew outdated
# Cargo (Rust)
cargo outdated 2>/dev/null || echo "cargo: not installed or no projects"
# Go modules
go list -m -u all 2>/dev/null || echo "go: no modules"
Format the results in a clear table:
Package ManagerOutdated CountnpmXpipXbrewXcargoX
For detailed output, show per-package tables with Current vs Latest versions.
Only update when user explicitly confirms. Run:
bash
# npm - update all globals
npm update -g
# npm - update specific package
npm install -g <package-name>@latest
# pip
pip install --upgrade <package-name>
# pip (Homebrew-managed)
brew upgrade pip 2>/dev/null || pip install --upgrade <package-name>
# Homebrew
brew update && brew upgrade
# Homebrew (Post Update/Upgrade)
brew cleanup
brew doctor
# Homebrew - specific package
brew upgrade <package-name>
# Cargo
cargo update
# Go
go get -u <module>
openclaw or is in the OpenClaw ecosystem)Keep output concise. Use markdown tables for summaries. Present update commands only when user confirms.