Skip to content
Schemory
Skill

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.

Listed from its GitHub repository. Reports from people who tried it will appear here.

Source
trailofbits/skills
GitHub stars
8,350
License
CC-BY-SA-4.0

No reports yet

Nobody has written down how dimensional-analysis works with their agent. Tried it? Say whether it worked, and with which agent and model.

Write the first report