Skip to content
Security
Command

/audit-changes

Audit only the git diff vs main (or specified base). Optimized for PR review.

From plugin
rugproof
1045 skills23 agents45 commands4 hooks
> /plugin marketplace add omermaksutii/RugProof
> /plugin install rugproof@rugproof

Command definition

audit-changes.md
description: Audit only the git diff vs main (or specified base). Optimized for PR review.
argument-hint: "[base-branch]  (default: main)"
allowed-tools: Read, Grep, Glob, Bash, Agent, Skill

/audit-changes — audit only what changed

For PR review or pre-push verification. Audits only the diff vs `$ARGUMENTS` (default: `main`).

Procedure

1. **Get the diff.** `git diff --name-only <base>...HEAD -- '*.sol' '*.vy'` gives changed files. 2. **For each changed file:**

  • Read the file and the diff hunk.
  • Identify what changed: new function, modified function, new state var, etc.

3. **Audit the changes with extra attention to:**

  • Upgrade safety — did storage layout change? (use [[storage-layout]])
  • New external-call sites — reentrancy review.
  • New state mutations — access-control review.
  • Changes to signed-message handling — replay review.
  • Changes to oracle reads or price math.
  • Removed `require`s or relaxed checks.

4. **Cross-reference unchanged code.** A diff that adds a new function to a contract requires understanding the *existing* invariants. 5. **Emit findings only for the diff** — but flag pre-existing issues that the diff makes worse.

Output

Audit of diff vs <base>:
  Files changed: N
  Lines changed: +X / -Y
  Findings: <severity breakdown>

Per finding, include the diff snippet and a recommended block-on-merge severity.

CI mode

When run from a hook (`pre-push`, `pre-commit`), this command:

  • Reads `severity_threshold` from `.rugproof.yml`
  • Exits 0 if no findings at/above threshold
  • Exits 1 with a structured stderr summary otherwise

Notes

  • Don't re-audit code that didn't change.
  • A new comment doesn't justify a finding — only changes to *executable* code.
  • If the diff is huge, sample the most risky hunks (functions touching state, external calls, signatures) and tell the user the audit was sampled.
Read more
@omermaksutii
Ships withrugproof

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

1052 skills23 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10
Star history of omermaksutii/RugProof on GitHub, a chart by star-history.com

Other commands on rugproof.

audit-deep

audit-deep

Command

Deep audit — same as /audit but spawns more parallel subagents, runs multi-pass review, and chases exploit chains across files.

@omermaksutii@omermaksutiiInstall Command
audit-deps

audit-deps

Command

Audit third-party dependencies — resolve installed versions, cross-reference known-vulnerable releases, and flag vendored code…

@omermaksutii@omermaksutiiInstall Command
audit-diff

audit-diff

Command

Diff two Rugproof audit reports (before vs after) to track regressions — what's new, what's fixed, and whether the grade moved.

@omermaksutii@omermaksutiiInstall Command
audit-history

audit-history

Command

Pull past public audits (Code4rena, Sherlock, Spearbit, etc.) for a deployed contract or known protocol.

@omermaksutii@omermaksutiiInstall Command
audit-live

audit-live

Command

Audit a deployed contract on a live chain. Pulls verified source from the block explorer, optionally forks the chain for…

@omermaksutii@omermaksutiiInstall Command
audit-multi-chain

audit-multi-chain

Command

Diff the on-chain configuration of one contract deployed across multiple chains — owner, oracle, fees, timelock, pause state,…

@omermaksutii@omermaksutiiInstall Command

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

ironclaw13d13k
@nearai@nearaiInstall Command
audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

@trailofbits@trailofbitsInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@awarexone@awarexoneInstall Command