Units
Perform unit conversions and calculations using GNU Units.
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 1 · 1.9k · 3 current installs · 3 all-time installs
byAsleep@Asleep123
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
The name/description match the instructions. The metadata declares the required binary `units`, which is exactly what a GNU Units wrapper would need. There are no unrelated binaries, env vars, or config paths requested.
Instruction Scope
SKILL.md directs the agent to run the `units` command via the shell, shows example invocations, and warns about quoting. It does not instruct reading unrelated files, accessing environment variables, or sending data to external endpoints. The scope is confined to running local conversions.
Install Mechanism
No install spec is provided (instruction-only), which is the lowest-risk pattern. The doc only notes that `units` can be installed via common package managers (apt/brew), which is expected and not executed by the skill itself.
Credentials
No environment variables, credentials, or config paths are requested. The skill's needs (a local `units` binary) are proportionate to its stated purpose.
Persistence & Privilege
The skill does not request persistent presence (always:false) and does not modify other skills or system settings. Autonomous invocation is permitted by platform default but not combined with any broad privileges here.
Assessment
This skill is coherent and low-risk: it only runs the local GNU `units` program. Before installing/using it, ensure the agent environment actually has a trusted `units` binary (install from your OS package manager or homebrew), and verify the agent is allowed to run shell commands. Note the skill source/homepage is not provided — if you require provenance for third-party skills, ask the publisher for a homepage or source repo. Also be mindful to quote user inputs (as the docs advise) to avoid shell expansion; avoid passing sensitive secrets into shell commands.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
📏 Clawdis
Binsunits
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.
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').
Files
1 totalSelect a file
Select a file to preview.
Comments
Loading comments…
