agentleFS
leroyguillaumeleroyguillaume/skills/dependency-update-conventions/SKILL.md

dependency-update-conventions

Skill7 starsChanged 4 days agoMITView on GitHub

Renovate configuration and its PRs; Dependabot version updates are not used. TRIGGER when: editing `renovate.json`/`.json5`, `.renovaterc`, a `renovate` key in `package.json`; a repo has `.github/dependabot.yml`/`.yaml`; setting up automated updates; adding a custom manager; triaging or merging bot PRs, especially failing ones; user asks about update grouping or scheduling. SKIP when: bumping a dependency by hand with no bot involved.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 5 are distinctive, and 13 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.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Delete .github/dependabot.yaml in the same PR, so no ecosystem has two owners for even one run.

    line 32
  2. Distinctive:

    Add the group to the bot config in that same PR, so the next release arrives as one PR.

    line 99
  3. Distinctive:

    Not automerging removes both the staleness and the workaround.

    line 222
  4. Very specific:

    Every packageRules entry, customManagers entry and custom datasource takes a description, and Renovate surfaces it — in the dependency …

    line 230
  5. Very specific:

    The baseline sets no label: When the repo has .github/release.yaml, add "labels": ["<changelog-category label>"] so bot PRs land in the …

    line 293
  6. Very specific:

    When the *manager* exists but nothing knows how to list versions — a dashboard id on a vendor's API, an internal index — declare a …

    line 360
  7. Distinctive:

    Never enable automerge, in any form — including a workflow that merges bot PRs for you.

    line 398
  8. Very specific:

    Never add a .github/dependabot.yaml, and never leave Dependabot security updates on beside Renovate.

    line 400
  9. Distinctive:

    Never turn the dependency dashboard off.

    line 402
  10. Very specific:

    Never commit a Renovate config without renovate-config-validator --strict passing on it.

    line 403
  11. Very specific:

    Never add a custom manager without a description quoting the line it matches, and never merge one without a dry run.

    line 405
  12. Very specific:

    Never leave the pre-commit manager off in a repo with a .pre-commit-config.yaml.

    line 407
  13. Very specific:

    Never take platformAutomerge: false for "automerge is off".

    line 409
  14. Very specific:

    Never put commitMessage* at the top level and assume it applies — manager defaults win.

    line 410
  15. Very specific:

    Never document a rule with a comment when it takes a description.

    line 412
  16. Very specific:

    Never group a toolchain across mise and dockerfile without pointing mise at the image's tags.

    line 415
  17. Very specific:

    Never tick a pending update on the dashboard to get past minimumReleaseAge on a grouped dependency — fix the rule.

    line 417
  18. Distinctive:

    Never patch lockstep bot PRs one by one — bump the family together and add the group in the same PR.

    line 419

≈ “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-update conventions

Renovate, and only Renovate

Renovate owns every dependency update, on every platform. One bot, one config, one review flow: the same renovate.json shape on GitHub and on GitLab, custom managers for the version strings no ecosystem knows about (a chart version in a catalog, a tool in a Dockerfile ARG), the mise manager for mise.toml and mise.lock, and grouping and scheduling rules that apply across all of them. A second bot only adds a second config to keep in step and a second place for a bump to come from. It runs self-hosted, from the repository's own CI (renovate-ci-conventions).

Dependabot version updates are not used. A repository that still has a .github/dependabot.yaml moves over in one PR:

  1. Map each Dependabot ecosystem to the Renovate manager that covers it (github-actions, cargo, npm, pip_requirements/pep621, dockerfile, pre-commit, …), and carry its groups, cooldown and labels over to packageRules, minimumReleaseAge and labels.
  2. Delete .github/dependabot.yaml in the same PR, so no ecosystem has two owners for even one run.
  3. Turn Dependabot security updates off: Renovate's vulnerabilityAlerts opens the security PRs, and both would open one for the same bump. Leave Dependabot alerts on — they are where Renovate reads the advisories from (github-repo-settings).

Pins stay pins. The github-actions manager bumps a SHA-pinned uses: together with its trailing # vX.Y.Z comment, and the pre-commit manager a rev: <sha> # frozen: <tag> line — but pre-commit is off by default and must be enabled, or the hook revisions silently stop moving. It follows hooks hosted on GitHub, GitLab and Forgejo only, and bumps additional_dependencies only for a hook that declares language: golang, node or python; any other one is bumped by hand.

Never automerge

No automerge, in any form. Not automerge: true, not an automerge preset (:automergeMinor, :automergeDigest, …), not platformAutomerge, and not a workflow that runs gh pr merge --auto on a bot PR.

