audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Audit third-party dependencies — resolve installed versions, cross-reference known-vulnerable releases, and flag vendored code that has diverged from upstream.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/audit-depsContext preview
What this command does when you run it.
Audit third-party dependencies — resolve installed versions, cross-reference known-vulnerable releases, and flag vendored code that has diverged from upstream.
description: Audit third-party dependencies — resolve installed versions, cross-reference known-vulnerable releases, and flag vendored code that has diverged from upstream. argument-hint: "[file-or-dir]" allowed-tools: Read, Grep, Glob, Bash
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.
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.tomlThen 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`.
Match each resolved version against the bundled offline advisory snapshot. High-signal historical examples to check:
git -C lib/openzeppelin-contracts diff <pinned-tag> -- contracts/utils/cryptography/ECDSA.sol
Dependency audit (3 deps resolved):
Dependency Installed Known issues Action
────────────────────────────────────────────────────────────────────────────────────
@openzeppelin/contracts 4.7.0 (lib SHA a1b2c3) ECDSA malleability (GHSA-4g..) ⬆ bump → 4.9.6
solady 0.0.124 (npm) clean —
forge-std v1.7.1 (lib SHA d4e5f6) clean —
Pragma drift: your code pins 0.8.19; OZ floats ^0.8.0 — OK (compatible)
Vendored: src/vendor/MerkleProof.sol diverges from OZ 4.8 (1 line removed)
→ upstream bounds-check dropped; review manually
Verdict: 1 high-severity dependency finding. Run /remediate to apply the bump.Rugproof your code before someone else does. 🌐 Live site: omermaksutii.github.io/RugProof 📦 Latest: v1.0.0 — 45 commands · 23 agents · 45 skills · 13 MCP servers · tested, offline-first, with rule packs, a benchmark, non-EVM coverage, and post-deploy
Repo: omermaksutii/RugProof
Audit only the git diff vs main (or specified base). Optimized for PR review.
Deep audit — same as /audit but spawns more parallel subagents, runs multi-pass review, and chases exploit chains across files.
Diff two Rugproof audit reports (before vs after) to track regressions — what's new, what's fixed, and whether the grade moved.
Pull past public audits (Code4rena, Sherlock, Spearbit, etc.) for a deployed contract or known protocol.
Audit a deployed contract on a live chain. Pulls verified source from the block explorer, optionally forks the chain for live-state simulation.
Diff the on-chain configuration of one contract deployed across multiple chains — owner, oracle, fees, timelock, pause state, proxy impl — and flag the chain…