uncertainty-and-units
Track physical units and propagate measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on "is this number physically reasonable", "sanity check these units", "what regime is this flow in", or a result that looks off by orders of magnitude.
- Version
- 1.0
- License
- MIT
- Compatibility
- Requires Python 3.12+. The numeric CLIs need pint, uncertainties, NumPy, and SciPy; the static auditor is standard-library only. All bundled tooling runs locally with no network access.
Pinned to revision de66e10cd0c8, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Read
- Write
- Edit
- Bash
Files
- skills/uncertainty-and-units/SKILL.md
- skills/uncertainty-and-units/references/domain-conversions.md
- skills/uncertainty-and-units/references/gum-methodology.md
- skills/uncertainty-and-units/references/pint-recipes.md
- skills/uncertainty-and-units/references/plausibility-scales.md
- skills/uncertainty-and-units/references/reporting-rules.md
- skills/uncertainty-and-units/references/uncertainties-recipes.md
- skills/uncertainty-and-units/scripts/_common.py
- skills/uncertainty-and-units/scripts/audit_units.py
- skills/uncertainty-and-units/scripts/check_plausibility.py
- skills/uncertainty-and-units/scripts/convert_units.py
- skills/uncertainty-and-units/scripts/format_result.py
- skills/uncertainty-and-units/scripts/propagate_uncertainty.py
- skills/uncertainty-and-units/scripts/uncertainty_budget.py
Every link opens the file at its source, pinned to the revision this page describes.