scientific-skills/Others/lab-result-interpretation/SKILL.md
A medical assistant tool that transforms complex biochemical laboratory test results into clear, patient-friendly explanations with safety disclaimers and severity flags.
npx skillsauth add aipoch/medical-research-skills lab-result-interpretationInstall 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.
A medical assistant tool that transforms complex biochemical laboratory test results into clear, patient-friendly explanations.
python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py --interactive
Critical values: When any value is in the critical range, output a Critical Findings Summary block at the top of the response before the per-test breakdown. Sort findings by severity (critical → high → normal). Include an explicit urgent care recommendation for critical values.
| Category | Tests | |----------|-------| | Blood Routine | WBC, RBC, Hemoglobin, Platelets, Hematocrit | | Lipid Panel | Total Cholesterol, LDL, HDL, Triglycerides | | Liver Function | ALT, AST, ALP, GGT, Bilirubin, Total Protein, Albumin | | Kidney Function | Creatinine, BUN, eGFR, Uric Acid | | Blood Sugar | Fasting Glucose, HbA1c | | Thyroid | TSH, T3, T4, FT3, FT4 | | Electrolytes | Sodium, Potassium, Chloride, Calcium, Magnesium | | Inflammation | CRP, ESR |
from scripts.main import LabResultInterpreter
interpreter = LabResultInterpreter()
result = interpreter.interpret("Total Cholesterol: 5.8 mmol/L (Reference: 3.1-5.7)")
print(result.explanation)
python scripts/main.py --file lab_report.txt
python scripts/main.py --interactive
| Name | Type | Default | Required | Description | |------|------|---------|----------|-------------| | file | string | "" | No | Path to lab report file to process | | interactive | boolean | false | No | Enable interactive mode for manual input | | input | string | "" | No | Direct lab test input string for interpretation |
Accepts flexible formats:
Test Name: Value Unit (Reference: Min-Max)
Test Name Value Unit Ref: Min-Max
Test Name: Value (Min-Max)
{
"test_name": "Total Cholesterol",
"value": 5.8,
"unit": "mmol/L",
"reference_min": 3.1,
"reference_max": 5.7,
"status": "high",
"explanation": "Your total cholesterol is slightly above the normal range...",
"severity": "mild",
"recommendation": "Consider reducing saturated fat intake..."
}
This tool provides educational information only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult with a qualified healthcare provider for interpretation of lab results. This tool does not diagnose — it only explains test meanings.
references/lab_reference_ranges.json — Standard reference rangesreferences/explanation_templates.json — Patient-friendly templatesreferences/test_metadata.json — Test descriptions and clinical notessys.version_info >= (3, 8) at startup and exit with 'Error: Python 3.8+ required' if the check fails, before any imports.pip install -r requirements.txt
This skill accepts: biochemical laboratory test results in standard formats (test name, value, unit, reference range) for the purpose of generating patient-friendly explanations.
If the user's request does not involve lab result interpretation — for example, asking to diagnose a condition, prescribe treatment, interpret imaging results, or perform general medical consultation — do not proceed with the workflow. Instead respond:
"lab-result-interpretation is designed to explain biochemical lab test values in patient-friendly language. It does not diagnose conditions or replace medical advice. Your request appears to be outside this scope. Please provide lab test values with reference ranges, or consult a qualified healthcare provider."
Do not continue the workflow when the request is out of scope, missing lab values, or would require clinical diagnosis. For missing inputs, state exactly which fields are missing.
If scripts/main.py fails or required inputs are incomplete:
--interactive mode to enter values one at a time, or provide the raw value and reference range for manual comparison.This skill explicitly does not:
Any request that would require crossing these boundaries must be declined with the medical disclaimer and a referral to appropriate professional resources.
Every final response must make these items explicit when relevant:
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.--file path contains ../ or points outside the workspace, reject with a path traversal warning before opening the file.Use the following fixed structure for non-trivial requests:
For stress/multi-constraint requests, also include:
If the request is simple, you may compress the structure, but always keep the medical disclaimer and scope limits explicit.
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.