Skip to main content

Dimensional Analysis

Skill Active

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.

Purpose

To annotate codebases with dimensional analysis comments, document units, dimensions, and decimal scaling to prevent dimensional mismatches and catch arithmetic bugs early, especially in DeFi and blockchain-related code.

Features

  • Annotates codebases with dimensional analysis comments
  • Performs dimensional analysis on DeFi, financial, and scientific code
  • Detects arithmetic bugs from unit mismatches or precision loss
  • Orchestrates specialized agents for scanning, discovery, annotation, propagation, and validation
  • Manages workflow, state persistence, and coverage guarantees

Use Cases

  • Annotating a codebase with unit/dimension comments
  • Performing dimensional analysis on DeFi protocols or financial code
  • Hunting for arithmetic bugs caused by unit mismatches or precision loss
  • Auditing codebases with mixed decimal precisions or fixed-point arithmetic

Non-Goals

  • Codebases with no numeric arithmetic or unit conversions
  • Purely integer counting logic without physical or financial dimensions
  • Quick spot-checks of single formulas (direct code reading is preferred)

Trust

  • warning:Issues Attention13 issues opened, 4 closed in last 90 days, indicating maintainers respond slowly to issues.

Installation

First, add the marketplace

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

Quality Score

95 /100
Analyzed about 11 hours ago

Trust Signals

Last commit3 days ago
Stars5.2k
LicenseCC-BY-SA-4.0
Status
View Source

Similar Extensions

Soul Guardian

100

Drift detection + baseline integrity guard for agent workspace files with automatic alerting support

Skill
prompt-security

Audit Dependency Versions

100

Audit project dependencies for version staleness, security vulnerabilities, and compatibility issues. Covers lock file analysis, upgrade path planning, and breaking change assessment. Use before a release to ensure dependencies are current and secure, during periodic maintenance reviews, after receiving a security advisory, when upgrading to a new language version, before submitting to CRAN or npm, or when inheriting a project to assess its dependency health.

Skill
pjt222

Janitor Tokens

100

Show how many context window tokens each skill consumes. Use when the user asks about token cost, context budget, skill size, or wants to know which skills waste the most context space.

Skill
khendzel

Codex Diff Develop

100

Revisa el diff de la rama actual frente a develop en proyectos Drupal 11 siguiendo la metodología Codex (lógica de negocio, edge cases de hooks/queries, seguridad, performance, completitud). Genera un informe .md en la carpeta del IDE detectado (.antigravity/, .cursor/, .vscode/ o docs/) con hallazgos por severidad y soluciones accionables. Usar cuando el usuario pida "Revisión diff develop", "revisión diff develop", "diff develop", "revisar diff", "codex diff" o expresiones similares con intención de auditar cambios contra develop. Triggers: diff develop, codex diff, revisión diff, lint diff develop, auditar diff.

Skill
j4rk0r

Web3 Testing

99

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

Skill
wshobson

Solidity Security

98

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

Skill
wshobson

© 2025 SkillRepo · Find the right skill, skip the noise.