agentleFS
ElderGilElderGil/goprod/skills/dep-bump/SKILL.md

dep-bump

Skill1 starsChanged 2 months agoMITView on GitHub

Clear dependency-bot bump PRs (Dependabot, Renovate) fast and safely — batch, never serialize — consolidate all open bumps into one package-manager update to the newest compatible versions, one verification pass, fix forward, one commit closing every PR. Enforces a supply-chain floor (public registry, expected name/version/checksum; git/path sources, typosquat-adjacent names, or new install hooks stop and go to pr-audit) and closes the loop on every PR not consolidated. Use when the user says "run dep-bump"/"run pr-bump", "clear the dependabot PRs", "merge the dependency bumps", or when only bot-authored dependency PRs are queued. Anything touching application code, migrations, Dockerfiles, or non-dependency config goes to pr-audit instead.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. mattbutlerengineering/mattbutlerengineering★ 3same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Read docs/ship-readiness.md for the gate command, default branch, and tier.

    line 15
  2. Distinctive:

    No profile → detect from CI/manifests and say so.

    line 16
  3. Very specific:

    Major bumps: never consolidated here unless the user asks — they go to pr-audit with a disposition (below).

    line 18
  4. Very specific:

    Only bot-authored, dependency-metadata-only PRs.

    line 28
  5. Distinctive:

    Never commit unrelated local changes.

    line 31
  6. Distinctive:

    Do not run broad auto-formatters to make CI pass.

    line 34
  7. Distinctive:

    Before updating, verify each bumped package resolves from the project's default public registry (npm, PyPI, RubyGems, crates.io, Go proxy, …

    line 38
  8. Distinctive:

    When no dependency-bot PRs are open — or no bot is configured — do not invent work:

    line 50
  9. Very specific:

    Run the ecosystem's read-only checks (npm outdated + npm audit --omit=dev, pip list --outdated + pip-audit, bundle outdated + bundle audit, …

    line 53
  10. Very specific:

    If no bot is configured, recommend enabling one and show the minimal config for the project's ecosystems (.github/dependabot.yml or …

    line 59
  11. Distinctive:

    Do not widen manifest constraints or cross a major unless the user asks.

    line 93
  12. Distinctive:

    Run the full gate from the profile (or CI-equivalent) once over the consolidated set — never per bump.

    line 100
  13. Very specific:

    Before finishing, every PR you did not consolidate gets a comment on the forge saying why (major bump, suspicious source, non-metadata …

    line 124
  14. Very specific:

    If .goprod/usage-log.md exists in the project, append one entry for this run before finishing, in the format defined by the usage-report …

    line 147

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

Several bump PRs are one unit of work. Merging and testing them one at a time is pipeline churn and produces conflicting lockfiles. Consolidate them, let the package manager resolve the newest compatible versions (possibly newer than any PR proposes), verify once, fix forward.

Calibrate from the delivery profile

Read docs/ship-readiness.md for the gate command, default branch, and tier. No profile → detect from CI/manifests and say so.

  • Major bumps: never consolidated here unless the user asks — they go to pr-audit with a disposition (below).
  • T3: a bump of a dependency used on an irreversible path (payment SDK, messaging client, device driver) goes to pr-audit, even if minor — the change surface is the provider's behavior, not your lockfile.
  • Public library (T2): bumps that widen your own published dependency ranges are a release-impact decision; report them, do not widen silently.

Preconditions and guardrails

  • Only bot-authored, dependency-metadata-only PRs. Check files changed; any application code, migration, Dockerfile, CI, or non-dependency config → pr-audit.
  • Never commit unrelated local changes. Inspect git status --short --branch, git diff --stat, git log --oneline -10. If the deploy builds from the working tree, stash unrelated files during the build and restore them after.
  • Do not run broad auto-formatters to make CI pass. Narrow fixes only.

Supply-chain floor

Before updating, verify each bumped package resolves from the project's default public registry (npm, PyPI, RubyGems, crates.io, Go proxy, Maven Central, NuGet…) with the expected name, version, and checksum. Stop and hand to pr-audit on: git/path sources, a changed registry, renamed or republished packages, typosquat-adjacent names, a new maintainer on a low-download package, or new install/build hooks (npm lifecycle scripts, build.rs, setup hooks). Advisory scanners only flag known issues — a well-formed bump to a trojaned release passes them. This floor exists for that case.

No bot PRs (check mode)

When no dependency-bot PRs are open — or no bot is configured — do not invent work:

  1. Run the ecosystem's read-only checks (npm outdated + npm audit --omit=dev, pip list --outdated + pip-audit, bundle outdated + bundle audit, cargo outdated + cargo audit, or the project's equivalent; note which tools are not installed).
  2. Report: advisories affecting production dependencies first (with whether a compatible fixed version exists), then outdated majors, then the rest.
  3. If no bot is configured, recommend enabling one and show the minimal config for the project's ecosystems (.github/dependabot.yml or Renovate).
  4. Change nothing unless the user approves specific updates. Approved manual updates follow Steps 2–4 with the same supply-chain floor. When an advisory has no compatible fix, removing or replacing the dependency is often the real fix — hand that decision to issue-audit/ticket-resolution as a ticket, not a bump.

