
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
- 8.1K
Install
/plugin install dimensional-analysis@trailofbitsRun it inside Claude Code after adding the marketplace with /plugin marketplace add trailofbits/skills.
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Marketplace
- trailofbits/skills
- Source
- plugins/dimensional-analysis
- Author
- Coriolan Pinhas & Benjamin Samuels
- Category
- Community
More from trailofbits/skills
All 51- dwarf-expertv1.1.2
- entry-point-analyzerv2.0.0
- firebase-apk-scannerv2.2.3
- fp-checkv1.0.5
- gh-cliv1.6.3
- git-cleanupv2.3.3
- github-triagev0.2.0
- goal-promptv0.1.2
- insecure-defaultsv2.0.3
- let-fate-decidev1.2.6
- modern-cppv1.0.2
- modern-pythonv1.6.2
- mutation-testingv1.9.2
- open-sourcingv0.1.2
- patching-bugsv0.5.1
- post-patch-validationv0.2.2
- property-based-testingv1.2.2
- regression-huntv1.2.0
- review-walkthroughv1.2.3
- rust-reviewv1.1.2
- second-opinionv1.8.3
- semgrep-rule-creatorv1.2.6
- semgrep-rule-variant-creatorv1.1.4
- sharp-edgesv1.1.3