---
title: "Dimensional Analysis Skill - Air Market"
description: "Arithmetic bugs often come from mixing values that are not really the same kind of thing, or that are scaled differently. This goes through code and writes down what each value actually is - its unit…"
canonical: "https://airmarket.ai/app/dimensional-analysis"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Dimensional Analysis Skill

Skill by [Trail of Bits](/@trailofbits)

# Dimensional Analysis Skill

Catch the formula bug where the units quietly do not match

## What this does

Arithmetic bugs often come from mixing values that are not really the same kind of thing, or that are scaled differently. This goes through code and writes down what each value actually is - its units, its dimensions, its decimal scaling - so mismatches show up. Reach for it when auditing arithmetic-heavy code.

### Top 3 things it does for you

- Annotate what units the values in this code carry
- Find arithmetic bugs in a DeFi protocol
- Check decimal scaling across a calculation

## Information

**Dimensional Analysis Skill at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [Trail of Bits](/@trailofbits) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 58 KB |
| Licence | CC-BY-SA-4.0 |
| Repository | [trailofbits/skills](https://github.com/trailofbits/skills/tree/d5fe2e6a7896236c3102fd5477e833623ad70298/plugins/dimensional-analysis/skills/dimensional-analysis) |
| GitHub stars | 6,823 (as of Nov 2026) |
| Installs | 4,603, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Dimensional Analysis Skill and flagged nothing. AIR's verdict: **safe**.

**What Dimensional Analysis Skill's check was run against**

|  |  |
| --- | --- |
| Commit | d5fe2e6a7896236c3102fd5477e833623ad70298 |
| Content hash | e8cb2aa6a81d0d9eacfd13b095fa7421391bf6caafffe9202db28aae2fd92b70 |
| Files read | [Browse the files at this exact commit](https://github.com/trailofbits/skills/blob/d5fe2e6a7896236c3102fd5477e833623ad70298/plugins/dimensional-analysis/skills/dimensional-analysis/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Dimensional Analysis Skill](/security/dimensional-analysis)

## About Dimensional Analysis Skill

This annotates a codebase with dimensional analysis comments that document units, dimensions, and decimal scaling, preventing dimensional mismatches and catching formula bugs early.

Use it when someone asks to annotate units in a codebase, perform a dimensional analysis, or find vulnerabilities in a DeFi protocol, offchain code, or another blockchain-related codebase with arithmetic in it.

## What's inside

- SKILL.md - instructions
- agents/openai.yaml - data
- assets/trail-of-bits-mark.svg - template
- references/annotate.md - reference
- references/bug-patterns.md - reference
- references/common-dimensions.md - reference
- references/dimension-algebra.md - reference

## Questions

### Is Dimensional Analysis Skill safe to install?

AIR scanned this exact version of Dimensional Analysis Skill and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit d5fe2e6a7896, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/dimensional-analysis.

### How do I install Dimensional Analysis Skill?

Open https://airmarket.ai/app/dimensional-analysis on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/trailofbits/skills/tree/d5fe2e6a7896236c3102fd5477e833623ad70298/plugins/dimensional-analysis/skills/dimensional-analysis. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by Trail of Bits](/@trailofbits)

---

Canonical URL: <https://airmarket.ai/app/dimensional-analysis>
