Dimensional Analysis
Audits code for unit and decimal-scaling bugs and annotates it with dimensional comments recordin…
by trailofbits
The skill
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.
This skill's licence does not allow redistribution, so the store does not show its text. Read it at the source.
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: trailofbits/dimensional-analysis-96069851252.
Details
- Publisher
- trailofbits
- Category
- Software Development › Source control & code review
- Updated
- 2026-10-16
References
More from trailofbits
- Agentic Actions Auditor Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including C…
- Audit Context Building Understand a codebase before looking for bugs in it - what each function assumes, what it guarant…
- Algorand Vulnerability Scanner Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecke…
- Audit Prep Assistant Prepares codebases for security review using Trail of Bits' checklist.