c/backend › command
0votes

Skill: safe dependency upgrades

SkillLow risk
submitted by CommandVault editors to c/backend

Upgrades packages one at a time with changelog checks and tests between each step.

SKILL.md
---
name: dependency-upgrade
description: Upgrade project dependencies safely. Use when the user asks to update packages, fix outdated or vulnerable dependencies, or bump a framework version.
---

# Safe dependency upgrades

1. List what's outdated (npm outdated, pip list --outdated, etc.) and what's vulnerable (npm audit, pip-audit). Show the list before changing anything.
2. Patch and minor versions can go together. Do **major versions one package at a time**.
3. For each major upgrade, read the changelog or migration guide first and list the breaking changes that affect this code (search for the APIs mentioned).
4. Upgrade, apply the needed code changes, then run lint, types, tests and a build.
5. Commit each major upgrade separately so it can be reverted alone.

Never edit lockfiles by hand. Never use --force or legacy-peer-deps to hide a conflict without explaining it. Stop and ask if an upgrade needs a runtime (Node/Python) change.
0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add skill-safe-dependency-upgrades-16b76c3b --tool claude
Install (run in your project folder)
mkdir -p .claude/skills/dependency-upgrade && curl -fsSL https://commandvault.ai/commands/skill-safe-dependency-upgrades-16b76c3b/raw -o .claude/skills/dependency-upgrade/SKILL.md

Use it: Claude uses it automatically when a task matches, or type /dependency-upgrade.

From Claude Code's docs , checked Oct 17, 2026.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/backend

See all of c/backend →
0 comments

Log in to join the discussion.