units
Perform unit conversions and calculations using GNU Units.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/asleep123/unitsGNU Units Skill
Use GNU units to perform unit conversions and calculations via the command line. Can be installed using brew and apt under "units".
Usage
Use the bash tool to run the units command. Use the -t (terse) flag to get just the numeric result.
units -t 'from-unit' 'to-unit'
Examples
Basic Conversion:
units -t '10 kg' 'lbs'
# Output: 22.046226
Compound Units:
units -t '60 miles/hour' 'm/s'
# Output: 26.8224
Temperature (Non-linear):
Temperature requires specific syntax: tempF(x), tempC(x), tempK(x).
units -t 'tempF(98.6)' 'tempC'
# Output: 37
Time:
units -t '2 weeks' 'seconds'
Rounding Output:
To round to specific decimal places (e.g. 3 places), use -o "%.3f":
units -t -o "%.3f" '10 kg' 'lbs'
# Output: 22.046
Definition Lookup:
To see what a unit definition is (without converting), omit the second argument (without -t is more verbose/useful for definitions):
units '1 acre'
Notes
- Currency:
unitssupports currency (USD, EUR, etc.), but exchange rates may be out of date as they are static in the definitions file. - Safety: Always quote your units to prevent shell expansion issues (e.g.
units -t '1/2 inch' 'mm').
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-asleep123-units": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
openssl
Generate secure random strings, passwords, and cryptographic tokens using OpenSSL. Use when creating passwords, API keys, secrets, or any secure random data.
cloudflare
Manage Cloudflare Workers, KV, D1, R2, and secrets using the Wrangler CLI. Use when deploying workers, managing databases, storing objects, or configuring Cloudflare resources. Covers worker deployment, KV namespaces, D1 SQL databases, R2 object storage, secrets management, and tailing logs.
caldav-calendar
Sync and query CalDAV calendars (iCloud, Google, Fastmail, Nextcloud, etc.) using vdirsyncer + khal. Works on Linux.
bitwarden
Access and manage Bitwarden/Vaultwarden passwords securely using the rbw CLI.