/agent-starter:dep-vuln-updatefrom agent-starter
Scans lockfiles with osv-scanner, identifies vulnerable dependencies, and applies the smallest version bump that clears each advisory. Verifies fixes with the repo's own tests and commits per repo.
Ships in agent-starter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.
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.deps/vuln-YYYY-MM-DD.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.clears at version, or the lowest version in the same major that satisfies it. Keep the existing range style (^, ~, pinned).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.update --latest or regenerate the whole lockfile.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.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.| Ecosystem | Bump a direct dep | Refresh a transitive dep | Override |
|---|---|---|---|
| pnpm | pnpm add <pkg>@<ver> (-D if dev, --filter in workspaces) | pnpm update <pkg> --depth Infinity | pnpm.overrides in root package.json (or overrides in pnpm-workspace.yaml on pnpm 10+) |
| npm | npm install <pkg>@<ver> | npm update <pkg> | overrides in package.json |
| yarn | yarn add <pkg>@<ver> | yarn up -R <pkg> (berry) | resolutions in package.json |
| uv | edit pyproject.toml, uv lock | uv lock --upgrade-package <pkg> | [tool.uv] constraint-dependencies |
| poetry | poetry add <pkg>@^<ver> | poetry update <pkg> | pin it as a direct dependency |
| requirements.txt | edit the pin | regenerate with the repo's own tool (pip-compile, uv pip compile) if one is used | add an explicit pin |
| cargo | edit Cargo.toml | cargo update -p <pkg> --precise <ver> | [patch] only as a last resort |
| bundler | bundle update <gem> --conservative | same | pin in Gemfile |
For npm lockfiles, osv-scanner fix --strategy=in-place -L package-lock.json can compute a minimal in-place upgrade; review its diff like any other change.
When the user decides an advisory does not apply, add its id to ~/.claude/state/dep-vuln-ignore.json:
{"ids": ["GHSA-xxxx-xxxx-xxxx"], "repos": {"/abs/path/to/repo": ["GHSA-yyyy-yyyy-yyyy"]}}
ids applies everywhere, repos to one repo root. A repo's own osv-scanner.toml is also honored by osv-scanner. Only waive on the user's word.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/adopt-projectApply agent-starter patterns to an EXISTING project - audits the codebase, proposes components by invasiveness tier (hooks, skills, CLAUDE.md, lint configs, patterns), and applies only what the developer approves. Use when the user says adopt, retrofit, "apply agent-starter to this project", or wants starter patterns in an existing codebase./commitCreate a single well-crafted git commit from current changes. Analyzes diff, follows repo's commit style, and writes a concise "why not what" message./commit-push-prFull git workflow - creates branch, commits, pushes, and creates or updates a PR with summary and test plan.npx claudepluginhub sneg55/agent-starter --plugin agent-starterOther plugins' skills for the same job