Skip to content
Security
Command

/score

Compute a Rugproof grade (A+ → F) for the contract or repo based on findings from /audit.

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

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/score

Context preview

What this command does when you run it.

Compute a Rugproof grade (A+ → F) for the contract or repo based on findings from /audit.

Command definition

score.md
description: Compute a Rugproof grade (A+ → F) for the contract or repo based on findings from /audit.
argument-hint: "[file-or-dir]"
allowed-tools: Read, Bash, Skill

/score — grade the contract

Compute a single-letter grade. If no recent audit results exist, run `/audit` first.

Grading rubric

The grade combines three signals:

1. Severity counts

Weighted points:

  • Critical: 25 each
  • High: 10 each
  • Medium: 3 each
  • Low: 1 each
  • Info: 0.1 each

2. Centralization score (0-25)

From the trust report ([[centralization-risk]]):

  • Multi-sig + timelock on all admin functions → 0
  • Multi-sig only (no timelock) → 5
  • EOA admin → 15
  • EOA + sweep-any-token → 25

3. Test coverage / invariant maturity (0-15)

  • ≥80% branch coverage + invariants → 0
  • 50-80% coverage → 5
  • <50% coverage or no test suite → 15

Final grade

`total = severity_points + centralization_score + coverage_score`

| Total | Grade | |---|---| | 0 | A+ | | 1-3 | A | | 4-10 | B | | 11-25 | C | | 26-50 | D | | 51-100 | E | | >100 | F |

**Hard floor:** Any Critical finding caps the grade at **D** regardless of total.

Output

Rugproof Score
  Severity points:        22  (1 Critical, 0 High, 2 Medium, ...)
  Centralization score:   15  (EOA admin, no timelock)
  Coverage score:          0  (87% branch coverage, invariants ✓)
  ────────────────────────────
  Total:                  37
  Grade:                   D  (capped — Critical finding)
  
  Top issues holding the grade down:
    [C/REENT-001] Reentrancy in withdraw()
    [H/CENT-002] Single-EOA admin with sweep authority

Notes

  • Score is opinionated and meant for *relative* comparison and motivation, not blessing for production.
  • Score should be reproducible: same findings + same config → same grade.
  • Tell the user what the next-best fix to bump the grade would be.
Read more
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

Get the whole plugin

Other commands on rugproof.