The reason is not fear of breakage — it is that a dependency bump is a change to production that nobody read. Green CI is not a review: it proves the tests that already existed still pass, which is exactly the bar a compromised release is built to clear. The supply-chain attacks that matter all ship a version whose test suite is green.

platformAutomerge: false does not disable automerge, and reads as though it does. It only chooses who merges: with automerge: true still set, Renovate merges the PR itself instead of handing GitHub's auto-merge the job. A config carrying "platformAutomerge": false next to "automerge": true is an automerging config.

The cost is real and is paid deliberately: someone reads the bump, then presses merge — the user, or a session clearing the queue (below). A session merging on green CI alone is automerge under another name. Bring the number of presses down with grouping and scheduling, never with automerge:

  • group patch and minor updates per ecosystem into one PR; keep every major on its own, because that one needs the release notes read;
  • group what must move together — a different reason, which prevents breakage rather than noise; see the next section;
  • minimumReleaseAge so a release has to survive a few days in the wild before it is proposed;
  • prConcurrentLimit so the queue stays a queue and not a wall.

Group what must move together

Some packages are released in lockstep: a core crate and its SDK and exporters, a framework and its integrations, two charts version-locked upstream, the chart and the CRD set that are two sources of one Application. A bot opens one PR per package, and each of them is broken on its own — either it fails to build, or it merges alone and runs a combination nobody tested.

Spot it on the PRs themselves. Several bot PRs for the same family, opened together, all red with type or trait mismatches between sibling packages (expected X, found X naming two versions of one crate, a method or trait impl that "does not exist" on a type from the sibling), are one lockstep group, not N bugs. Bumping one member leaves two versions of the core in the dependency graph; that is the whole error.

Then, instead of patching each PR:

  1. Open one PR that bumps the whole family together, and fix the code there if the new release genuinely needs it — usually it does not.
  2. Add the group to the bot config in that same PR, so the next release arrives as one PR.
  3. Close the bot PRs it supersedes, each with a comment naming the PR that replaces them.

The group takes every update type, majors included. A lockstep family breaks on a major exactly as on a minor, and 0.x families bump the minor for a breaking release anyway. config:recommended already groups the monorepos it knows (group:monorepos); add a rule only for a family it misses, and match by file (matchFileNames) when a member's depName is a git URL rather than a package name. Put the lockstep rule after the patch/minor catch-all: when several packageRules match, the later one's groupName wins.

A group can span managers. A toolchain pinned in mise.toml and in a Dockerfile FROM is seen by mise and by dockerfile, which open one PR each; both carry the same depName (rust, python, node), so group on matchDepNames, never on matchManagers.

{
  "packageRules": [
    {
      "description": "Minor and patch bumps land as one PR; each major gets its own",
      "matchUpdateTypes": ["minor", "patch"],
      "groupName": "minor and patch"
    },
    {
      "description": "SDK and exporters only compile against the matching opentelemetry release",
      "matchPackageNames": ["opentelemetry*"],
      "groupName": "opentelemetry"
    }
  ]
}

Grouping is not enough: point mise at the image's tags. mise reads a toolchain's versions from its own release feed (static.rust-lang.org, nodejs.org, python.org), dockerfile from the registry, and the official image ships days after the toolchain. A group only carries updates that exist, so its branch leaves with mise.toml alone and the FROM stays behind. A rule scoped to mise makes it read the image's tags instead, so it only moves to a version whose image is out — then mind the missing timestamps:

{
  "description": "mise bumps rust only to a version the official rust image ships",
  "matchManagers": ["mise"],
  "matchDepNames": ["rust"],
  "overrideDatasource": "docker",
  "overridePackageName": "rust",
  "versioning": "docker"
}

Families that are known to move together — examples, not a whitelist; the failing PRs above are the real signal:

