Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Dimensional Analysis

Plugin Verifiziert Aktiv
Teil von:Trailofbits

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. Prevents dimensional mismatches and catches formula bugs early.

1 Skill 0 MCPs
Zweck

To enhance code quality and prevent bugs by automatically annotating codebases with dimensional analysis information, ensuring unit consistency and detecting arithmetic errors.

Funktionen

  • Automated dimensional vocabulary discovery
  • Codebase scanning for arithmetic relevance
  • Annotation of variables, constants, and function signatures
  • Propagation of dimensions through code
  • Validation of dimensional consistency and bug detection

Anwendungsfälle

  • Annotating DeFi protocols with units and scaling factors
  • Performing dimensional analysis on financial or scientific code
  • Preventing unit mismatches and precision loss bugs
  • Auditing complex arithmetic logic for correctness

Nicht-Ziele

  • Replacing compiler type checking for units
  • Performing full functional correctness checks
  • Analyzing non-numeric code or non-arithmetic logic

Trust

  • info:Issues Attention13 issues opened and 4 closed in the last 90 days indicates a closure rate of approximately 24%, suggesting maintainers respond slowly to open issues.

Installation

Zuerst Marketplace hinzufügen

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

Qualitätspunktzahl

Verifiziert
99 /100
Analysiert about 11 hours ago

Vertrauenssignale

Letzter Commit3 days ago
Sterne5.2k
LizenzCC-BY-SA-4.0
Status
Quellcode ansehen