audit-changes
Audit only the git diff vs main (or specified base). Optimized for PR review.
Generate code patches that fix one or more findings. Outputs as a unified diff and (optionally) applies it.
> /plugin marketplace add omermaksutii/RugProof > /plugin install rugproof@rugproof
How it fires
How this command gets triggered: by you, by Claude, or both.
/remediateContext preview
What this command does when you run it.
Generate code patches that fix one or more findings. Outputs as a unified diff and (optionally) applies it.
description: Generate code patches that fix one or more findings. Outputs as a unified diff and (optionally) applies it. argument-hint: "<finding-id>... [--apply]" allowed-tools: Read, Edit, Write, Bash, Agent, Skill
For each finding ID in `$ARGUMENTS`, produce a concrete code patch.
Pull the finding(s) from the most recent audit. If not available, ask the user to re-run `/audit` or pipe in a findings.json.
For each finding, the subagent:
Before output:
Remediation for REENT-001:
--- a/src/Vault.sol
+++ b/src/Vault.sol
@@ -140,10 +140,10 @@ function withdraw() external {
- uint256 amt = balance[msg.sender];
- (bool ok,) = msg.sender.call{value: amt}("");
- require(ok);
- balance[msg.sender] = 0;
+ uint256 amt = balance[msg.sender];
+ balance[msg.sender] = 0;
+ (bool ok,) = msg.sender.call{value: amt}("");
+ require(ok, "withdraw failed");
}
Verification:
forge build: ✓
forge test: 12 passing, 0 failing
re-audit: REENT-001 no longer reportedIf `--apply` flag passed, also apply the patch to the file in place. Otherwise just print it.
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.