Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计提醒

medical-unit-converter医疗单位转换器

Agent Skill

medical-unit-converter 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,354

周安装

137

GitHub Stars

公开资料未说明

下载量

1,074
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:medical-unit-converter(医疗单位转换器)
来源仓库:https://github.com/aipoch-ai/medical-unit-converter
安装命令:
openclaw skills install medical-unit-converter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install medical-unit-converter

简介

medical-unit-converter 实现医学实验室单位的精确换算,如 mg/dL 到 mmol/L。

  • 适用于临床检验、药物剂量计算等场景,内置公式透明且提供参考范围说明。
  • 支持葡萄糖、胆固醇等多种指标,输入数值和单位即可获取转换结果与正常区间。
  • 安装前应检查维护状态与数据来源可靠性,避免用于紧急医疗判断。
  • 输出结果基于标准换算公式,实际临床值请以仪器报告为准。

SKILL.md

name
medical-unit-converter
description
Convert medical laboratory values between units (mg/dL to mmol/L, etc.) with formula transparency and clinical reference ranges. Supports glucose, cholesterol, creatinine, and hemoglobin conversions.
license
MIT
skill-author
AIPOCH

Medical Unit Converter

Convert laboratory values between clinical units with formula transparency and reference range context. Supports glucose, cholesterol, creatinine, and hemoglobin.

When to Use

  • Converting glucose, cholesterol, creatinine, or hemoglobin lab values between unit systems
  • Verifying unit conversions for clinical documentation or research
  • Batch-converting lab result tables between mg/dL and mmol/L conventions
  • Providing reference ranges alongside converted values

Workflow

  1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
  2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
  3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
  4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Supported Conversions

AnalyteFromToFactorReference Range (target unit)
Glucosemg/dLmmol/L0.05553.9–5.6 mmol/L (fasting)
Glucosemmol/Lmg/dL18.01870–100 mg/dL (fasting)
Cholesterolmg/dLmmol/L0.02586< 5.2 mmol/L (desirable)
Cholesterolmmol/Lmg/dL38.67< 200 mg/dL (desirable)
Creatininemg/dLμmol/L88.462–115 μmol/L (male)
Creatinineμmol/Lmg/dL0.011310.7–1.3 mg/dL (male)
Hemoglobing/dLg/L10130–175 g/L (male)
Hemoglobing/Lg/dL0.113–17.5 g/dL (male)

Input Parameters

ParameterTypeRequiredDescription
--value, -vfloatYesNumeric value to convert
--from-unitstrYesSource unit (e.g., mg_dl, mmol_l, umol_l, g_dl, g_l)
--to-unitstrYesTarget unit
--analyte, -astrNoAnalyte name for reference range lookup (e.g., glucose, cholesterol, creatinine, hemoglobin)

Output Format

{
  "converted_value": 5.55,
  "formula": "100 × 0.0555",
  "from_unit": "mg_dl",
  "to_unit": "mmol_l",
  "analyte": "glucose",
  "reference_range": "3.9–5.6 mmol/L (fasting glucose)"
}

Quick Check

python -m py_compile scripts/main.py
python scripts/main.py --value 100 --from-unit mg_dl --to-unit mmol_l --analyte glucose

Implementation Notes (for script developer)

The script must:

  1. Parse CLI args — use argparse with --value, --from-unit, --to-unit, --analyte. Pass parsed args to conv.convert(). Do not hardcode demo values in main().
  2. CONVERSIONS dict — include all 8 conversion pairs above, each with factor and reference_range fields. Keys must be (analyte, from_unit, to_unit) tuples or equivalent nested structure.
  3. convert() method — return a dict with converted_value, formula, from_unit, to_unit, analyte, reference_range.
  4. Unsupported pair — if the unit pair is not in CONVERSIONS, print the supported conversions list and exit with code 1.
  5. Fallback Partial result — when an unsupported unit pair is requested, always populate the Partial result field in the Fallback Template with: "Manual formula not available for this unit pair".

Input Validation

This skill accepts: numeric laboratory values with a source unit and target unit for conversion between recognized clinical measurement systems.

If the request does not involve converting a specific numeric lab value between units — for example, asking to interpret clinical results, diagnose conditions, or convert non-laboratory quantities — do not proceed. Instead respond:

"medical-unit-converter is designed to convert medical laboratory values between unit systems. Your request appears to be outside this scope. Please provide a numeric value with source and target units, or use a more appropriate tool for your task."

Error Handling

  • If --value, --from-unit, or --to-unit is missing, state exactly which fields are missing and request only those.
  • If the unit pair is not supported, list the supported conversions and stop.
  • If --value is not a valid number, reject with: Error: --value must be a numeric value.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If scripts/main.py fails, report the failure point and provide the manual conversion formula as fallback.
  • Do not fabricate conversion factors or reference ranges.

Fallback Template

When execution fails or inputs are incomplete, respond with this structure:

FALLBACK REPORT
───────────────────────────────────────
Objective      : [restate the conversion goal]
Blocked by     : [exact missing input or error]
Partial result : [manual formula if conversion factor is known; "Manual formula not available for this unit pair" if unsupported]
Next step      : [minimum action needed to unblock]
───────────────────────────────────────

Response Template

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

Prerequisites

No additional Python packages required beyond the standard library.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.32%
按下载量换算938

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills