Skip to content
Security
Command

/rugproof-init

60-second onboarding — set up .rugproof.yml, choose severity profile, configure hooks, pick supported chains.

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

Command definition

rugproof-init.md
description: 60-second onboarding — set up .rugproof.yml, choose severity profile, configure hooks, pick supported chains.
allowed-tools: Read, Write, Edit, Bash, AskUserQuestion

/rugproof-init — interactive setup

First-run experience. Walk the user through a minimal configuration so `/audit` works on their repo immediately.

Procedure

Step 1 — Detect the project

Look at the repo:

  • Foundry (`foundry.toml`) → Foundry-mode default
  • Hardhat (`hardhat.config.{ts,js}`) → Hardhat fallback
  • Solidity files location: `src/`, `contracts/`, or other → set `include` glob accordingly
  • Existing `.rugproof.yml` → tell the user and ask whether to overwrite or migrate

Step 2 — Ask 4 questions

Ask each as its own `AskUserQuestion` call (one at a time):

1. **Severity profile**

  • `strict` — block CI on Medium or worse
  • `standard` — block on High (recommended)
  • `lenient` — block on Critical only

2. **Target chains** (multi-select)

  • Ethereum · Berachain · Arbitrum · Base · Optimism · Polygon · BSC · Linea · zkSync · Scroll

3. **Hooks** (multi-select)

  • pre-commit quick-scan
  • pre-push full audit
  • pre-deploy check
  • post-test coverage

4. **Reporting formats** (multi-select)

  • Markdown · HTML · PDF · JSON · PNG card

Step 3 — Write `.rugproof.yml`

Write the config with the selected options. Comment liberally.

Step 4 — Install hooks

For each selected hook:

  • Foundry: append to `.git/hooks/<hook-name>` or `forge-hooks.toml`.
  • Generic git: write a `.git/hooks/<hook-name>` that calls `claude code --slash="/quick-scan"`.

Step 5 — Test run

Offer to run `/audit` on the bundled example vulnerable contract (`examples/VulnerableVault.sol`) so the user sees output immediately.

✓ .rugproof.yml created
✓ Pre-commit hook installed
✓ Pre-push hook installed
✓ Reports will be saved to ./rugproof-reports/

Try it:
  /audit examples/VulnerableVault.sol      ← see Rugproof in action on a vulnerable demo
  /audit                                    ← audit your real code

Notes

  • Aim for under 60 seconds end-to-end.
  • Don't ask questions whose answers can be inferred from the repo.
  • Defaults should be safe (standard severity, full reports).
  • If the user has already run `/rugproof-init`, this is a no-op + offer `/rugproof-init --reset`.
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

1152 skills23 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
11
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

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…

@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