GNU Units for Openclaw

A high-performance calculation engine that leverages the classic GNU Units utility to perform precise mathematical and unit transformations.

asleep123
v1.0.0
Jan 7, 2026
1
2.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install units

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install units using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GNU Units?

The GNU Units skill provides a bridge between AI agents and the powerful GNU Units command-line utility. By integrating this tool, agents can move beyond approximate estimations and perform deterministic, scientifically accurate conversions across thousands of different units. This is a vital component for any developer looking to expand their collection of Openclaw Skills with reliable mathematical utilities.

This skill handles everything from standard length and mass conversions to complex compound units and non-linear transformations like temperature. By delegating these calculations to a dedicated binary, the agent avoids common LLM pitfalls related to arithmetic errors, ensuring that the data provided to the user is always mathematically sound.

GNU Units Use Cases

  • Standardizing measurements between imperial and metric systems in technical documentation.
  • Calculating complex travel metrics such as converting miles per hour to meters per second.
  • Performing non-linear temperature transformations for scientific or culinary applications.
  • Formatting precise numeric outputs for financial or engineering reports using custom rounding.
  • Retrieving the mathematical definition of obscure units to improve agent context.

How GNU Units Works

  1. The AI agent identifies a need for measurement conversion or unit definition within a prompt.
  2. The agent utilizes the bash execution tool to call the system's units binary.
  3. Specific flags like -t (terse) are applied to ensure the output is clean and purely numeric for further processing.
  4. The GNU Units engine processes the request against its comprehensive unit database.
  5. The result is returned to the agent's context, allowing it to provide an accurate answer as part of the Openclaw Skills workflow.

GNU Units Setup

To use this skill, the GNU Units binary must be present on the host system.

On macOS:

brew install units

On Ubuntu/Debian:

sudo apt-get update && sudo apt-get install units

Ensure the binary is in your system PATH so the AI agent can trigger it via bash commands.

GNU Units Data Schema & Taxonomy

The skill interacts primarily with standard input/output strings. Below is the typical data structure for commands:

Feature Command Pattern Output Format
Basic Conversion units -t 'from' 'to' Numeric String
Rounded Output units -t -o "%.2f" 'from' 'to' Formatted Float
Unit Definition units 'unit_name' Detailed String
Functional Unit units -t 'tempF(x)' 'tempC' Numeric String

Users should always wrap unit arguments in single quotes to ensure shell safety.

GNU Units Advanced Features

  • Terse Output Management: Simplifies responses by stripping out verbose descriptions, ideal for chaining commands.
  • Custom Precision Control: Leverage printf-style formatting to round results to specific decimal places.
  • Non-Linear Scaling: Native support for functional conversions, essential for scales like Fahrenheit, Celsius, and Kelvin.
  • Compound Unit Logic: Ability to handle complex divisional and multiplicative units such as '60 miles/hour'.
  • Static Currency Support: Access to built-in currency conversion definitions, though users should note these rely on static data files.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*