audit-deps

audit-deps is a command for Claude Code from omermaksutii/RugProof. It costs 29 tokens per session (986 once invoked), scanned A, original, MIT.

A command that checks a project's third-party libraries, the code it imports from elsewhere, for installed versions, known vulnerabilities, and changes from their original source.

In plain words
What is it for?
Use it to review dependency versions, inspect vendored code, and identify libraries that may need attention.
Why use it?
It can reveal security problems in an outdated dependency or in copied library code that no longer matches upstream.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rugproof plugin — 35 commands, 23 agents shipped together

Good fit Use it to review dependency versions, inspect vendored code, and identify libraries that may need attention.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add omermaksutii/RugProof
Claude Code
/plugin install rugproof

Made for: Claude Code.

Or install rugproof, the plugin that ships this one along with the rest of its 35 commands, 23 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/omermaksutii/rugproof/audit-deps.svg)](https://agentmods.dev/commands/omermaksutii/rugproof/audit-deps)
Your own site
<a href="https://agentmods.dev/commands/omermaksutii/rugproof/audit-deps"><img src="https://agentmods.dev/badge/commands/omermaksutii/rugproof/audit-deps.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 986 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.00029 $0.00986
Opus 5 $0.00015 $0.00493
Sonnet 5 $0.00006 $0.00197
Haiku 4.5 $0.00003 $0.00099

Measured 8d ago against content hash 37a6bb7d628d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

audit-deps 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 8d 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.

commands/audit-deps.md · 78 lines

How it starts

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

/audit-deps — vet the libraries you import

The bug isn't always in your code — sometimes it's in the version of OpenZeppelin you pinned 18 months ago. This command enumerates every dependency, resolves its real installed version, and checks it against a bundled advisory snapshot.

Procedure

Step 1 — Enumerate imports

Collect the dependency surface from every source of truth:

cat "${CLAUDE_PLUGIN_ROOT}/../remappings.txt" 2>/dev/null
cat package.json 2>/dev/null | node -e 'let p=require("/dev/stdin");console.log(JSON.stringify({...p.dependencies,...p.devDependencies}))'
grep -E 'libs\s*=' foundry.toml

Then sweep actual import statements for what is really referenced:

grep -rhoE 'import .*"(@openzeppelin|solady|solmate|forge-std)[^"]*"' src/ test/ | sort -u

Common families to resolve: @openzeppelin/contracts, @openzeppelin/contracts-upgradeable, solady, solmate, forge-std.

Step 2 — Resolve installed versions

  • Git submodules (lib/openzeppelin-contracts): git -C lib/<dep> rev-parse HEAD and git -C lib/<dep> describe --tags for the pinned SHA / tag.
  • npm: read the resolved version from node_modules/<pkg>/package.json, not the range in package.json.
  • Record exact version per dependency. A floating range (^4.0.0) installed as 4.9.6 is what matters.

Step 3 — Cross-reference advisories

Match each resolved version against the bundled offline advisory snapshot. High-signal historical examples to check:

  • OpenZeppelin — ECDSA signature malleability / tryRecover (< 4.7.3), TransparentUpgradeableProxy selector clash (< 4.8.3), Governor castVote / proposal-id collision, Initializable re-init (< 4.8), Multicall + ERC2771 address-spoofing (< 4.9.3).
  • SoladySafeTransferLib returning success for non-contract targets, LibClone immutable-arg edge cases.
  • solmateERC20.permit deadline / SafeTransferLib no-code-check absence.

Step 4 — Flag drift

  • Pragma drift — pinned pragma solidity 0.8.19; in your code vs a floating ^0.8.0 in a dependency (or vice versa). [[pragma-and-addresses]].
  • Vendored divergence — code copied into src/vendor/ or src/lib/. Diff it against the upstream tag; flag any line that differs (security fixes silently dropped).

Read the full file on GitHub · 78 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. 8d ago First seen · 78 lines · 29 tokens per session scan A 37a6bb7d628d

Subscribe to this mod's changes

audit-deps is a command published in the GitHub repository omermaksutii/RugProof (9 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 986 once invoked, about $0.0001 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.