audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Diff two Rugproof audit reports (before vs after) to track regressions — what's new, what's fixed, and whether the grade moved.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/audit-diffContext preview
What this command does when you run it.
Diff two Rugproof audit reports (before vs after) to track regressions — what's new, what's fixed, and whether the grade moved.
description: Diff two Rugproof audit reports (before vs after) to track regressions — what's new, what's fixed, and whether the grade moved. argument-hint: "<old-report.json> <new-report.json>" allowed-tools: Read, Bash
Did your fix actually resolve the finding? Did it introduce a new one? Run two audits and diff the JSON reports. Unlike `/diff-audit` (which compares your code against a canonical reference), this compares two **Rugproof reports** of the *same* contract over time — perfect for CI gates and "before/after a fix".
Each side is a Rugproof report JSON (the `schemas/finding.schema.json` shape, i.e. what `/report --format json` and `parse-slither` / `parse-mythril` emit):
git stash && /audit src/Vault.sol # → save as before.json git stash pop && /audit src/Vault.sol # → save as after.json
node "${CLAUDE_PLUGIN_ROOT}/scripts/dist/diff-reports.js" \
--old before.json --new after.jsonThe engine keys findings by `id`, so it tracks each finding across runs: `added` (in new only), `fixed` (in old only), `persisting` (both), per-severity `countsDelta`, and the `gradeChange`. It exits **non-zero when a new High or Critical appears** (`regressed: true`) so it doubles as a CI gate.
Audit diff: before.json → after.json
3 new, 2 fixed, 1 persisting · grade F → C · ✓ improved
Fixed:
✓ [Critical] REENT-001 reentrancy in withdraw()
✓ [Medium] GAS-010 unbounded loop
New:
+ [High] ACCESS-003 missing onlyOwner on setOracle()
Persisting:
• [High] ORACLE-002 spot oracle still in use
Counts Δ: critical -1, high +0, medium -1new high/critical relative to the base branch's report.
id) with `/verify-finding`.
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.
Audit third-party dependencies — resolve installed versions, cross-reference known-vulnerable releases, and flag vendored code that has diverged from upstream.
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…