con un clic
unit-converter
常用单位换算技能,支持长度、温度、重量、货币等换算
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
常用单位换算技能,支持长度、温度、重量、货币等换算
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
中英文互译技能,支持多领域文本翻译
Intelligent data analysis tool for CSV/JSON files. Computes statistics, generates visualizations (violin plots, etc.), and performs exploratory data analysis. Use proactively when users provide data files or request data analysis.
查询实时天气,获取指定城市的当前天气信息
| name | unit-converter |
| description | 常用单位换算技能,支持长度、温度、重量、货币等换算 |
| allowed-tools | [] |
| context | inline |
| execution | {"type":"script","handler":"scripts/convert.py","entrypoint":"convert","timeout":30} |
常用单位之间的换算。
Use this skill when:
Required:
value: 数值(数字)from_unit: 源单位to_unit: 目标单位Optional:
category: 单位类别 ("temperature", "length", "weight", "currency"), auto-detected if not provided| from | to | Example |
|---|---|---|
| c | f | 100c → 212f |
| f | c | 32f → 0c |
| c | k | 0c → 273.15k |
| f | k | 32f → 273.15k |
| Units |
|---|
| m, cm, mm, km |
| in (英寸), ft (英尺), yd (码), mi (英里) |
| Units |
|---|
| kg, g, mg |
| lb (磅), oz (盎司) |
| Units |
|---|
| USD, CNY, EUR, GBP, JPY |
{
"success": true,
"input": {"value": 100, "from_unit": "c", "to_unit": "f"},
"output": {"value": 212, "unit": "f"},
"formula": "°F = °C × 9/5 + 32 = 100 × 9/5 + 32 = 212"
}
from convert import convert
# 温度换算
result = convert(value=100, from_unit="c", to_unit="f")
# {"success": true, "output": {"value": 212, "unit": "f"}, "formula": "..."}
# 长度换算
result = convert(value=1, from_unit="km", to_unit="mi")
# {"success": true, "output": {"value": 0.621, "unit": "mi"}, ...}
# 货币换算
result = convert(value=100, from_unit="USD", to_unit="CNY")