What problem does it solve?
This Skill helps you quickly evaluate and audit Solidity/Rust smart contracts by mapping common high-impact DeFi bug classes to concrete pre-dive checks, grep-based code review prompts, and reusable Foundry PoC scaffolding.
Core Features & Use Cases
- 10 DeFi bug classes: accounting state desync, access control, incomplete code paths, off-by-one/boundaries, oracle manipulation, ERC4626 vault attacks, reentrancy, flash loan attacks, signature replay, and proxy/upgrade issues.
- Pre-dive kill signals & target scoring: decide whether a dive is worth it using TVL thresholds, audit history indicators, code complexity heuristics, and engagement scoring rules.
- Practical testing workflow outputs: provides grep patterns to locate relevant code regions plus a Foundry PoC template structure for turning hypotheses into executable tests.
- Use for: auditing DeFi protocols you plan to hunt, validating whether a contract’s architecture makes certain exploit classes more/less likely, and preparing a structured audit checklist before deep manual review.
Quick Start
Use the web3-audit skill to audit a Solidity/DeFi target by following its pre-dive kill signals, then running the provided grep patterns to identify where each bug class could apply.