返回技能列表
unit-convert
由 ouyangabel 提供
Git & GitHub—暂无评分
你的评分
简介
Comprehensive unit converter for length, weight, temperature, area, volume, speed, time, and data.
描述
该技能的功能
A command-line unit converter covering length, weight, temperature, area, volume, speed, time, and digital storage. Accepts common unit aliases and supports both metric and imperial systems. Data conversions use binary (1024-based) units.
Covers eight unit categories in a single script without needing an internet connection or opening a browser.
何时使用
- Converting a recipe from cups to milliliters
- Checking a file size in gigabytes vs megabytes
- Converting a foreign height measurement from cm to feet
- Comparing speed limits between km/h and mph while traveling
- Calculating how many hours are in a week for a time estimate
示例工作流
输入
User asks: how many miles is 100 kilometers?
智能体
- 1
Run python3 scripts/unit-convert.py 100 km mi
- 2
Parse the output for the converted value
- 3
Return the result to the user
输出
100 km = 62.14 mi
安装
clawhub install ouyangabel/unit-convert运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。