πŸ“
QualityPython

Dimensional Analysis

by trailofbits

Dimensional Analysis is a Quality skill for Claude Code, published by trailofbits in skills.

6.6K stars567 forkson trailofbits/skillsAdded 2026/08/15Repository updated 2026/08/14
agent-skills
Install in seconds
Install Dimensional Analysis
Copy Dimensional Analysis into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/trailofbits/skills/tree/main/plugins/dimensional-analysis/skills/dimensional-analysis ~/.claude/skills/dimensional-analysis

Requires Node.js. Downloads this skill only β€” not the rest of the repository β€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/trailofbits/skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
plugins/dimensional-analysis/skills/dimensional-analysis/SKILL.md in trailofbits/skills
Installs to
~/.claude/skills/dimensional-analysis
Collection
One of 25 skills cataloged from this repository
Category
Quality β€” 1354 skills

What Dimensional Analysis does

Dimensional Analysis annotates codebases with unit and dimension comments, then propagates and validates them to catch formula bugs early. Use when auditing DeFi protocols, blockchain code, or other arithmetic-heavy code.

Dimensional Analysis is cataloged under Quality on DirSkills. Dimensional Analysis comes from a repository tagged agent-skills.

Documentation

README

Dimensional Analysis Skill

This skill orchestrates a dimensional-analysis pipeline for codebases that perform numeric computations with mixed units, precisions, or scaling factors. The main skill context is a workflow controller only: it delegates scanning, vocabulary discovery, annotation, propagation, and validation to specialized subagents, then manages batching, persistence, retries, coverage gates, and final reporting.

When to Use

  • Annotating a codebase with unit/dimension comments (e.g., D18{tok}, D27{UoA/tok})
  • Performing dimensional analysis on DeFi protocols, financial code, or scientific computations
  • Hunting for arithmetic bugs caused by unit mismatches, missing scaling, or precision loss
  • Auditing codebases with mixed decimal precisions or fixed-point arithmetic

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Dimensional Analysis

  • What else does trailofbits publish alongside Dimensional Analysis?

    Dimensional Analysis is one of 25 skills that DirSkills catalogs from trailofbits/skills, the repository it ships in. Its siblings there include Agentic Actions Auditor, Algorand Vulnerability Scanner and Audit Context Building. Each one is a separate skill with its own page in this directory, installs the same way Dimensional Analysis does, and is maintained by trailofbits in that same repository. The rest of the collection is listed on the trailofbits/skills page.

  • How does Dimensional Analysis compare to other Quality skills?

    Dimensional Analysis ranks #253 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Dimensional Analysis against them. Open each page to compare what they document and how they install.

More from trailofbits/skills

Dimensional Analysis is one of 25 skills cataloged on DirSkills from trailofbits/skills.

See all 25 skills β†’
πŸ›‘οΈ
2w ago

Agentic Actions Auditor

Agentic Actions Auditor provides static security analysis guidance for GitHub Actions workflows that invoke AI coding agents, detecting attack vectors where attacker-controlled input reaches an AI agent. Use it when auditing CI/CD pipeline security for prompt injection risks or evaluating agentic action configurations.
AI Engineering
6.6K567
πŸ”
2w ago

Algorand Vulnerability Scanner

Algorand Vulnerability Scanner scans TEAL and PyTeal smart contracts for 11 common Algorand vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use it when auditing Algorand projects or training on Algorand-specific security patterns.
Quality
6.6K567
πŸ—ΊοΈ
2w ago

Audit Context Building

Audit Context Building analyzes an unfamiliar codebase to map functions, assumptions, guarantees, and dependencies before any vulnerability hunting. Use it at the start of an audit, threat model, or architecture review to produce dossiers and open questions that feed later phases.
Quality
6.6K567
πŸ›‘οΈ
2w ago

Audit Prep Assistant

Audit Prep Assistant prepares codebases for security reviews using Trail of Bits' checklist. It helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation.
Quality
6.6K567
πŸ”Ž
2w ago

Burp Suite Project Parser

Burp Suite Project Parser searches and explores Burp Suite project files (.burp) from the command line. Use it when searching response headers or bodies with regex patterns, extracting security audit findings, dumping proxy history or site map data, or analyzing HTTP traffic captured in a Burp project.
Quality
6.6K567
πŸ›‘οΈ
2w ago

C/C++ Security Review

C/C++ Security Review performs comprehensive security audits of native C/C++ applications for memory corruption, integer overflows, race conditions, and platform-specific vulnerabilities. Use it when auditing userspace daemons, services, or applications for memory safety issues.
Quality
6.6K567