scientific-skills/Others/medical-unit-converter/SKILL.md
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.
npx skillsauth add aipoch/medical-research-skills medical-unit-converterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Convert laboratory values between clinical units with formula transparency and reference range context. Supports glucose, cholesterol, creatinine, and hemoglobin.
| Analyte | From | To | Factor | Reference Range (target unit) | |---------|------|----|--------|-------------------------------| | Glucose | mg/dL | mmol/L | 0.0555 | 3.9–5.6 mmol/L (fasting) | | Glucose | mmol/L | mg/dL | 18.018 | 70–100 mg/dL (fasting) | | Cholesterol | mg/dL | mmol/L | 0.02586 | < 5.2 mmol/L (desirable) | | Cholesterol | mmol/L | mg/dL | 38.67 | < 200 mg/dL (desirable) | | Creatinine | mg/dL | μmol/L | 88.4 | 62–115 μmol/L (male) | | Creatinine | μmol/L | mg/dL | 0.01131 | 0.7–1.3 mg/dL (male) | | Hemoglobin | g/dL | g/L | 10 | 130–175 g/L (male) | | Hemoglobin | g/L | g/dL | 0.1 | 13–17.5 g/dL (male) |
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| --value, -v | float | Yes | Numeric value to convert |
| --from-unit | str | Yes | Source unit (e.g., mg_dl, mmol_l, umol_l, g_dl, g_l) |
| --to-unit | str | Yes | Target unit |
| --analyte, -a | str | No | Analyte name for reference range lookup (e.g., glucose, cholesterol, creatinine, hemoglobin) |
{
"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)"
}
python -m py_compile scripts/main.py
python scripts/main.py --value 100 --from-unit mg_dl --to-unit mmol_l --analyte glucose
The script must:
--value, --from-unit, --to-unit, --analyte. Pass parsed args to conv.convert(). Do not hardcode demo values in main().factor and reference_range fields. Keys must be (analyte, from_unit, to_unit) tuples or equivalent nested structure.converted_value, formula, from_unit, to_unit, analyte, reference_range.Partial result field in the Fallback Template with: "Manual formula not available for this unit pair".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."
--value, --from-unit, or --to-unit is missing, state exactly which fields are missing and request only those.--value is not a valid number, reject with: Error: --value must be a numeric value.scripts/main.py fails, report the failure point and provide the manual conversion formula as fallback.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]
───────────────────────────────────────
No additional Python packages required beyond the standard library.
tools
Generates complete conventional oncology bulk-transcriptome biomarker and hub-gene research designs from a user-provided cancer type and study direction. Always use this skill whenever a user wants to design, plan, or build a tumor bioinformatics study centered on differential expression, prognostic filtering or risk modeling, PPI-based hub-gene prioritization, diagnostic/prognostic evaluation, clinical association, immune infiltration context, methylation context, and optional tissue or cell validation. Covers five study patterns (signature-first prognostic workflow, hub-gene-first biomarker workflow, hybrid signature-to-hub workflow, immune-context biomarker workflow, translational validation workflow) and always outputs four workload configs (Lite / Standard / Advanced / Publication+) with recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, publication upgrade path...
development
Generates complete conventional non-oncology bioinformatics research designs from a user-provided disease context, process-related gene family or biological theme, and validation direction. Use when a study centers on multi-dataset bulk transcriptome integration, DEG analysis, process-gene intersection, enrichment analysis, GSEA, PPI hub-gene prioritization, TF/miRNA regulatory networks, ROC-based biomarker evaluation, and immune infiltration analysis. Covers five study patterns (process-DEG discovery, enrichment/GSEA interpretation, hub-gene prioritization, regulatory-network and immune interpretation, multi-layer public validation) and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.
tools
Plans confounder control, variable adjustment logic, and bias mitigation strategies at the protocol stage for clinical, epidemiologic, translational, observational, and biomarker studies. Always use this skill when a user needs to identify major confounders, decide which variables should or should not be adjusted for, compare matching/stratification/weighting approaches, anticipate selection or measurement bias, or pressure-test a study design before execution. Focus on bias sensing, causal structure awareness, variable-role classification, and critical design review rather than generic statistical advice.
testing
Generates complete comparative network-toxicology research designs from a user-provided exposure pair, shared toxic phenotype, and validation direction. Use when a study centers on two related exposures under one outcome and needs target collection, shared-vs-specific target decomposition, enrichment, PPI hub prioritization, docking, optional transcriptomic cross-checks, and conservative mechanistic synthesis. Covers five study patterns and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.