# Dimensional analysis check

> Dimensional analysis check is an open-source agent skill for developer tools. Checks numeric units, scales, precision and time handling across code boundaries. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/dimensional-analysis-check
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** dimensional-analysis-check
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent reviewing code changes that move numbers through arithmetic, APIs, storage or time handling. It asks the agent to inventory each numeric quantity and record its unit and scale, such as seconds versus milliseconds, bytes versus KiB, or basis points versus percent. The agent then checks that added terms share a unit, that ratios match what consumers expect, and that values stay consistent when they cross function parameters, JSON fields, database columns, environment variables or RPC payloads.

Beyond unit agreement, the workflow looks for rounding and precision defects such as integer division truncation, float accumulation in loops and fixed-point scaling applied twice or not at all. It also checks sign and range behavior, including counters that can wrap and durations that exceed a field's width. Conversion constants are traced to an authoritative definition instead of being accepted as inline literals, and names that claim a unit are treated as claims to verify rather than proof.

The skill is written for specialist reviewers and produces a report of consistent quantities or mismatches. It works from the code and its boundaries alone and does not call external services or run bundled scripts, since the package includes none.

## When your agent uses it

> Use when numeric values cross arithmetic, API, storage, or time boundaries and a unit, scale, precision, rounding, signedness, or range mismatch could make the result wrong.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/dimensional-analysis-check)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/dimensional-analysis-check)

## Features

- **Unit and scale inventory:** Annotates every numeric quantity a change touches with its unit and scale.
- **Expression consistency checks:** Verifies that added terms share units and that ratios match consumer expectations.
- **Boundary crossing review:** Inspects parameters, JSON fields, database columns, environment variables and RPC payloads for silent unit changes.
- **Conversion constant verification:** Traces unit conversion factors to authoritative definitions and flags magic numbers.
- **Precision and rounding audit:** Looks for integer truncation, float accumulation and repeated fixed-point scaling.
- **Sign and range analysis:** Checks negative values, counter wraparound and durations that overflow field widths.
- **Time convention checks:** Confirms epoch, time zone and interval bound conventions for time values.

## Good for

- Review a pull request that converts timeouts between seconds and milliseconds
- Check token amounts for decimal scaling errors before storing them
- Audit a JSON API for mismatched units in its numeric fields
- Find rounding or integer division bugs in a billing calculation
- Verify timestamp handling across UTC, local time and epoch values

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/dimensional-analysis-check` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dimensional-analysis-check &&
cp -R "$tmp/.agents/skills/dimensional-analysis-check" ~/.claude/skills/dimensional-analysis-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/dimensional-analysis-check` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/dimensional-analysis-check` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dimensional-analysis-check &&
cp -R "$tmp/.agents/skills/dimensional-analysis-check" ~/.agents/skills/dimensional-analysis-check &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/dimensional-analysis-check` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/dimensional-analysis-check` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dimensional-analysis-check &&
cp -R "$tmp/.agents/skills/dimensional-analysis-check" ~/.cursor/skills/dimensional-analysis-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/dimensional-analysis-check` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/dimensional-analysis-check
```

Or copy the folder to `~/.gemini/skills/dimensional-analysis-check` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/dimensional-analysis-check`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dimensional-analysis-check &&
cp -R "$tmp/.agents/skills/dimensional-analysis-check" ~/.copilot/skills/dimensional-analysis-check &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/dimensional-analysis-check` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/dimensional-analysis-check` into your agent's skills folder as `dimensional-analysis-check`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Dimensional analysis check trigger?

It is meant for cases where numeric values cross arithmetic, API, storage or time boundaries and a unit, scale, precision, rounding, signedness or range mismatch could produce a wrong result.

### Does Dimensional analysis check require any tools or scripts?

The package includes no scripts and does not set allowed tools. The skill works through instructions the agent follows while reviewing code.

### Is Dimensional analysis check intended for general developers?

Its audience is marked as specialist, so it targets reviewers who need a systematic check of numeric correctness.

### How do I install Dimensional analysis check in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dimensional-analysis-check to use it in all your projects, or to .claude/skills/dimensional-analysis-check in one project.

### Does Dimensional analysis check run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Dimensional analysis check?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Dimensional analysis check?

The closest alternatives to Dimensional analysis check are Dimensional analysis, Code review, Thermo nuclear code quality review, Differential review and Code review expert.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Dimensional analysis](https://ai-powered.com/skills/dimensional-analysis): Dimensional analysis is an open-source agent skill for security.
- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [Thermo nuclear code quality review](https://ai-powered.com/skills/thermo-nuclear-code-quality-review-michael-denyer): Thermo nuclear code quality review is an open-source agent skill for developer tools.
- [Differential review](https://ai-powered.com/skills/differential-review-mtarcure): Differential review is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Vibe anti rationalization check](https://ai-powered.com/skills/vibe-anti-rationalization-check): Vibe anti rationalization check is an open-source agent skill for developer tools.
- [Code review loop](https://ai-powered.com/skills/code-review-loop): Code review loop is an open-source agent skill for developer tools.
- [Benchmark checklist](https://ai-powered.com/skills/benchmark-checklist): Benchmark checklist is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/dimensional-analysis-check
