agentleFS
quietmachineworksquietmachineworks/qmw/skills/upgrade-deps/SKILL.md

upgrade-deps

Skill0 starsChanged 2 months agoMITView on GitHub

Raise a project's dependencies one proven step at a time, each committed alone so a later regression bisects to one name. What cannot be raised is held and priced, never pushed through. Use when asked to update or upgrade dependencies, handle a security advisory, resolve a version conflict, or lift a project that has drifted behind its ecosystem.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-pr.

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.
  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 1

    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:

    The tree ships after every commit: Every commit this skill leaves behind is a tree where install, build and gate all pass.

    line 12

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

Upgrade deps

Dependency upgrades earn trust from two habits: work from a list, one item at a time, and never leave the tree in a state that would not ship. At every commit the tree installs, builds and passes its gate. The usual alternative is one heroic upgrade-everything branch that dies unmerged.

The tree ships after every commit. Every commit this skill leaves behind is a tree where install, build and gate all pass. There is no "upgrade first, stabilize later" phase, ever: a raise either proves out or gets reverted and held.

1. The upgrade list

Read the manifests and lockfiles for every ecosystem the repository actually carries - npm, pip, cargo, composer, gems, go modules, whatever is present - and build the list: each dependency with its installed version, its latest, the distance between the two, and any security advisory the ecosystem's own audit reports.

Present the list priced - so many advisories, so many majors, so many minors and patches, per manifest - and ask the scope: everything, advisories only, or named dependencies. A user who already named the scope in their request skips the question.

Order of work, fixed: advisories first, then raises that unblock other raises, then majors one by one, then the minor-and-patch remainder. Not alphabetical, not largest first: the order that reduces risk soonest.

2. One name out of the water at a time

  • A major goes alone. One dependency, one raise, one commit. A regression discovered a month later has to bisect to one name, and it cannot if three majors share a commit.
  • A family moves together. A core and the plugins that version-lock to it (a framework and its adapters, a compiler and its plugin set) are one name for this purpose; raising them separately just manufactures an intermediate tree that cannot ship.
  • Minors and patches may batch, per manifest, because they claim compatibility and the gate is about to check the claim. If the batch fails, bisect the batch; never ship it red or shrink the gate to fit.

3. Read before raising

  • The real release notes, fetched. The changelog between the installed version and the target, actually read, never guessed from the version number. The list of breaking changes comes from the maintainer, not from whether the build happens to pass.
  • Breaking changes intersected with actual usage. Grep the code for each API the notes say moved. A breaking change in an API the project never touches costs one line in the log; one it does touch gets its migration done inside the same raise, so the raise lands whole or not at all.
  • Warnings are part of the read. Peer-dependency complaints and deprecation notices printed by the install are read and either resolved or logged, not scrolled past. They are the next run's breakages, announced early.

4. Prove per raise

After each raise: install clean from the lockfile, build, run the project's own gate. When the product is a front end and a browser driver is available, load the primary screen once and read the console - a dependency raise is exactly the kind of change that breaks at runtime under a green unit suite.

When the gate goes red: if the fix is the documented migration and it is mechanical, do it inside the raise. If it is anything more - an API rethink, a behavioral change to absorb, a transitive conflict with no clean resolution - revert to the last shipping tree and hold. A hold is a verdict, not a failure: the upgrade list is allowed to have items this run refuses.

5. The log

.qmw/upgrade-deps/log.md at the repository top, where every skill keeps its own subdirectory under .qmw/ so each can read what the others left.

Two sections, appended as work lands:

  • Raised: name, from → to, the breaking changes met and what was done about them, the commit. This is what makes the same read never happen twice.
  • Held: name, the version it is held at, what blocked the raise, and the price of unblocking it, sized honestly (a config rewrite, an API migration touching n files, an upstream fix to wait for). The held section is the next run's starting point, and a hold whose price is a refactor of the project's own code is a /qmw:refactor mandate, written so it can be pasted.

6. Close

Close on the tally and the actions, nothing after them: raised so many, held so many, the held ones with their price in one line each, and the advisories that remain open named separately because they age differently from ordinary distance. Propose /qmw:freeze-rule when the project's manifests allow version ranges the user just said they no longer want.

Say where the run broke its own budget

One line per deviation, before the closing actions, only when there is one:

deviated: raised two majors in one commit, splitting them meant re-running a 40-minute suite
deviated: skipped the python manifest, scope agreed was npm only after the list was priced

Nothing to say is the normal case, and then print nothing at all. Only what can be counted belongs here: majors per commit against one, release notes skipped against zero, red commits against zero. A run that quietly batched its majors reports a bisectable history the repository does not have.

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.