Search

PythonReactSEOPDF
OpenClaw

units

Perform unit conversions and calculations using GNU Units.

asleep1230 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install asleep123/units

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

GNU 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: units supports 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').

Source information

Source
github
Repository
openclaw/skills
Path
skills/asleep123/units
Version
—
Commit
7ea1493df389f5fd41141fa098339e542f0f1ec8
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# GNU 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.

```bash
units -t 'from-unit' 'to-unit'
```

### Examples

**Basic Conversion:**
```bash
units -t '10 kg' 'lbs'
# Output: 22.046226
```

**Compound Units:**
```bash
units -t '60 miles/hour' 'm/s'
# Output: 26.8224
```

**Temperature (Non-linear):**
Temperature requires specific syntax: `tempF(x)`, `tempC(x)`, `tempK(x)`.
```bash
units -t 'tempF(98.6)' 'tempC'
# Output: 37
```

**Time:**
```bash
units -t '2 weeks' 'seconds'
```

**Rounding Output:**
To round to specific decimal places (e.g. 3 places), use `-o "%.3f"`:
```bash
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):
```bash
units '1 acre'
```

## Notes

- **Currency:** `units` supports 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'`).

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.