Agent skill

Medical Unit Converter

by aipoch in aipoch/medical-research-skills

Convert medical laboratory values between units (mg/dL to mmol/L, etc.) with formula transparency and clinical reference ranges.

MITAuto-check passedResearch & Science

Install Medical Unit Converter

skills CLI
$ npx skills add aipoch/medical-research-skills --skill medical-unit-converter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills medical-unit-converter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/medical-unit-converter .claude/skills/medical-unit-converter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
medical-unit-converter
GitHub stars
1.9k
Token cost
~1.4k tokens
SKILL.md length
606 words
Files
4 (incl. scripts, references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Convert medical laboratory values between units (mg/dL to mmol/L, etc.) with formula transparency and clinical reference ranges.

  • Works in 5 steps: Confirm the user objective, required… → Validate that the request matches the… → Use the packaged script path or the… → …
  • Research & Science work in your project
  • SKILL.md covers When to Use, Workflow, Supported Conversions and Input Parameters, plus 8 more sections
  • Runs Python scripts from its folder; calls python

What it does

Medical Unit Converter is an agent skill from aipoch/medical-research-skills. 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.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `medical-unit-converter_audit_result_v4.json`, `references/guidelines.md` and `scripts/main.py`).

It sits in Research & Science. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Research & Science work in your project

Example prompts

  • “/medical-unit-converter”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Medical Unit Converter loads about 1.4k tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 606 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 606 words, ~1,450 tokens.

Download SKILL.mdSave it as .claude/skills/medical-unit-converter/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
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
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

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

json
{
  "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

bash
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".
Show full SKILL.md (223 more words)Show less

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.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in scientific-skills/Other/medical-unit-converter of aipoch/medical-research-skills.

  • SKILL.md
  • medical-unit-converter_audit_result_v4.json
  • references/guidelines.md
  • scripts/main.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Medical Unit Converter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Medical Unit Converter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Medical Unit Converter this skillaipoch/medical-research-skills1.9k—~1.4kAutomated safety check: PassMIT
Hypothesis Generationspacering-net/codeg3.9k14 repos~3.6kAutomated safety check: NotesMIT
GitHub Deep Researchbytedance/deer-flow84k4 repos~1.3kAutomated safety check: PassMIT
Nature Paper CardYuan1z0825/nature-skills47k2 repos~2.1kAutomated safety check: PassApache-2.0
Content Research Writerweapp-tailwindcss/weapp-tailwindcss1.9k25 repos~3.5kAutomated safety check: PassMIT
Last30daysmvanhorn/last30days-skill64k—~7.9kAutomated safety check: NotesMIT

Similar skills

  • Hypothesis Generation

    spacering-net/codeg

    Structured hypothesis formulation from observations. An agent skill from spacering-net/codeg.

    3.9k GitHub starsUsed in 14 repos~3.6k tokens
    Research & ScienceAuto-check: notes
  • GitHub Deep Research

    bytedance/deer-flow

    Researches a GitHub repository over four rounds using the GitHub API and web search, then writes a structured markdown report with timeline, metrics and Mermaid diagrams.

    84k GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed
  • Nature Paper Card

    Yuan1z0825/nature-skills

    Builds a structured deep-reading card for one scientific paper, covering methods, how experiments support claims, limitations and research ideas, with a script to prepare the source.

    47k GitHub starsUsed in 2 repos~2.1k tokens
    Research & ScienceAuto-check passed
  • Content Research Writer

    weapp-tailwindcss/weapp-tailwindcss

    Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section.

    1.9k GitHub starsUsed in 25 repos~3.5k tokens
    Research & ScienceAuto-check passed
  • Last30days

    mvanhorn/last30days-skill

    Research what people actually say about any topic in the last 30 days.

    64k GitHub stars~7.9k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Peer Review

    spacering-net/codeg

    Structured manuscript/grant review with checklist-based evaluation.

    3.9k GitHub starsUsed in 17 repos~5.9k tokens
    Research & ScienceAuto-check: notes

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 24 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 24 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 24 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 24 days ago
    Auto-check passed

Questions about Medical Unit Converter

What does Medical Unit Converter do?

Convert medical laboratory values between units (mg/dL to mmol/L, etc.) with formula transparency and clinical reference ranges. Medical Unit Converter is an agent skill from aipoch/medical-research-skills.) with formula transparency and clinical reference ranges.

When should I use Medical Unit Converter?

Medical Unit Converter fits situations like: research & Science work in your project.

How do I install Medical Unit Converter in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill medical-unit-converter -a claude-code`. Or copy the skill folder (scientific-skills/Other/medical-unit-converter in aipoch/medical-research-skills) into .claude/skills/medical-unit-converter in your project. Claude Code loads it when a task matches its description.

How do I install Medical Unit Converter in Codex?

Run `npx skills add aipoch/medical-research-skills --skill medical-unit-converter -a codex`. Or copy the skill folder (scientific-skills/Other/medical-unit-converter in aipoch/medical-research-skills) into .agents/skills/medical-unit-converter in your project. Codex loads it when a task matches its description.

Can I use Medical Unit Converter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill medical-unit-converter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/medical-unit-converter, .gemini/skills/medical-unit-converter, .github/skills/medical-unit-converter and .opencode/skills/medical-unit-converter in your project.

What does Medical Unit Converter need to run?

Going by SKILL.md and its folder, Medical Unit Converter needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Medical Unit Converter access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Medical Unit Converter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Medical Unit Converter use?

Medical Unit Converter is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Medical Unit Converter use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 30 tokens, read only when the agent opens those files.

What are the alternatives to Medical Unit Converter?

Skills that share tags, products or a category with Medical Unit Converter: Hypothesis Generation (spacering-net/codeg, 3.9k stars), GitHub Deep Research (bytedance/deer-flow, 84k stars), Nature Paper Card (Yuan1z0825/nature-skills, 47k stars) and Content Research Writer (weapp-tailwindcss/weapp-tailwindcss, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Medical Unit Converter?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.