Skills Explorer Add Skills

dimensional-analysis

An agent skill by trailofbits, from trailofbits/skills. Tags: analysis, blockchain, code-quality, math, security.

What it does

Annotates codebases with dimensional analysis comments documenting units, dimensions, and decimal scaling. Use when someone asks to annotate units in a codebase, perform a dimensional analysis, or find vulnerabilities in a DeFi protocol, offchain code, or other blockchain-related codebase with arithmetic. Prevents dimensional mismatches and catches formula bugs early.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add trailofbits/skills --skill dimensional-analysis

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/trailofbits/skills
cp -r skills/plugins/dimensional-analysis/skills/dimensional-analysis ~/.claude/skills/dimensional-analysis

Safety box score

Grade C, moderate risk: 30 of 100 risk points, rated 2026-10-18. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill audits arithmetic-heavy code and automatically writes dimensional annotations and scope artifacts into the repository. The main risks are that it overrides caller control with full-auto behavior and can bulk-edit many project files without per-file approval.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution0 (none)The skill does not run shell commands, scripts, or eval code; it only uses agent dispatch and workspace read/write tools.
Network access0 (none)No downloading, uploading, or remote API calls are specified; the workflow only references local repo files like `references/step*.md`.
Filesystem reach2 (moderate)It explicitly writes `DIMENSIONAL_SCOPE.json` and `DIMENSIONAL_UNITS.md` in the project root and says to "Apply annotations directly without per-contract approval."
Secrets & credentials0 (none)The skill does not ask for tokens, keys, passwords, `.env` files, keychains, or browser sessions.
Privilege & persistence0 (none)There is no sudo, global install, service registration, or shell/OS settings change in the workflow.
Instruction hijack surface3 (high)It overrides user control with "This skill runs in one mode only: `full-auto`", "Any mode argument provided by the caller is ignored", and "Do not pause for human approvals."
Irreversible actions2 (moderate)The skill forces a full repo-wide pipeline and automatically edits files across all in-scope arithmetic files, though it does not deploy, publish, message, pay, or delete.
Transparency0 (none)All shipped files are plain text and readable; there are no binaries, base64 blobs, or unpinned downloads.

Before installing

Rated 2026-10-18 by an automated review of 11 files from the skill's repository.

Source

Repository
trailofbits/skills (all skills from this repository)
Path
plugins/dimensional-analysis/skills/dimensional-analysis/SKILL.md
Branch
main
Collection
dimensional-analysis
Updated
2026-09-19