agentleFS
pvnarppvnarp/agent-skills/skills/dependency-update/SKILL.md

dependency-update

Skill1 starsChanged 9 months agoMITView on GitHub

Safely updates project dependencies. Checks for breaking changes, security vulnerabilities, and compatibility issues. Generates update plans with risk assessment. Use when updating packages, auditing outdated dependencies, or responding to security advisories.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never batch major updates.

    line 44
  2. Distinctive:

    Commit the lock file with the update.

    line 63
  3. Distinctive:

    Peer dependency warnings: Don't ignore them. They often cause runtime errors.

    line 86
  4. Distinctive:

    Lock file conflicts: When merging branches with different dependency updates, regenerate the lock file rather than manually merging.

    line 88

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dependency Update

Audit Current State

First, understand what needs updating and why:

# Node.js
npm outdated               # Show outdated packages
npm audit                  # Security vulnerabilities

# Python
pip list --outdated        # Outdated packages
pip-audit                  # Security vulnerabilities

# Go
go list -m -u all          # Available updates

# Rust
cargo outdated             # Outdated crates
cargo audit                # Security advisories

# JVM
./gradlew dependencyUpdates  # Gradle (with versions plugin)

Risk Assessment

Update TypeRiskApproach
Patch (1.2.3 → 1.2.4)LowUsually safe. Bug fixes. Update and run tests.
Minor (1.2.x → 1.3.0)MediumNew features, possible deprecations. Read changelog.
Major (1.x → 2.0.0)HighBreaking changes expected. Read migration guide. Dedicate a branch.
Security (any)UrgentUpdate immediately. Accept minor breakage risk.

Update Process

1. One at a Time

Never batch major updates. Update one dependency per commit so you can isolate breakage.

2. Read the Changelog

For minor and major updates, actually read it. Look for:

  • Breaking changes
  • Deprecated APIs you use
  • New required configuration
  • Peer dependency changes

3. Update and Test

# Update the dependency
# Run the full test suite
# Run the linter / type checker
# Build for production
# Smoke test key features

4. Lock File

Commit the lock file with the update. The lock file IS the source of truth for versions.

Security Updates

For CVE / security advisory responses:

VULNERABILITY: [CVE ID or description]
PACKAGE: [name@version]
SEVERITY: [critical / high / medium / low]
AFFECTED: [which code paths use this dependency]
FIX: [update to version X]
BREAKING: [yes/no - if yes, what changes]

Priority:

  1. Critical / High in production code path → update immediately
  2. Critical / High in dev dependency → update this week
  3. Medium / Low → update in next maintenance window

Common Pitfalls

  • Transitive dependency conflicts: Package A needs X@2, Package B needs X@3. Check for resolution strategies in your package manager.
  • Peer dependency warnings: Don't ignore them. They often cause runtime errors.
  • Phantom dependencies: Code imports a package that's only available as a transitive dependency. Pin it explicitly.
  • Lock file conflicts: When merging branches with different dependency updates, regenerate the lock file rather than manually merging.

Output

OUTDATED DEPENDENCIES:
  [package] - [current] → [latest] - [type: patch/minor/major] - [risk]

SECURITY ISSUES:
  [package] - [severity] - [CVE] - [fix version]

RECOMMENDED UPDATE ORDER:
  1. [package] - [reason for priority]
  2. [package] - [reason]

BREAKING CHANGES TO ADDRESS:
  [package] - [what changes] - [files affected]

Utility Scripts

  • scripts/dep_age.sh [directory] - Detect project type (npm/Python/Go/Rust) and list dependencies with current versions. Uses package manager tooling for outdated checks when available.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.