Back to skills
SkillHub ClubShip Full StackFull Stack
units
Perform unit conversions and calculations using GNU Units.
Packaged view
This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.
Stars
3,111
Hot score
99
Updated
March 20, 2026
Overall rating
C0.0
Composite score
0.0
Best-practice grade
A85.2
Install command
npx @skill-hub/cli install openclaw-skills-units
Repository
openclaw/skills
Skill path: skills/asleep123/units
Perform unit conversions and calculations using GNU Units.
Open repositoryBest for
Primary workflow: Ship Full Stack.
Technical facets: Full Stack.
Target audience: everyone.
License: Unknown.
Original source
Catalog source: SkillHub Club.
Repository owner: openclaw.
This is still a mirrored public skill entry. Review the repository before installing into production workflows.
What it helps with
- Install units into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
- Review https://github.com/openclaw/skills before adding units to shared team environments
- Use units for development workflows
Works across
Claude CodeCodex CLIGemini CLIOpenCode
Favorites: 0.
Sub-skills: 0.
Aggregator: No.
Original source / Raw SKILL.md
---
name: units
description: Perform unit conversions and calculations using GNU Units.
metadata: {"clawdbot":{"emoji":"📏","requires":{"bins":["units"]}}}
---
# 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'`).
---
## Skill Companion Files
> Additional files collected from the skill directory layout.
### _meta.json
```json
{
"owner": "asleep123",
"slug": "units",
"displayName": "Units",
"latest": {
"version": "1.0.0",
"publishedAt": 1767759749838,
"commit": "https://github.com/clawdbot/skills/commit/16a4be5a7b4834dfefcfbc54181d5a38f1345e6f"
},
"history": []
}
```