openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Units

Perform unit conversions and calculations using GNU Units.

综合技能

作者:Asleep @asleep123

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 1 · 1.9k · 3 current installs · 3 all-time installs

1

安装量(当前) 3

🛡 VirusTotal :良性 · OpenClaw :良性

Package:asleep123/units

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

This is an instruction-only skill that simply tells the agent to run the local GNU `units` command for conversions; it requests no credentials, no installs, and does not perform unexpected actions.

目的

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.

说明范围

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.

安装机制

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.

证书

No environment variables, credentials, or config paths are requested. The skill's needs (a local `units` binary) are proportionate to its stated purpose.

持久

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.

综合结论

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 …

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Units」。简介:Perform unit conversions and calculations using GNU Units.。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/asleep123/units/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
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'`).