audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Diff the contract against a canonical reference implementation (OZ, Solady, Uniswap V3, etc.) and flag suspicious deltas.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/diff-auditContext preview
What this command does when you run it.
Diff the contract against a canonical reference implementation (OZ, Solady, Uniswap V3, etc.) and flag suspicious deltas.
description: Diff the contract against a canonical reference implementation (OZ, Solady, Uniswap V3, etc.) and flag suspicious deltas. argument-hint: "<file> --reference <openzeppelin|solady|uniswap-v3|...>" allowed-tools: Read, Bash, Agent, Skill
Many contracts are forks-with-tweaks of OZ/Uniswap/Compound. Audit the *deltas*, not the whole thing.
`--reference` options (extensible):
If user passes a path, use that file as the reference.
Load the user's contract and the reference. Be specific about reference version (pin to a release commit).
Not just `diff` — semantic compare:
For each delta, ask:
Diff audit: src/MyToken.sol vs openzeppelin/erc20@v5.0.2
Deltas:
+ Added function: blacklist(address) ← centralization (no timelock)
~ Modified _transfer:
- Removed: if (from == address(0)) revert ZeroFrom();
- Added: if (blacklisted[from]) revert Blacklisted();
+ Added storage: mapping(address => bool) blacklisted at slot 4
~ Modified mint: now also takes (bool fromTreasury) param
Risk assessment:
HIGH: blacklist() has no timelock + no escape hatch for legitimately blacklisted user funds
HIGH: Removed zero-from check → minting bypass possible
MED: New storage slot — verify upgrade safetyRugproof 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.
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.