trailofbits avatar

dimensional-analysis

Audits code for unit and decimal-scaling bugs and annotates it with dimensional comments recording the units of each value. Use when someone asks to audit or review code for unit confusion, decimals or scaling mismatches, WAD/RAY scale errors, or the wrong token's decimals; to annotate units in a codebase; or to perform a dimensional analysis of a DeFi protocol, offchain code, or other arithmetic-heavy codebase. Catches formulas that combine values carrying different units or scales.

version
3.2.0
GitHub stars
7.8K

Install

/plugin install dimensional-analysis@trailofbits

Run it inside Claude Code after adding the marketplace with /plugin marketplace add trailofbits/skills.

Contents

Discovered from source

Skills 1

Agents 5

Sponsors

Details

Marketplace
trailofbits/skills
Source
plugins/dimensional-analysis
Author
Coriolan Pinhas & Benjamin Samuels
Category
community

More from trailofbits/skills

All 50