agentleFS
aethroxaethrox/doctrine/skills/dependency-upgrade-management/SKILL.md

dependency-upgrade-management

Skill18 starsChanged 3 months agoMITView on GitHub

Discipline for keeping dependencies current and deprecating capabilities safely, an inventory (SBOM) of what's actually shipped, security patches on a fast lane separate from routine/major upgrades, and a stated deprecation window (Sunset/Deprecation headers, N-2 support) before removing anything consumers rely on. Use when upgrading a dependency, triaging a Dependabot/Renovate PR, deciding whether an upgrade is safe to automerge, or planning to deprecate or remove a capability others depend on.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before triaging any upgrade, the project needs an accurate inventory of its dependency tree, not just its direct …

    line 12
  2. Distinctive:

    Only remove the deprecated path after the stated sunset date has passed, removing it early because "surely nobody's still on it" breaks …

    line 36
  3. Distinctive:

    When upgrading a dependency across a major version, in order:

    line 40
  4. Distinctive:

    Read the changelog for breaking changes, not just the version number's assumption of "probably fine."

    line 42
  5. Distinctive:

    Check the codebase for every usage site the breaking changes actually touch.

    line 43
  6. Very specific:

    Run the full test suite (leaning on tdd's suite, not just the changed area) before merging.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 & Upgrade Management

A dependency is code you didn't write but do ship; it needs the same update discipline as your own code, except split into lanes by risk: a security patch and a major-version upgrade are different kinds of change with different urgency, and treating them identically means either shipping security fixes too slowly or shipping breaking changes too casually.

Phase 1: Know what you ship (SBOM)

Before triaging any upgrade, the project needs an accurate inventory of its dependency tree, not just its direct package.json/requirements.txt/Cargo.toml entries; transitive dependencies carry just as much risk and are the ones people forget about.

  • Generate a Software Bill of Materials (SBOM) in CycloneDX or SPDX format as part of the build, not as a one-off manual export; an SBOM that's stale by the next release doesn't answer "what are we actually running" when a new CVE drops.
  • The SBOM is what a dependency-vulnerability scan (see secure-coding's Phase 4) runs against; inventory and scanning are two steps of the same discipline, not separate concerns.

Phase 2: Two lanes, not one queue

Route every proposed upgrade (automated PR or manual bump) into the lane that matches its risk:

LaneTriggerReview depthCadence
Security fast-tracka CVE against a version currently in useDoctrine's default policy is to automerge if it's a patch-level bump with a passing test suite and a short observation window; manual review only if it's also a major bumpimmediate, outside the batch schedule
Routine batchnon-security patch/minor bumpsgrouped, reviewed together, low ceremonyweekly or similar fixed cadence: batching avoids a constant trickle of one-line PRs eating review attention
Major-version migrationa major version bump, even with no known CVEfull review: read the changelog for breaking changes, run the full test suite, check every usage site the upgrade touchesdeliberate, scheduled, never auto-merged

A security fix that also happens to be a major bump does not get the fast-track's automerge; the urgency of the CVE doesn't remove the risk of the breaking change; it goes to manual review, expedited.

Phase 3: Deprecating something others depend on

The same discipline a dependency owner owes you, you owe your own consumers (internal teams, API clients, plugin authors) when removing a capability:

  • Signal the deprecation before removal, for an HTTP API, the Deprecation and Sunset response headers (RFC 8594 / RFC 9745) plus a Link header pointing at migration docs; for a library, a deprecation warning at the call site plus a changelog entry.
  • State a concrete removal date in the signal, not "in a future release"; an open-ended deprecation trains consumers to ignore the warning, since there's no deadline forcing action.
  • Support the old and new path simultaneously during the window. Doctrine's default baseline is N-2: support the current version plus the two prior ones, so a consumer has a real runway rather than a single release cycle to migrate.
  • Only remove the deprecated path after the stated sunset date has passed, removing it early because "surely nobody's still on it" breaks whoever didn't get the memo in time, which is exactly the failure this phase exists to prevent.

Phase 4: Safe major-version migration (as the consumer)

When upgrading a dependency across a major version, in order:

  1. Read the changelog for breaking changes, not just the version number's assumption of "probably fine."
  2. Check the codebase for every usage site the breaking changes actually touch; a global search for the API surface that changed, not a spot check.
  3. Apply the vendor's codemod/migration tool if one exists; hand-port only what it can't cover.
  4. Run the full test suite (leaning on tdd's suite, not just the changed area) before merging.
  5. Where the ecosystem supports it, roll the upgrade out to a subset of traffic/environments first (the same progressive approach as safe-deployment) rather than flipping every consumer to the new major version at once.

Done when

  • The project's SBOM reflects the current dependency tree and is regenerated as part of the build.
  • Every open upgrade PR is in the lane matching its actual risk, not queued generically.
  • No capability was removed without a prior deprecation signal carrying a concrete removal date and a support window.
  • A major-version upgrade was reviewed against its changelog and every real usage site, not merged on the strength of a passing CI run alone.
  • Generated prose uses commas, colons, periods, or reworded sentences instead of em dashes.

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.