dependency-upgrade

dependency-upgrade is a skill for Claude Code, Codex from navikt/copilot. It costs 101 tokens per session (4,460 once invoked), scanned A, original, MIT.

A workflow for upgrading direct packages in Go, npm, Gradle, and .NET projects while following the repository's lockfiles and package managers. It checks versions against package registries and runs the available build and test commands.

In plain words
What is it for?
Use it to update direct dependencies across projects, including projects in a monorepo, where lockfiles and build or test commands are available.
Why use it?
It reduces accidental version invention, incorrect lockfile rewrites, unsafe major upgrades, and changes to tool or infrastructure versions that were not requested.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is pin=$(jq -r '.packageManager // empty' package.json ../package.json ../../package.json 2>/dev/null | head -n1 | cut -d+ -f1).

Good fit Use it to update direct dependencies across projects, including projects in a monorepo, where lockfiles and build or test commands are available.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/navikt/copilot
agentmods
npx agentmods add skills/navikt/copilot/dependency-upgrade

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dependency-upgrade

README.md
[![agentmods](https://agentmods.dev/badge/skills/navikt/copilot/dependency-upgrade/github.svg)](https://agentmods.dev/skills/navikt/copilot/dependency-upgrade)
Your own site
<a href="https://agentmods.dev/skills/navikt/copilot/dependency-upgrade"><img src="https://agentmods.dev/badge/skills/navikt/copilot/dependency-upgrade/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dependency-upgrade

Your own site · 80×15
<a href="https://agentmods.dev/skills/navikt/copilot/dependency-upgrade"><img src="https://agentmods.dev/badge/skills/navikt/copilot/dependency-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.04460
Opus 5.5 $0.00040 $0.01784
Sonnet 5.5 $0.00020 $0.00892
Haiku 4.5 $0.00010 $0.00446

Measured 1mo ago against content hash e46b20965782, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dependency-upgrade scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sfI "https://repo1.maven.org/maven2/<group-path>/<artifact>/<version>/<artifact>-<version>.pom" >/dev/null
skills/dependency-upgrade/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dependency upgrade

A recipe for upgrading a repo's direct dependencies that a small local model can follow without inventing versions. It is built from what went right and wrong in the nais/examples runs (navikt/mlx-workspace reports/2026-10-14-nais-examples-upgrade and reports/2026-10-15-recipe-ab): lockfile-backed dependency bumps with tests went green across Go, npm, Gradle and .NET, while unguarded runs invented tool pins, image tags and CI versions, rewrote lockfiles with the wrong package manager major, and bumped Postgres across majors.

The rule behind every step: only change what something in the repo will check.

When to Use

  • "Upgrade the dependencies", "bump everything", "update npm packages"
  • A Dependabot or Renovate backlog you want to clear in one pass
  • "Set up Dependabot groups", "tidy dependabot.yml": see Dependabot groups
  • "Find unused dependencies and remove them": see Remove unused dependencies

When NOT to Use

  • Framework migrations that require code changes: use jackson-3-migration for Jackson 2→3, and plan Spring Boot 3→4 with nav-plan until a dedicated skill exists (#2029)
  • A project with no lockfile or no test command: report that it has no lockfile/tests and skip it

1. Find each project and its ecosystem

List every project directory (a monorepo has several). Skip any project directory that lacks either a lockfile or a build/test command, and list it as skipped in the report. For each eligible project, record:

Ecosystem Lockfile Upgrade command Verify
Go go.sum list direct updates with go list -m -u -f '{{if and (not .Indirect) .Update}}{{.Path}}@{{.Update.Version}}{{end}}' all, then go get <module>@<version> && go mod tidy (without -u, so only required transitive dependencies move) go build ./... && go test ./...
npm/pnpm/yarn package-lock.json / pnpm-lock.yaml / yarn.lock the repo's pinned manager: npm update, pnpm update, or for Yarn an explicit verified same-major target (yarn upgrade <pkg>@<version> on Yarn 1, yarn up <pkg>@<version> on Yarn Berry); majors one package at a time <pm> run build (if defined) and <pm> test
Gradle gradle/libs.versions.toml or gradle.lockfile edit the catalog / build file versions after step 4 lookup; if gradle.lockfile or dependency-locks/ is present, run ./gradlew dependencies --write-locks before verifying ./gradlew build
.NET packages.lock.json dotnet list package --outdated, then dotnet add package <id> --version <v> dotnet build && dotnet test

Read the full file on GitHub · 207 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +73 lines · +25 tokens per session e46b20965782
  2. 1mo ago First seen · 134 lines · 76 tokens per session scan A 081b353b632b

Subscribe to this mod's changes

dependency-upgrade is a skill published in the GitHub repository navikt/copilot (65 stars, last pushed today), licensed MIT. It adds 101 tokens to every session and 4,460 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.

Related

dependency-upgrade compared with skills from other repositories

dependency-upgrade next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dependency-upgradenavikt/copilotSkill65todayMITA101Claude Code, Codex
skill-guideAndyElessar/skillsSkill27d agononeA102Claude Code
plugin-creatorAndyElessar/skillsSkill27d agononeA181Claude Code
csharp-source-generatorAndyElessar/skillsSkill27d agononeA112Claude Code
prose-guideAndyElessar/skillsSkill27d agononeA162Claude Code
agents-creatorAndyElessar/skillsSkill27d agononeC150Claude Code
cf-clicloudflare/skillsSkill3.5k5d agoApache-2.0A78Claude Code