audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Full security audit of a Solidity/Vyper/Rust contract or directory. Runs the entire vuln-skills library and dispatches DeFi specialist subagents based on detected protocol type.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/auditContext preview
What this command does when you run it.
Full security audit of a Solidity/Vyper/Rust contract or directory. Runs the entire vuln-skills library and dispatches DeFi specialist subagents based on detected protocol type.
description: Full security audit of a Solidity/Vyper/Rust contract or directory. Runs the entire vuln-skills library and dispatches DeFi specialist subagents based on detected protocol type. argument-hint: "[file-or-dir] (omit to audit entire repo per .rugproof.yml)" allowed-tools: Read, Grep, Glob, Bash, Agent, Skill
You are conducting a thorough smart contract security audit. Be rigorous; be skeptical. Treat every line of state-mutating code as if an adversary will read it after you do.
`$ARGUMENTS` — if empty, default to the include/exclude globs from `.rugproof.yml` at the repo root (fall back to `src/**/*.sol contracts/**/*.sol` if no config).
The `skills/` library auto-loads based on code patterns. Verify you've covered the relevant categories:
reentrancy · access-control · oracle-manipulation · flash-loan-attacks · mev-frontrunning · signature-replay · storage-layout · initialization · unchecked-calls · dos-vectors · integer-issues · delegatecall-risks · tx-context-misuse · token-compatibility · approval-issues · selfdestruct-eip6780 · inline-assembly · pragma-and-addresses · centralization-risk · permit2-patterns · erc1271-contract-signatures · diamond-eip2535 · erc4626-inflation · erc4337-account-abstraction · cross-chain-messaging · restaking-eigenlayer · intents-erc7683 · vyper-specific · ve-lock-governance · fee-on-transfer · signature-malleability · mev-pbs · liquidation-cascade · oracle-redundancy · cross-contract-state · zk-verifier-bugs
For each that matches code in the target, produce findings.
Based on the signals from Step 1, dispatch the matching specialists in parallel (single message, multiple Agent calls). Use this dispatch table:
| Detected signal | Dispatch agent | |---|---| | ERC-20 + Pair/Pool/Factory, swap, hooks | `amm-specialist` | | LendingPool / cToken / liquidate / health factor | `lending-specialist` | | stake + rewards + checkpoints | `staking-specialist` | | cross-chain mint/burn, Merkle, message-passing | `bridge-specialist` + `crosschain-messaging-specialist` | | Governor / Timelock / proposal / veToken | `governance-specialist` (+ skill [[ve-lock-governance]]) | | ERC-4626 / vault / strategy | `yield-aggregator-specialist` | | ERC-721 / ERC-1155 / royalties | `nft-specialist` | | Heavy Yul / inline assembly | `assembly-auditor` | | `# @version` / `.vy` (Vyper source) | `vyper-specialist` | | Deployed on / targets an L2 rollup; sequencer-uptime / L1↔L2 messaging | `l2-sequencer-specialist` | | Token / staking / vault whose owner powers must be quantified | `economic-rug-specialist` | | Proof verifier, pairing precompiles, nullifiers, ZK bridge | `zk-verifier-specialist` | | EntryPoint / UserOperation / paymaster (ERC-4337) | `aa-specialist` | | EigenLayer / AVS / operator / restaking | `restaking-specialist` | | ERC-7683 / intents / solver / reactor | `intents-specialist` |
Pick every row whose signal is present — protocols often match several (e.g. an L2 lending vault → `lending-specialist` + `l2-sequencer-specialist` + `economic-rug-specialist`).
**Always** dispatch in parallel with these, regardless of type:
For each finding, output:
[<ID> | <Severity>] <Title> File: <path>:<line> Pattern: <vuln class — see skills/> Description: <one paragraph: what, how, why> Impact: <funds at risk / control plane / DoS / info disclosure / griefing> Likelihood: <high | medium | low — given any preconditions> Suggested fix: <concrete, code-level> Confidence: <high | medium | low>
ID format: `<SHORT>-<NNN>` (e.g. `REENT-001`, `ORACLE-003`).
Use the C4 / Sherlock-mapped scale:
When in doubt between two tiers, state both and pick the conservative one — over-reporting is fixable, under-reporting is not.
Emit a separate **Trust Report** section listing every privileged function the protocol owner / multi-sig / admin can call. Use the [[centralization-risk]] skill's output format.
End with:
Summary Critical: N High: N Medium: N Low: N Info: N Grade: A+ | A | B | C | D | F (mapped from severity counts)
Tell the user the next useful commands: `/exploit <id>` to write a PoC, `/remediate <id>` for a patch, `/report` for the full deliverable.
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.
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.