EcosystemFamily
cargoopentelemetry*; tonic* with prost*; aws-sdk-* with aws-config, aws-smithy-*; aide with schemars, axum, axum-extra
npm@astrojs/* with astro; react with react-dom; @typescript-eslint/*
pipboto3 with botocore
Helm / Argo CDa chart and its separately-sourced CRDs
mise + dockerfilea toolchain in mise.toml and its FROM image, with mise on the image's tags

Clearing the PR queue

Sort the queue with a look, not an investigation: each open bot PR, its CI status and its update type.

A green PR that needs no code change is read, then merged by the session. Read the release notes or changelog across the whole range, from the old version to the new one, and check the diff moves only what the PR announces — no package appearing in a lockfile from nowhere. Leave it unmerged and tell the user what was seen when something looks off: a new dependency or install script, a changed maintainer or source repository, a release with no notes or no matching upstream tag. Otherwise merge it, with every check green and none pending, by the repo's merge method — never --admin past branch protection, never --auto. One at a time: a merge often makes Renovate rebase the others, so re-read the next one's checks. Then bring the main checkout up to date, as after any merge.

A PR that needs examining gets a dedicated session: CI red, or a major whose release notes announce a breaking change the code has to absorb. The session clearing the queue launches one per such PR — a visible session of its own inside herdr (herdr-delegation), a sub-agent otherwise — and does not dig into it itself, not even a quick read of the failing job's log. The investigation would fill the context that holds the queue, the fix needs its own branch, PR and CI round-trips that the user follows in that session, and several failing PRs move forward in parallel instead of one after the other.

One session per cause, not per PR. Several PRs red for one lockstep family are a single topic (previous section): one session, one grouped PR.

Dependency dashboard on

The dashboard is on, always. It is the only place that shows what Renovate decided not to open a PR for — rate-limited, blocked by a failed lookup, awaiting approval, deprecated datasource, explicitly ignored.

Without it, silence is ambiguous: no PR for three months reads as "nothing to update" and means "the manager stopped matching after a refactor" just as often. The dashboard is what turns that into a visible list.

{
  "dependencyDashboard": { "enabled": true, "title": "Dependency dashboard" }
}

It is an object: a bare true or a separate dependencyDashboardTitle is the deprecated form, which Renovate migrates on the fly and flags with Config needs migrating on every run.

  • Automerge breaks the dashboard, which is the second reason not to use it. Renovate writes the dashboard only on a pass that does not end in an automerge, and gives up after one retry — so a run that merges anything leaves the dashboard stale, and a repo that merges most days leaves it stale for months. The known workaround is a second Renovate pass forced with RENOVATE_FORCE: '{"automerge":false}' purely to reach the dashboard write. Not automerging removes both the staleness and the workaround.
  • dependencyDashboardApproval: true for majors is a good pairing with no-automerge on a busy repo: the major waits on the dashboard until someone ticks it, instead of sitting open as a stale PR.

Renovate configuration

Document rules with Renovate's own description field, not with comments. Every packageRules entry, customManagers entry and custom datasource takes a description, and Renovate surfaces it — in the dependency dashboard and in the PR body — where a JSON5 comment is visible only to whoever opens the file. A rule whose match is not self-evident, a pin with a reason, an ignoreDeps entry: description, every time.

That settles the file format: plain renovate.json is enough, because the documentation lives in the config rather than around it. Reach for renovate.json5 only for commentary that genuinely should not appear in a PR body.

Baseline:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["config:recommended"],
  "timezone": "Europe/Paris",
  "dependencyDashboard": { "enabled": true },
  "prConcurrentLimit": 5,
  "minimumReleaseAge": "3 days",
  "lockFileMaintenance": { "enabled": true }
}
  • Validate it with renovate-config-validator --strict, as a pre-commit hook. Renovate renames options between releases and keeps accepting the old names, so a stale key never fails a run: it only logs Config needs migrating, where nobody looks. --strict fails on it instead, and when the pre-commit manager bumps the hook to a Renovate release that renames a key, that bump's CI goes red; --migrate rewrites the file into the current form. --no-global is not optional: given file names, as the hook passes them, the validator checks them as self-hosted global config and misses repo-config problems.

    - repo: https://github.com/renovatebot/pre-commit-hooks
      rev: <latest tag SHA>  # frozen: <latest tag>
      hooks:
        - id: renovate-config-validator
          args:
            - --strict
            - --no-global
  • minimumReleaseAge waits forever on a release with no timestamp. Docker Hub's anonymous API refuses to page past 1000 tags, which official images such as rust or node exceed, and quay.io gives no dates either: Renovate falls back to the registry's tag list, and the default minimumReleaseAgeBehaviour: "timestamp-required" leaves the update pending (Marking 1 release(s) as pending, as they do not have a releaseTimestamp). Unpending it from the dashboard opens the PR but splits its group. Two fixes, and the choice is the user's, so lay both out: minimumReleaseAge: null on a rule matching those images, its description saying the image's own publication is the delay; or Docker Hub credentials in hostRules, a new secret for the Renovate job (renovate-ci-conventions).
  • Lock file maintenance is on. Renovate rewrites a lockfile only when a direct dependency moves, so without it a transitive dependency in Cargo.lock, uv.lock or mise.lock stays on the version it was first locked at, CVE fixes included. It opens one weekly PR, reviewed like any other.
  • The baseline sets no label. When the repo has .github/release.yaml, add "labels": ["<changelog-category label>"] so bot PRs land in the right release-notes section — see github-pr-conventions, and read the repo's actual labels rather than inventing one. With a security category, "vulnerabilityAlerts": {"labels": ["security"]} files the CVE fixes there, as the release notes must. Without that file, set no category label. Renovate applies no label unless labels is set; relabelling a bot PR by hand is lost on the next one, so fix the config.
  • Match the repository's commit style, read from git log --oneline rather than assumed. Renovate's default is chore(deps): …; a repo writing lowercase <area>: <imperative> subjects sets semanticCommits: "disabled" and its own commitMessage* keys.

    The commitMessage* keys belong in a packageRules entry matching every package, not at the top level — manager defaults (Helm release {{depName}}, and one per manager) beat top-level commitMessage*, so a top-level setting silently applies to some managers and not others:

    {
      "matchPackageNames": ["*"],
      "commitMessagePrefix": "{{depName}}:",
      "commitMessageAction": "bump",
      "commitMessageTopic": "to {{newVersion}}",
      "commitMessageExtra": ""
    }
  • rangeStrategy: pin for an application (the deployed version belongs in git), bump or the ecosystem default for a published library (pinning a library's ranges pushes the conflict onto its consumers).
  • Schedule off-hours if the repo is noisy, but never schedule security updates away — leave vulnerabilityAlerts unrestricted: with Dependabot security updates off, it is the only thing opening security PRs.

Scope the built-in managers before writing a custom one

Renovate ships managers for far more than lockfiles, and in a GitOps repo they do most of the work: argocd (chart versions in Application manifests), helm-values, crossplane, kubernetes, pre-commit. Check whether one already sees your file before reaching for a regex.

Most of them are off, or scoped to filenames that do not match your layout, until you point them at it — that is the usual reason "Renovate isn't picking this up":

{
  "argocd": {
    "managerFilePatterns": ["/^apps/.*\\.yaml$/"]
  },
  "helm-values": {
    "managerFilePatterns": ["/(^|/)values\\.ya?ml$/"]
  },
  "pre-commit": { "enabled": true }
}

A manager that sees the file can still skip an entry, silently. mise reads its registry but not aqua's: it skips aqua packages of the http type (write helm, not aqua:helm/helm) and asdf or vfox plugin paths, and misreads an aqua version_filter until a packageRules entry sets extractVersion for that tool (cli/(?<version>.+) for aqua:biomejs/biome). Check that every pin shows up under the dashboard's detected dependencies.

Custom datasources

When the manager exists but nothing knows how to list versions — a dashboard id on a vendor's API, an internal index — declare a customDatasources entry with a transformTemplates JSONata expression mapping the response onto releases[].version. It pairs with a custom manager: the manager finds the string, the datasource says what newer looks like.

Give it a versioningTemplate that matches reality. A bare incrementing integer with semver versioning classifies every bump as a major, which then trips whatever gate you put on majors — use a regex: versioning instead and say so in the description.

Custom managers

The reason Renovate is there at all, usually. Each one needs a description saying which file it matches and quoting a line it matches — a regex over someone else's format is unreadable six months later:

{
  "customManagers": [
    {
      "description": "Chart versions in the app catalog, e.g. `// renovate: datasource=docker depName=…` followed by `version: '1.2.3',`",
      "customType": "regex",
      "managerFilePatterns": ["/^apps/[^/]+/catalog\\.libsonnet$/"],
      "matchStrings": ["datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+version: '(?<currentValue>[^']+)'"],
      "versioningTemplate": "semver"
    }
  ]
}

Dry-run a custom manager before merging it (renovate --dry-run, or the debug log of the next run). A regex that matches nothing fails silently — it just never opens a PR, which looks exactly like being up to date. That is also what the dashboard is for.

Never:

  • Never enable automerge, in any form — including a workflow that merges bot PRs for you.
  • Never add a .github/dependabot.yaml, and never leave Dependabot security updates on beside Renovate.
  • Never turn the dependency dashboard off.
  • Never commit a Renovate config without renovate-config-validator --strict passing on it.
  • Never add a custom manager without a description quoting the line it matches, and never merge one without a dry run.
  • Never leave the pre-commit manager off in a repo with a .pre-commit-config.yaml.
  • Never take platformAutomerge: false for "automerge is off".
  • Never put commitMessage* at the top level and assume it applies — manager defaults win.
  • Never document a rule with a comment when it takes a description.
  • In a repo with .github/release.yaml, never let a bot PR go in without the changelog-category label its release notes sort on.
  • Never group a toolchain across mise and dockerfile without pointing mise at the image's tags.
  • Never tick a pending update on the dashboard to get past minimumReleaseAge on a grouped dependency — fix the rule.
  • Never patch lockstep bot PRs one by one — bump the family together and add the group in the same PR.

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.