Skill / SKILL.md

Dimensional Analysis

trailofbits/skills

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.
2 views 8,499 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/trailofbits/skills' skill-source

Use the complete skill-source/plugins/dimensional-analysis/skills/dimensional-analysis directory with your client’s skill installer.

  • plugins/dimensional-analysis/skills/dimensional-analysis

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/dimensional-analysis/skills/dimensional-analysis

Compatibility & requirements

Declared tools

Read Write Edit Grep Glob Task TodoWrite

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
fa570c91d5e53667e085ae6673c05c862b5cd0dcffe172f428b11713e3ed2119
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills