# Dimensional Analysis (agent skill)

> Dimensional Analysis is an agent skill (a SKILL.md file) from trailofbits/skills. Audits code for unit and decimal-scaling bugs and annotates it with dimensional comments recording the units of each value. It works with Claude Code and Codex and has 7,804 GitHub stars across a repository of 4 listed 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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/trailofbits/skills |
| Skill path | plugins/dimensional-analysis/skills/dimensional-analysis/SKILL.md |
| Skill name | dimensional-analysis |
| GitHub stars | 7,804 |
| Installs on skills.sh | not listed |
| License | CC-BY-SA-4.0 |
| Skills in repo | 4 |
| Plugin marketplace | trailofbits |
| Official | yes |
| Works with | Claude Code, Codex |
| Category | Data & analysis |
| Last commit | Oct 23, 2026 |

## When it triggers

- 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,

## Add this skill

### Claude Code

```sh
/plugin marketplace add trailofbits/skills
/plugin install dimensional-analysis@trailofbits
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/trailofbits/skills.git
cp -r skills/plugins/dimensional-analysis/skills/dimensional-analysis .agents/skills/dimensional-analysis   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/trailofbits/skills.git
cp -r skills/plugins/dimensional-analysis/skills/dimensional-analysis .cursor/skills/dimensional-analysis   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/trailofbits-dimensional-analysis
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
