dimensional-analysis

Annotate codebases with dimensional analysis comments documenting units and scaling.

8|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/Auditware/auditwizard --skill dimensional-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dimensional-analysis
Source: https://github.com/Auditware/auditwizard/tree/main/skills/dimensional_analysis
Command: npx skills add https://github.com/Auditware/auditwizard --skill dimensional-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

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.

Core Features & Use Cases

  • Orchestrates a full dimensional-analysis pipeline across a repository, delegating scanning, vocabulary discovery, annotation, propagation, and validation to specialized subagents, then manages batching, persistence, retries, coverage gates, and final reporting.
  • Maintains artifacts such as DIMENSIONAL_SCOPE.json and DIMENSIONAL_UNITS.md to drive downstream steps and reuse vocabulary across runs.
  • Audits all in-scope arithmetic files and ensures complete, end-to-end coverage with accurate provenance for later steps.

Quick Start

Activate the dimensional-analysis workflow against a repository to run the full pipeline.

Frequently Asked Questions about dimensional-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform dimensional analysis on a DeFi protocol codebase?

Annotate units in a codebase by running an automated dimensional analysis pipeline that discovers vocabulary, anchors dimensions, propagates scaling factors, and validates arithmetic correctness across all in-scope files.

Can I use static analysis to find decimal scaling bugs in off-chain code?

Static analysis catches decimal scaling bugs in off-chain code by auditing numeric-heavy repositories to detect dimensional mismatches, validate precision consistency, and annotate codebases with dimensional correctness comments.

What is the best way to automate unit annotation across a repository?

Automate unit annotation across a repository using a fully automated pipeline that delegates scanning and annotation to subagents, persisting discovered vocabulary and dimensional scope artifacts in the project root for downstream reuse.

Does dimensional analysis work with blockchain codebases that have complex arithmetic?

Dimensional analysis works with blockchain codebases with complex arithmetic by applying a cross-file workflow that validates dimensional correctness, catches formula bugs early, and ensures precision consistency across numeric-heavy protocols.

How does cross-file unit propagation validate numeric correctness?

Cross-file unit propagation validates numeric correctness by anchoring discovered dimensions and applying them across the codebase, ensuring complete coverage and accurate provenance for validating arithmetic operations.

When should I not use an automated dimensional analysis pipeline?

An automated dimensional analysis pipeline should not be used when a repository lacks significant numeric arithmetic or dimensional scaling logic, as the workflow targets dimensional mismatches and precision consistency in numeric-heavy codebases.