dep-vuln-update

dep-vuln-update is a skill for Claude Code from sneg55/agent-starter. It costs 102 tokens per session (1,374 once invoked), scanned A, original, MIT.

A workflow for finding known security advisories in dependency lockfiles and updating affected packages with the smallest suitable change. A lockfile records the exact package versions used by a project.

In plain words
What is it for?
Use it to scan Git-tracked lockfiles with osv-scanner, fix vulnerable packages, and leave a reviewable commit. An optional commit or merge-request hook reports advisories but does not block the command.
Why use it?
It helps remove publicly reported dependency vulnerabilities while limiting unrelated updates. It also checks that the repository still builds and passes its tests after the update.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths.

Part of the agent-starter plugin — 10 skills, 5 hooks shipped together

Good fit Use it to scan Git-tracked lockfiles with osv-scanner, fix vulnerable packages, and leave a reviewable commit. An optional commit or merge-request hook reports advisories but does not block the command.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sneg55/agent-starter/dep-vuln-update
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sneg55/agent-starter --skill dep-vuln-update
Clone the repo
git clone --depth 1 https://github.com/sneg55/agent-starter

Made for: Claude Code.

Or install agent-starter, the plugin that ships this one along with the rest of its 10 skills, 5 hooks.

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 dep-vuln-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/sneg55/agent-starter/dep-vuln-update/github.svg)](https://agentmods.dev/skills/sneg55/agent-starter/dep-vuln-update)
Your own site
<a href="https://agentmods.dev/skills/sneg55/agent-starter/dep-vuln-update"><img src="https://agentmods.dev/badge/skills/sneg55/agent-starter/dep-vuln-update/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 dep-vuln-update

Your own site · 80×15
<a href="https://agentmods.dev/skills/sneg55/agent-starter/dep-vuln-update"><img src="https://agentmods.dev/badge/skills/sneg55/agent-starter/dep-vuln-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00102 $0.01374
Opus 5.5 $0.00041 $0.00550
Sonnet 5.5 $0.00020 $0.00275
Haiku 4.5 $0.00010 $0.00137

Measured 4d ago against content hash 713a10338ef3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dep-vuln-update scanned grade A with 0 findings 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dep-vuln-update/SKILL.md · 55 lines

How it starts

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

Dependency vulnerability update

Clear known advisories with the smallest change that removes them, prove the repo still builds and passes, and leave a commit the user can read.

How it is triggered

Directly, when the user asks to fix vulnerable dependencies, or through the opt-in commit gate. ./install.sh --with-dep-vuln-gate copies scripts/scan.py to ~/.claude/hooks/dep-vuln-scan.py and wires it as a PreToolUse hook on Bash that runs whenever a command contains git commit, gh pr create, glab mr create, or merge_request.create. It scans only lockfiles tracked by git in that repo, so .claude/worktrees, node_modules and other clones are skipped. Results are cached per lockfile content per UTC day, and the hook reports a given lockfile state at most once per session per gate (commit, merge request). It never blocks the command.

Requires osv-scanner on PATH. The scan sends package names and versions to the OSV.dev API.

When the hook output lands in context: finish the commit or MR the user asked for, then tell them in one line how many advisories and how many are fixable, and ask whether to fix now. Do not start without a yes.

Workflow

  1. Scan. python3 -I <this skill's directory>/scripts/scan.py --repo <root> --no-cache gives one line per package with the version that clears all its advisories. --detail lists each advisory, --json gives the raw findings. Exit 1 means something fixable remains.
  2. Isolate. In a shared main checkout, ask before editing whether to work in a fresh worktree. Use a branch named deps/vuln-YYYY-MM-DD.
  3. Triage. Fix in this order: CRITICAL and HIGH with a fix, then the rest with a fix. Skip no fix yet. Anything marked MAJOR BUMP goes on a list for the user and is not applied without their call. Dev-only tooling (docs sites, test runners) still gets fixed when the bump is minor, since it is cheap.
  4. Fix, smallest first.
    • Direct dependency: raise it to the clears at version, or the lowest version in the same major that satisfies it. Keep the existing range style (^, ~, pinned).
    • Transitive dependency: first try updating the parent within its range (pnpm update <parent>, npm update <parent>, uv lock --upgrade-package <pkg>, cargo update -p <pkg>). If the parent's range blocks it, add an override scoped to the vulnerable package.
    • Never run a blanket update --latest or regenerate the whole lockfile.
  5. Verify. Run the repo's own install, typecheck, lint, test and build commands (read package.json scripts, Makefile, pyproject.toml, CI config to find them). Then rerun the scan with --no-cache and confirm the targeted advisories are gone. A fix that does not clear the advisory, or breaks a test, is reverted and reported, not committed.
  6. Commit. One commit per repo. Subject deps: clear N advisories (pkg@from -> to, ...), body lists each GHSA/CVE id cleared. Push and open an MR only when the user says so.
  7. Report. Short table: cleared, reverted (with the failing command), major bumps waiting on the user, no fix available.

Read the full file on GitHub · 55 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. 4d ago First seen · 55 lines · 102 tokens per session scan A 713a10338ef3

Subscribe to this mod's changes

dep-vuln-update is a skill published in the GitHub repository sneg55/agent-starter (77 stars, last pushed 5d ago), licensed MIT. It adds 102 tokens to every session and 1,374 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

dep-vuln-update compared with skills from other repositories

dep-vuln-update next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dep-vuln-updatesneg55/agent-starterSkill775d agoMITA102Claude Code
branch-recapMalo-T/claude-toolbeltSkill24d agoMITA338Claude Code
audit-contextMalo-T/claude-toolbeltSkill24d agoMITA249Claude Code
slack-changelogMalo-T/claude-toolbeltSkill24d agoMITA332Claude Code
ignore-setupMalo-T/claude-toolbeltSkill24d agoMITA157Claude Code
handoffMalo-T/claude-toolbeltSkill24d agoMITA151Claude Code
plugin-commandsMalo-T/claude-toolbeltSkill24d agoMITA73Claude Code