agentleFS
XData-siXData-si/xdata-agenthub/skills/dependency-upgrade/SKILL.md

dependency-upgrade

Skill1 starsChanged 33 days agoMITView on GitHub

Plan and execute major dependency, framework or runtime upgrades in verified incremental steps with changelog review and rollback. Use when bumping a framework major version, language runtime, base image or a dependency with breaking changes.

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-description, tdd and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    pr-description

    Draft Nacelle PR titles, pull request descriptions, commit titles, commit descriptions, and squash commit messages. Use when asked for PR or commit wording, a branch summary, or a PR description that can be used in a commit. Omit validation sections from commit bodies and remove filler.

    Also in 3 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 5 projects that use this

  • GoogleSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

  • +1 more from google
  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test suite health and coverage of affected areas.

    line 15
  2. Distinctive:

    Map impact: Search the codebase for each removed or changed API.

    line 20
  3. Distinctive:

    Bump and adapt: Update the lockfile, apply codemods if the project provides them, and fix compile, type and test failures.

    line 23
  4. Distinctive:

    Verify beyond unit tests: Run integration and end-to-end tests, a smoke test of the built artefact or image, performance comparison on …

    line 24
  5. Distinctive:

    Every breaking change from the upstream notes is listed with its status: handled, not applicable, deferred.

    line 48
  6. Distinctive:

    No new deprecation warnings are introduced.

    line 49
  7. Distinctive:

    Test, build and smoke results reported per step.

    line 50
  8. Very specific:

    Do not update production lockfiles or base images outside review.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 28 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 and Framework Upgrades

Goal

Reach the target version with every intermediate step green, and known breaking changes handled deliberately rather than discovered in production.

Inputs

  • Current and target versions, lockfiles, and the support or end-of-life dates driving the upgrade.
  • Upstream changelogs, migration guides and deprecation lists.
  • Test suite health and coverage of affected areas.

Procedure

  1. Baseline. Record that the current suite is green; note flaky tests separately so they are not blamed on the upgrade.
  2. Read upstream notes for every version between current and target. Extract a checklist: breaking changes, removed APIs, new defaults (security, serialization, timezones), minimum runtime versions, peer dependency changes.
  3. Map impact. Search the codebase for each removed or changed API. Estimate the work per item.
  4. Order the path. Upgrade one major version at a time when deprecations are removed between majors. Upgrade the runtime separately from the framework where possible.
  5. Fix deprecations first on the current version, so the version bump itself is small.
  6. Bump and adapt. Update the lockfile, apply codemods if the project provides them, and fix compile, type and test failures. Keep commits per concern.
  7. Verify beyond unit tests. Run integration and end-to-end tests, a smoke test of the built artefact or image, performance comparison on critical paths, and a container or OS vulnerability scan.
  8. Release safely. Canary or staged rollout; keep the previous artefact deployable; monitor error rate and latency.

Decision points

  • A transitive dependency blocks the upgrade → check for a compatible release, temporarily pin or override, and record the reason and an expiry.
  • An upstream bug is found → minimal reproduction, report upstream, and pin to the last good version.
  • Upgrade too large for one change → feature flags or adapters that let old and new paths coexist.

Example fixture

Upgrade: web framework 4.x -> 6.x (runtime 18 -> 22)
Step 1: runtime 18 -> 20 (framework 4.x supports it) — suite green
Step 2: fix 14 deprecation warnings on 4.x
Step 3: framework 4 -> 5 (codemod), step 4: 5 -> 6, step 5: runtime 20 -> 22

Common rationalizations

RationalizationReality
Let's jump straight to the latest major.Skipping majors skips the deprecation warnings that tell you what will break. Step through versions.
The changelog is long, the tests will tell us.Tests do not cover changed defaults (timezones, security, serialization). Read the breaking-change list.
Pin the transitive dependency forever.Pins without an owner and expiry become the next vulnerability. Record why and when to remove them.

Acceptance checks

  • Every breaking change from the upstream notes is listed with its status: handled, not applicable, deferred.
  • No new deprecation warnings are introduced; existing ones are reduced or documented.
  • Test, build and smoke results reported per step.
  • The rollback artefact and procedure are identified.

Output

Upgrade plan, per-step commits or pull requests, a breaking-change checklist and verification evidence.

Safety

Do not update production lockfiles or base images outside review. Verify package names and sources to avoid typosquatted packages (see dependency-audit). Production rollout (step 8) requires explicit approval from the system owner for each environment, with the rollback artefact confirmed beforehand.

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.