dependency-audit

dependency-audit is a skill for Claude Code, Codex from sawrus/agent-guides. It costs 56 tokens per session (684 once invoked), scanned A, original, MIT.

A guide to checking the security and practical risk of software dependencies, including packages used indirectly by your project. It combines package inventories and audit scans with checks for whether vulnerable code is reachable and exposed.

In plain words
What is it for?
Use it when adding packages, updating versions, reviewing security findings, or preparing a release to assess exploitability, choose upgrades, and record exceptions.
Why use it?
A scanner result alone does not show whether a vulnerability can affect your application. This process helps separate urgent issues from unreachable findings and temporary risks that need documented owners.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding packages, updating versions, reviewing security findings, or preparing a release to assess exploitability, choose upgrades, and record exceptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sawrus/agent-guides/dependency-audit
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 sawrus/agent-guides --skill dependency-audit
Clone the repo
git clone --depth 1 https://github.com/sawrus/agent-guides

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sawrus/agent-guides/dependency-audit/github.svg)](https://agentmods.dev/skills/sawrus/agent-guides/dependency-audit)
Your own site
<a href="https://agentmods.dev/skills/sawrus/agent-guides/dependency-audit"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/dependency-audit/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-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/sawrus/agent-guides/dependency-audit"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/dependency-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 684 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.00056 $0.00684
Opus 5.5 $0.00022 $0.00274
Sonnet 5.5 $0.00011 $0.00137
Haiku 4.5 $0.00006 $0.00068

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

Security

Grade A, and why

dependency-audit 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 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.

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.

areas/software/security/skills/dependency-audit/SKILL.md · 57 lines

How it starts

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

Dependency audit

1. Inventory the change

  1. Diff the lock files against the target branch: git diff origin/main -- '*.lock' go.sum pom.xml requirements*.txt package-lock.json.
  2. For each new or upgraded package, record: name, old and new version, direct or transitive, registry.
  3. Check new direct packages for red flags: a maintainer change just before the release, install scripts with network calls, obfuscated code, a name close to a popular package, a registry outside the approved list. If you find one, stop and tell the user.

2. Scan

Stack Command
Python pip-audit -r requirements.txt or uv run pip-audit
Go govulncheck ./...
Java (Maven) mvn org.owasp:dependency-check-maven:check or osv-scanner -L pom.xml
Node npm audit --omit=dev
Any lock file osv-scanner scan source -r .

Record each High or Critical finding with the advisory id, the package path, and the fixed version.

3. Check reachability

  1. Go: govulncheck reports only vulnerable functions that the code calls; trust its "not called" result.
  2. Other stacks: search the code for the vulnerable function or feature named in the advisory.
  3. Check exposure: is the code path reachable from a public endpoint, from user input, or only from tests and build tools?

4. Classify and act

  • Exploitable — reachable from untrusted input. Upgrade to the fixed version now. Block the release until it ships.
  • Not reachable — record the evidence (search result, govulncheck output) in the ignore file of the scanner with a reason, for example .osv-scanner.toml [[IgnoredVulns]] with reason and ignoreUntil.
  • No fix available — agree with the user on a compensating control (input validation, feature off, WAF rule) and record an exception with an owner and an expiry date.

5. Fix

  1. Prefer the smallest upgrade that contains the fix. Run the full test suite after it.
  2. If the upgrade is a major version, read its changelog for breaking changes and fix the call sites.
  3. For a transitive package, upgrade the direct parent first; pin the transitive version only if no parent release has the fix (constraints.txt, Maven dependencyManagement, overrides in package.json, replace in go.mod).

Read the full file on GitHub · 57 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. 1mo ago Changed · +1 lines · +13 tokens per session 3df89b65153e
  2. 1mo ago Changed · +5 lines · +43 tokens per session 953dd130c812
  3. 2mo ago First seen · 51 lines · 0 tokens per session scan A 5832f76c091f

Subscribe to this mod's changes

dependency-audit is a skill published in the GitHub repository sawrus/agent-guides (21 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 684 once invoked, about $0.0002 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-09-03.

Related

dependency-audit compared with skills from other repositories

dependency-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dependency-auditsawrus/agent-guidesSkill21todayMITA56Claude Code, Codex
idea-refineaddyosmani/agent-skillsSkill122k7d agoMITA75Claude Code
agent-framework-azure-ai-pysickn33/agentic-awesome-skillsSkill51ktodayMITA24Claude Code
apify-integration-developmentsickn33/agentic-awesome-skillsSkill51ktodayMITA25Claude Code
ai-image-generation-studiosickn33/agentic-awesome-skillsSkill51ktodayMITA30Claude Code
aws-cdk-developmentsickn33/agentic-awesome-skillsSkill51ktodayMITA24Claude Code
azd-deploymentsickn33/agentic-awesome-skillsSkill51ktodayMITA37Claude Code