agentleFS
HyperVonHyperVon/agent-guidance-kit/skills/dependency-upgrade/SKILL.md

dependency-upgrade

Skill1 starsChanged 15 days agoApache-2.0View on GitHub

Upgrade pinned dependencies safely — inventory across manifests and lockfiles, address security alerts first, group bumps by risk, and verify with full gates after each group. Use when updating dependencies, bumping versions, refreshing lockfiles, or addressing security alerts.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-response, tdd and 2 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.
  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    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 4 projects that use this

  • GoogleSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    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 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If authentication, permissions, pagination, or source availability prevents complete enumeration, report alert triage as BLOCKED.

    line 46
  2. Distinctive:

    Never delete a security pin to make the build pass.

    line 50
  3. Distinctive:

    When an advisory affects a transitive dependency and no parent package update is available, use the per-ecosystem override/remediation …

    line 54
  4. Distinctive:

    Keep each group small and focused.

    line 86
  5. Distinctive:

    Always use the ecosystem's deterministic update command for the targeted package.

    line 93
  6. Very specific:

    After regeneration, run git diff <lockfile> and verify that only the targeted package and its direct dependency tree changed.

    line 99
  7. Distinctive:

    Ensure lockfiles are regenerated by the package manager, not hand-edited.

    line 101
  8. Very specific:

    Update CHANGELOG.md when user-visible, and record version pins in the relevant documentation.

    line 112
  9. Very specific:

    Check runtime engine requirements (engines.node in package.json, requires-python in pyproject.toml, Rust edition in Cargo.toml) before …

    line 120
  10. Distinctive:

    Check package license changes on minor/major upgrades.

    line 121
  11. Distinctive:

    Do not downgrade or unpin a dependency to silence a warning.

    line 122
  12. Distinctive:

    Do not accept a non-permissive license without explicit approval.

    line 123
  13. Distinctive:

    Do not mix dependency bumps with feature or refactor work in the same commit.

    line 124
  14. Distinctive:

    Do not create a remote, tag, or release without separate authorization.

    line 126

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

Upgrade pinned dependencies in risk-ordered, reviewable groups. Never use floating latest tags. Verify with the full gates after each group.

Authority and scope

This skill owns the repeatable workflow for moving pinned manifests and lockfiles forward. It does not own architecture, feature work, or deployment. Work only in the requested scope and preserve behavior, wire formats, and distinct tests.

Step 0 — Freeze the baseline

Record the branch, HEAD, working-tree state, relevant runtime and package-manager versions, owning manifests, and lockfiles. Run the smallest complete existing gate before changing dependency state. If it is already red, separate the pre-existing failure from upgrade regressions and do not attribute it to the candidate change.

Step 1 — Security alerts first

Triage all open security alerts, then prioritize. Where GitHub Dependabot alerts are available, use them as the authoritative source; otherwise use the target repository or ecosystem's authoritative vulnerability or advisory source (for example the package registry's advisory database or the language's security tooling). A useful GitHub example:

gh api --paginate repos/{owner}/{repo}/dependabot/alerts --jq \
  '.[] | select(.state == "open") | [.number, .security_advisory.severity, .dependency.package.name, .dependency.manifest_path, (.security_vulnerability.vulnerable_version_range // "?")] | @tsv'
  • Triage all open alerts; prioritize critical and high severity and document blockers or unfixable alerts with owner and next step rather than ignoring medium or low findings without triage.
  • If authentication, permissions, pagination, or source availability prevents complete enumeration, report alert triage as BLOCKED; do not claim that all alerts were reviewed.
  • An alert identifies a vulnerable range, not the fixed version — confirm a supported remediation version or dependency path exists and can be expressed through the owning manifest or lockfile before changing dependency state.
  • Never delete a security pin to make the build pass.

Transitive vulnerability remediation

When an advisory affects a transitive dependency and no parent package update is available, use the per-ecosystem override/remediation recipes in ecosystem-recipes.md. Never add an internal transitive library as a direct top-level runtime dependency unless the project explicitly imports it.

Step 2 — Inventory

Collect every pinned source: manifests (package.json, requirements.txt, pyproject.toml, Gemfile, pom.xml, build.gradle, Cargo.toml, etc.), lockfiles, and container or action pins (for example Dockerfile, workflow pins, or a version file). Record current versions, latest available patch or minor, and the owning manifest.

Record supply-chain context when available: publisher or maintainer change, yanked or deprecated status, abandonment signals, install scripts, bundled binaries, provenance or attestation, registry source, and whether the package is transitive. Treat these as risk signals requiring evidence, not automatic vulnerability findings.

Step 3 — Risk-grouped bumps

Order work by risk and reviewability:

  1. Security — vulnerable direct or transitive dependencies where the package manager or advisory identifies the exposure (patch or minor that fixes the alert).
  2. Patch — backwards-compatible fixes in direct dependencies.
  3. Minor — new backwards-compatible features; check changelog and tests.
  4. Major or toolchain — breaking changes, language or action major bumps; treat as a separate change set with explicit approval.

Keep each group small and focused. Do not bundle unrelated major bumps with security fixes.

Step 4 — Verify after each group

Lockfile regeneration and churn inspection

Always use the ecosystem's deterministic update command for the targeted package. The per-ecosystem update commands are cataloged in ecosystem-recipes.md.

Regardless of ecosystem, the full-gate check MUST include git diff <lockfile> and confirm only the targeted package tree changed; detect the project's actual lockfile tool and use its deterministic command (the reference lists common examples, not an exhaustive list).

After regeneration, run git diff <lockfile> and verify that only the targeted package and its direct dependency tree changed. Reject unexpected sweeping changes to unrelated packages.

  • Ensure lockfiles are regenerated by the package manager, not hand-edited.
  • Confirm tests still protect distinct behavior and that coverage or lint gates still pass.
  • Inspect the diff for unexpected transitive changes.
  • For schema or data-shape changes, use an additive expand → backfill → contract sequence when compatibility requires it. Keep old and new code valid at each deploy step, throttle backfills, isolate destructive drops or renames, and verify the rollback/down path before the next group.

Step 5 — Document and propose

Update CHANGELOG.md when user-visible, and record version pins in the relevant documentation. Keep the PR small, conventional, and linked to the alert or issue when applicable. Stop and ask before changing pinning policy, switching registries, or accepting a license that is not clearly permissive.

Boundaries and gotchas

  • Check runtime engine requirements (engines.node in package.json, requires-python in pyproject.toml, Rust edition in Cargo.toml) before applying minor or major version bumps.
  • Check package license changes on minor/major upgrades. If a dependency changes from a permissive license (MIT, Apache-2.0, BSD) to copyleft or proprietary (GPL, AGPL, SSPL, BSL), stop and request explicit approval.
  • Do not downgrade or unpin a dependency to silence a warning.
  • Do not accept a non-permissive license without explicit approval.
  • Do not mix dependency bumps with feature or refactor work in the same commit.
  • Do not create a remote, tag, or release without separate authorization.

Relationship to neighboring skills

SkillOwns
dependency-upgrade (this)Pinned dependency and lockfile upgrade workflow
security-reviewSecurity boundary, secret, and threat-model review
quality-hardeningBounded correctness fixes with regression coverage
git-github-workflowBranch, commit, and PR hygiene

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.