explain

A command that explains a security finding in everyday language, including what it means, how an attack could work, and how to fix it.

In plain words
What is it for?
Use it to explain smart-contract findings such as reentrancy, where an outside call interrupts a function and may exploit an unfinished balance update.
Why use it?
It makes audit results understandable to engineers who are not security specialists, or to beginners who need technical terms explained.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/omermaksutii/rugproof/explain
Clone the repo
git clone --depth 1 https://github.com/omermaksutii/RugProof
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.00417
Opus 5 $0.00009 $0.00209
Sonnet 5 $0.00004 $0.00083
Haiku 4.5 $0.00002 $0.00042

Measured 2d ago against content hash 47b6252e679c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

explain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/explain.md · 41 lines

What it actually says

/explain — explain a finding

For $ARGUMENTS (finding ID like REENT-001), produce a plain-English explanation.

Default audience: engineer

Assume the reader is a competent Solidity engineer but not a security specialist. Cover:

  1. What the finding is (one sentence, no jargon).
  2. Why it matters (concrete impact: "anyone can drain the vault", "the admin can pause withdrawals forever", etc.).
  3. How it works (short walkthrough of the exploit).
  4. What to do (the fix, with a code diff if appropriate).
  5. Related real-world incidents (cite if found in c4-history / sherlock-history).

Audience: beginner

For --audience=beginner, soften:

  • Explain technical terms inline (reentrancy → "when a function pauses in the middle and a sneaky caller jumps in to drain it").
  • Use analogies (e.g. "withdrawing from an ATM that gives you cash before subtracting the balance").
  • Skip "EIP-712 domain separator" details; focus on the user impact.

Audience: exec

For --audience=exec:

  • One paragraph max.
  • Lead with the dollar value at risk and the probability of exploitation.
  • Skip the code; just describe risk.
  • Compare to a known incident the reader is likely to recognize ("similar to the $X exploit of Y in 20ZZ").

Notes

  • Don't be condescending to beginners.
  • For executives, don't soften — they need the truth to make budget calls.
  • If the finding ID isn't in the current audit context, ask the user for it or remind them to run /audit first.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 41 lines · 18 tokens per session scan A 47b6252e679c

Subscribe to this mod's changes

explain is a command published in the GitHub repository omermaksutii/RugProof (9 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 417 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.