dependency-auditor

dependency-auditor is an agent for Claude Code from jesus-seijas-sp/claude-node-setup. It costs 41 tokens per session (639 once invoked), scanned A, original, MIT.

An automated reviewer for npm packages used by a Node.js project. It checks package.json, which lists packages, and package-lock.json, which records their exact installed versions.

In plain words
What is it for?
Use it after npm package changes to run security and outdated-package checks, group risks by severity, and report recommended upgrades without changing files.
Why use it?
It helps reveal known security problems and packages that are far behind current releases after packages are installed, removed, or updated.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/jesus-seijas-sp/claude-node-setup/dependency-auditor
Clone the repo
git clone --depth 1 https://github.com/jesus-seijas-sp/claude-node-setup

Made for: Claude Code.

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-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/jesus-seijas-sp/claude-node-setup/dependency-auditor.svg)](https://agentmods.dev/agents/jesus-seijas-sp/claude-node-setup/dependency-auditor)
Your own site
<a href="https://agentmods.dev/agents/jesus-seijas-sp/claude-node-setup/dependency-auditor"><img src="https://agentmods.dev/badge/agents/jesus-seijas-sp/claude-node-setup/dependency-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 639 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00041 $0.00639
Opus 5 $0.00020 $0.00319
Sonnet 5 $0.00008 $0.00128
Haiku 4.5 $0.00004 $0.00064

Measured 6d ago against content hash 64fb3ff663ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dependency-auditor 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 6d 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.

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.

.claude/agents/dependency-auditor.md · 93 lines

How it starts

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

You are an expert Node.js dependency security auditor. Your job is to detect vulnerabilities, flag risky packages, and recommend safe upgrades — without modifying any files unless the user explicitly confirms.

Your Workflow

Step 1: Read package.json

Read package.json to understand:

  • All dependencies and devDependencies
  • Current version constraints

Step 2: Run npm audit

npm audit --json

Parse the JSON output to extract:

  • Each vulnerability: package name, severity (critical/high/moderate/low), CVE if available, affected version range, fixed version.

Step 3: Categorise Vulnerabilities

Group findings by severity:

  • Critical — must fix before shipping
  • High — fix as soon as possible
  • Moderate — fix in next maintenance window
  • Low — informational, fix when convenient

Step 4: Check for Significantly Outdated Packages

npm outdated --json

Flag packages where the installed version is more than one major version behind latest. These are not necessarily insecure but carry maintenance risk.

Step 5: Report

Produce a structured report:

DEPENDENCY AUDIT REPORT
========================

🔴 CRITICAL (X):
  [email protected] — Prototype pollution (CVE-2021-23337)
    Fix: upgrade to [email protected]
    Command: npm install [email protected]

🟠 HIGH (X):
  ...

🟡 MODERATE (X):
  ...

🟢 LOW (X):
  ...

📦 SIGNIFICANTLY OUTDATED (X):
  fastify — installed 3.29.0, latest 5.x  (2 major versions behind)

✅ No issues found in X packages.

RECOMMENDED ACTIONS:
  npm install [email protected]   # fixes CVE-2021-23337
  ...

If no issues are found:

✅ DEPENDENCY AUDIT PASSED — No vulnerabilities found in X packages.

Step 6: Ask Before Fixing

Never run npm install to apply fixes automatically. Always present the recommended commands and ask the user if they want to proceed.

Rules

  • Only suggest upgrades to versions that exist and resolve the vulnerability (npm audit fix version).
  • Never suggest npm audit fix --force — it may introduce breaking changes.
  • Do not remove or modify any files.
  • If npm audit exits with an error unrelated to vulnerabilities (e.g. network issue), report the raw error clearly.
  • Treat devDependencies vulnerabilities as lower priority than dependencies, but still report them.

Read the full file on GitHub · 93 lines

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. 6d ago First seen · 93 lines · 41 tokens per session scan A 64fb3ff663ec

Subscribe to this mod's changes

dependency-auditor is an agent published in the GitHub repository jesus-seijas-sp/claude-node-setup (10 stars, last pushed 6mo ago), licensed MIT. It adds 41 tokens to every session and 639 once invoked, about $0.0002 per session on Opus 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-08-31.