Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
parcadei avatar

Pint Compute

  • 464 installs
  • 3.9k repo stars
  • Updated January 26, 2026
  • parcadei/continuous-claude-v3

pint-compute is an agent skill that performs unit-aware computation with the Pint Python library for developers who need correct unit conversion, dimensional analysis, and compound unit arithmetic.

About

pint-compute is a skill from parcadei/continuous-claude-v3 that acts as cognitive prosthetics for unit-aware computation using the Pint Python library. Allowed tools are Bash and Read. It covers converting meters to feet, kilograms to pounds, velocity-times-time distance checks, dimensional compatibility validation such as force equals mass times acceleration, and simplifying compound units to base or named units. Developers reach for pint-compute when agents might silently mix units in scientific, engineering, or data pipeline code and need explicit Pint commands instead of hand-rolled conversion factors.

  • pint-compute

Pint Compute by the numbers

  • 464 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #893 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill pint-compute

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs464
repo stars3.9k
Last updatedJanuary 26, 2026
Repositoryparcadei/continuous-claude-v3

How do you convert units in Python with Pint?

Use pint-compute for development tasks

Who is it for?

Python developers working with physical quantities, engineering calculations, or scientific APIs who need Pint-guided unit conversions.

Skip if: Pure string formatting or locale-based currency display where Pint physical unit semantics do not apply.

When should I use this skill?

A task involves unit conversion, dimensional analysis, compound unit simplification, or verifying physical quantity arithmetic in Python.

What you get

Dimensionally validated quantities, converted unit values, and simplified compound unit expressions.

  • Converted unit values
  • Validated dimensional expressions

Files

SKILL.mdMarkdownGitHub ↗

Unit Computation with Pint

Cognitive prosthetics for unit-aware computation. Use Pint for converting between units, performing unit arithmetic, checking dimensional compatibility, and simplifying compound units.

When to Use

  • Converting between units (meters to feet, kg to pounds)
  • Unit-aware arithmetic (velocity x time = distance)
  • Dimensional analysis (is force = mass x acceleration?)
  • Simplifying compound units to base or named units
  • Parsing and analyzing quantities with units

Quick Reference

I want to...CommandExample
Convert unitsconvertconvert "5 meters" --to feet
Unit mathcalccalc "10 m/s * 5 s"
Check dimensionscheckcheck newton --against "kg * m / s^2"
Parse quantityparseparse "100 km/h"
Simplify unitssimplifysimplify "1 kg*m/s^2"

Commands

parse

Parse a quantity string into magnitude, units, and dimensionality.

uv run python -m runtime.harness scripts/pint_compute.py \
    parse "100 km/h"

uv run python -m runtime.harness scripts/pint_compute.py \
    parse "9.8 m/s^2"

convert

Convert a quantity to different units.

uv run python -m runtime.harness scripts/pint_compute.py \
    convert "5 meters" --to feet

uv run python -m runtime.harness scripts/pint_compute.py \
    convert "100 km/h" --to mph

uv run python -m runtime.harness scripts/pint_compute.py \
    convert "1 atmosphere" --to pascal

calc

Perform unit-aware arithmetic. Operators must be space-separated.

uv run python -m runtime.harness scripts/pint_compute.py \
    calc "5 m * 3 s"

uv run python -m runtime.harness scripts/pint_compute.py \
    calc "10 m / 2 s"

uv run python -m runtime.harness scripts/pint_compute.py \
    calc "5 meters + 300 cm"

check

Check if two units have compatible dimensions.

uv run python -m runtime.harness scripts/pint_compute.py \
    check newton --against "kg * m / s^2"

uv run python -m runtime.harness scripts/pint_compute.py \
    check joule --against "kg * m^2 / s^2"

simplify

Simplify compound units to base or compact form.

uv run python -m runtime.harness scripts/pint_compute.py \
    simplify "1 kg*m/s^2"

uv run python -m runtime.harness scripts/pint_compute.py \
    simplify "1000 m"

Common Unit Domains

DomainExamples
Lengthmeter, foot, inch, mile, km, yard
Timesecond, minute, hour, day, year
Masskg, gram, pound, ounce, ton
Velocitym/s, km/h, mph, knot
Energyjoule, calorie, eV, kWh, BTU
Forcenewton, pound_force, dyne
Temperaturekelvin, celsius, fahrenheit
Pressurepascal, bar, atmosphere, psi
Powerwatt, horsepower

Output Format

All commands return JSON with relevant fields:

{
  "result": "16.4042 foot",
  "magnitude": 16.4042,
  "units": "foot",
  "dimensionality": "[length]",
  "latex": "16.4042\\,\\mathrm{ft}"
}

Error Handling

Dimensionality errors are caught and reported:

# This will error - incompatible dimensions
uv run python -m runtime.harness scripts/pint_compute.py \
    convert "5 meters" --to kg
# Error: Cannot convert '[length]' to '[mass]'

Related Skills

  • /math-mode - Full math orchestration (SymPy + Z3)
  • /sympy-compute - Symbolic computation

Related skills

FAQ

What library does pint-compute use?

pint-compute uses the Pint Python library for unit conversion, unit-aware arithmetic, dimensional compatibility checks, and simplifying compound units to base or named quantities.

What tasks fit pint-compute?

pint-compute fits converting between measurement units, validating formulas like velocity times time equals distance, checking force equals mass times acceleration, and parsing quantities with attached units in Python.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.