dimensional-analysis

Scan codebases for unit mismatches, missing scaling, and precision loss.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/iiammae/opero --skill dimensional-analysis-iiammae
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dimensional-analysis
Source: https://github.com/iiammae/opero/tree/main/.agents/skills/dimensional-analysis
Command: npx skills add https://github.com/iiammae/opero --skill dimensional-analysis-iiammae

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires arithmetic-scanner, dimension-discoverer, dimension-annotator, dimension-propagator, dimension-validator, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of dimensional analysis in codebases, identifying and preventing bugs caused by unit mismatches, missing scaling, or precision loss.

Core Features & Use Cases

  • Dimensional Analysis: Automatically scan code for dimensional mismatches and anomalies.
  • Automated Annotation: Annotate code with dimensional analysis comments.
  • Use Case: Use this Skill to analyze a DeFi protocol's smart contracts and ensure that all arithmetic operations are dimensionally consistent, reducing the risk of bugs.

Quick Start

Start the dimensional-analysis skill on the repository '/path/to/repo'.

Frequently Asked Questions about dimensional-analysis

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

FAQPage Schema
How do I detect unit mismatches and precision loss in smart contracts?

Dimensional analysis detects unit mismatches, missing scaling, and precision loss in arithmetic operations by scanning codebases to identify and prevent bugs early. It uses a multi-step process involving scanning, vocabulary discovery, annotation, propagation, and validation.

What is dimensional analysis in code and how does it prevent DeFi bugs?

Dimensional analysis in code automatically scans for dimensional inconsistencies and anomalies in arithmetic operations. By ensuring dimensionally consistent operations in DeFi protocols, it reduces the risk of bugs caused by unit mismatches or precision loss.

Can I use dimensional analysis to check my DeFi protocol's smart contracts?

Yes, you can use dimensional analysis to analyze a DeFi protocol's smart contracts. It ensures all arithmetic operations are dimensionally consistent, reducing the risk of bugs caused by missing scaling or precision loss.

How do I perform automated dimensional analysis on a codebase?

Start the dimensional analysis process on your repository path. The Skill automates scanning for dimensional mismatches and annotates code with dimensional analysis comments through a multi-step process using scanning, vocabulary discovery, annotation, propagation, and validation subagents.

Do I need specific subagents to run dimensional analysis on my code?

Yes, the dimensional analysis process requires arithmetic-scanner, dimension-discoverer, dimension-annotator, dimension-propagator, and dimension-validator subagents to function. These dependencies enable the multi-step scanning and validation workflow.