Step 1: Inventory

gh pr list --state open --json number,title,author,labels,headRefName,baseRefName,isDraft,url
gh pr diff <N> --name-only
gh pr view <N> --json files,statusCheckRollup,mergeable

Routine signals: bot author, dependencies label, simple "Bump X from a to b" title, only manifest/lockfile changed, patch or minor. A red bot branch is often a stale lockfile; judge by the consolidated update, not the branch CI.

Step 2: Consolidate with the package manager

On the default branch, update all bumped packages together to the newest version the existing constraints allow:

EcosystemConsolidated update
npm / pnpm / yarnnpm update <a> <b> · pnpm update <a> <b> · yarn up <a> <b>
Python (uv / poetry / pip-tools)uv lock --upgrade-package a --upgrade-package b · poetry update a b · pip-compile -P a -P b
Rubybundle update <a> <b> then bundle check
Rustcargo update -p a -p b
Gogo get a@latest b@latest && go mod tidy (within the major)
Othersthe project's documented equivalent

Do not widen manifest constraints or cross a major unless the user asks. If the true upstream latest needs a constraint change, apply the latest compatible version and report what going further would require. Note transitive updates in the summary.

Step 3: Verify once

Run the full gate from the profile (or CI-equivalent) once over the consolidated set — never per bump. On failure:

  1. Reproduce the failing subset.
  2. Decide: dependency change, CI environment, or pre-existing flakiness.
  3. Smallest fix that removes the cause; re-run focused then full gate.
  4. Fix forward inside the consolidated change (pin, constraint tweak, code fix). To isolate a culprit, bisect in a scratch worktree — do not un-bundle back into per-PR merges.

Step 4: Commit and push

Detect the default branch (gh repo view --json defaultBranchRef --jq .defaultBranchRef.name) — never assume main or master; Closes #N only works on the default branch.

Stage only the intended files, commit dependency changes separately from any test/CI hardening, reference every consolidated PR (Closes #N for each), push. Then confirm the PRs closed and watch hosted CI on the pushed SHA. Do not deploy before CI is green unless the user explicitly accepts the risk.

Step 5: Close the loop on everything not consolidated

"Deferred", "escalated", or "declined" is a disposition, not a resting state. Before finishing, every PR you did not consolidate gets a comment on the forge saying why (major bump, suspicious source, non-metadata change, failing build) and is either closed or linked to a tracking issue (and handed to pr-audit if it needs review). Mentioning it only in your summary is not resolving it.

Output

## Dependency bump

Closed PRs: #a, #b
Updated: pkg 1.2.3 → 1.2.5 (newer than PR target 1.2.4), transitive: dep 0.8 → 0.9
Supply-chain floor: passed | stopped on <pkg>: <reason> → pr-audit
Local gate: <command> — pass/fail
Hosted CI: <run> on <SHA>
Not consolidated: #c (major) — commented + closed, tracking #d
Local changes left untouched: <files | none>
Deploy: not requested | done, health: <result>

Usage log

If .goprod/usage-log.md exists in the project, append one entry for this run before finishing, in the format defined by the usage-report skill (input, produced, improvised/skipped, skill defect, my mistake, numbers, evidence). Log where this skill did not fit the project: that is the most useful feedback.

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.