agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/dependency-upgrades/SKILL.md

dependency-upgrades

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Plan and execute dependency upgrades with risk assessment,

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Distinctive:

    Plan the slice: Prefer one high-risk major at a time.

    line 28
  2. Distinctive:

    Do not invent CVE IDs, CVSS scores, or changelog entries.

    line 79
  3. Distinctive:

    Prefer the package manager's update workflow over hand-editing lockfiles.

    line 81
  4. Very specific:

    Call out peer dependency and engine constraints (node, python) explicitly.

    line 82
  5. Distinctive:

    After majors, search the repo for removed APIs and config keys you know changed — list files to touch when visible.

    line 84
  6. Very specific:

    Never recommend --force / ignoring peer deps without explaining the cost.

    line 86
  7. Distinctive:

    No lockfile: treat as higher risk; recommend introducing one.

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Upgrades

Upgrades are production changes. Treat them like deploys: know the blast radius, read what broke, and verify with the right tests.

Workflow

  1. Inventory. Package name, current → target version, direct vs transitive, ecosystem (npm, pip, cargo, go, maven, etc.).
  2. Why now. Security CVE, feature need, ecosystem pressure, or routine maintenance. Security may justify wider risk.
  3. Read release notes for every major/minor jump on the path (not only the final version). Note breaking changes, renames, peer deps.
  4. Plan the slice. Prefer one high-risk major at a time; batch low-risk patch bumps when tooling allows.
  5. Apply, resolve, verify. Lockfile committed; run unit/integration and any smoke paths that exercise the library.
  6. Rollback plan. Pin previous version; know if native addons or codegen need clean rebuilds.

Risk rubric

SignalRisk
Patch/security-only, wide adoptionLower
Major version, public API used deeplyHigher
Auth, crypto, DB driver, framework coreHigher
DevDependency / types-onlyLower
Native bindings, Electron, mobileHigher

Output format

## Upgrade plan: <package> <from> → <to>

**Motivation:** security | feature | maintenance
**Risk:** low | medium | high
**Scope:** direct deps affected, related peers

### Breaking changes that matter here
- … (only those that touch this codebase)

### Steps
1. …
2. …

### Commands
```bash
# ecosystem-specific

Verification

  • tests: …
  • manual smoke: …

Rollback

…

Open questions

…


## Rules

1. Do not invent CVE IDs, CVSS scores, or changelog entries. If you lack
   network/docs, say what to look up.
2. Prefer the package manager's update workflow over hand-editing lockfiles.
3. Call out peer dependency and engine constraints (`node`, `python`) explicitly.
4. Separating "security emergency bump" from "spring cleaning" is good planning.
5. After majors, search the repo for removed APIs and config keys you know
   changed — list files to touch when visible.
6. Never recommend `--force` / ignoring peer deps without explaining the cost.

## Edge cases

- **Transitive CVE only:** upgrade the direct parent that pulls a fixed
  version; document if a temporary override/pin is used.
- **Monorepo:** state which packages share the dependency and whether
  versions must align.
- **Multiple majors behind:** step through intermediate majors if the
  project documents a migration path.
- **No lockfile:** treat as higher risk; recommend introducing one.

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.