← Back to Skills Marketplace
aipoch-ai

Lab Result Interpretation

by AIpoch · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
118
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install lab-result-interpretation
Description
A medical assistant tool that transforms complex biochemical laboratory test results into clear, patient-friendly explanations with safety disclaimers and se...
README (SKILL.md)

Lab Result Interpretation

A medical assistant tool that transforms complex biochemical laboratory test results into clear, patient-friendly explanations.

Quick Check

python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py --interactive

When to Use

  • Use this skill to interpret biochemical lab test results and generate patient-friendly explanations.
  • Use this skill to flag abnormal values with severity indicators and contextual health recommendations.
  • Use this skill for data analysis tasks that require explicit assumptions, bounded scope, and a reproducible output format.
  • Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.

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.

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.

Features

  • Parses various lab test formats (numeric values, units, reference ranges)
  • Compares values against standard reference ranges
  • Generates patient-friendly explanations
  • Flags abnormal values with severity indicators (critical → high → normal order)
  • Provides contextual health recommendations
  • Includes mandatory medical disclaimer in all outputs

Supported Test Types

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

Usage

As Module

from scripts.main import LabResultInterpreter

interpreter = LabResultInterpreter()
result = interpreter.interpret("Total Cholesterol: 5.8 mmol/L (Reference: 3.1-5.7)")
print(result.explanation)

CLI

python scripts/main.py --file lab_report.txt
python scripts/main.py --interactive

Parameters

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

Input Format

Accepts flexible formats:

Test Name: Value Unit (Reference: Min-Max)
Test Name Value Unit Ref: Min-Max
Test Name: Value (Min-Max)

Output Format

{
  "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..."
}

Medical Disclaimer

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

  • references/lab_reference_ranges.json — Standard reference ranges
  • references/explanation_templates.json — Patient-friendly templates
  • references/test_metadata.json — Test descriptions and clinical notes

Dependencies

  • Python >= 3.8 (strictly required; dataclasses module used)
  • Runtime version guard: The script must check sys.version_info >= (3, 8) at startup and exit with 'Error: Python 3.8+ required' if the check fails, before any imports.

Prerequisites

pip install -r requirements.txt

Input Validation

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.

Fallback Behavior

If scripts/main.py fails or required inputs are incomplete:

  1. Report the exact failure point and error message.
  2. State what can still be completed (e.g., partial interpretation of available values).
  3. Manual fallback: use --interactive mode to enter values one at a time, or provide the raw value and reference range for manual comparison.
  4. Do not fabricate lab values, reference ranges, or clinical interpretations.

Boundary Enforcement

This skill explicitly does not:

  • Diagnose medical conditions
  • Recommend specific medications or dosages
  • Replace consultation with a licensed healthcare provider
  • Interpret imaging, pathology, or genetic test results (for imaging results, consult a radiologist report; for genetic tests, consult a genetic counselor)

Any request that would require crossing these boundaries must be declined with the medical disclaimer and a referral to appropriate professional resources.

Output Requirements

Every final response must make these items explicit when relevant:

  • Objective or requested deliverable
  • Inputs used and assumptions introduced
  • Workflow or decision path
  • Critical Findings Summary (if any value is critical — placed at top, before per-test breakdown)
  • Core result, recommendation, or artifact
  • Constraints, risks, caveats, or validation needs (including medical disclaimer)
  • Unresolved items and next-step checks

Error Handling

  • If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
  • 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, summarize what still can be completed safely, and provide a manual fallback.
  • If the --file path contains ../ or points outside the workspace, reject with a path traversal warning before opening the file.
  • Do not fabricate files, citations, data, search results, or execution outcomes.

Response Template

Use the following fixed structure for non-trivial requests:

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Critical Findings Summary (if applicable — urgent care recommendation for critical values)
  6. Deliverable
  7. Risks and Limits (always include medical disclaimer)
  8. Next Checks

For stress/multi-constraint requests, also include:

  • Constraints checklist (compliance, performance, error paths)
  • Explicit boundary statement confirming no diagnosis was made
  • Unresolved items with explicit blocking reasons

If the request is simple, you may compress the structure, but always keep the medical disclaimer and scope limits explicit.

Usage Guidance
This skill appears to implement lab-value parsing and patient-friendly explanations, but there are important mismatches you should review before installing or using it: - Templates may produce diagnostic statements: The included explanation templates contain wording that can be interpreted as a medical diagnosis (for example, 'diabetes confirmed' for severe HbA1c). The SKILL.md explicitly forbids diagnosing; you should inspect and edit templates to remove any definitive diagnostic language if you want to ensure the tool never makes diagnoses. - Documentation vs. code inconsistencies: SKILL.md requires a Python 3.8+ guard to run before imports and claims certain error/path checks exist, but the script does not implement the pre-import guard and the audit notes some protections are 'documented' but not confirmed. Verify input-file handling (no path traversal), implement/version-checks as intended, and confirm fallback/error messages. - Missing resource: SKILL.md references test_metadata.json but it's not in the package. Confirm how the code behaves when that resource is absent and whether assumptions or fallback ranges are documented. - Run offline and test with known inputs: Execute the script in an isolated environment with representative lab reports and check outputs for unintended diagnostic wording or unexpected behavior. Confirm that critical-value outputs include the mandated urgent-care wording and that the tool always includes the disclaimer. - Security posture: The package does not request credentials or perform network calls (no obvious exfiltration), but you should still audit any file-reading code paths (the --file option) to ensure it enforces safe path handling and does not load arbitrary system files. If you are not able to perform these checks, do not rely on this skill for clinical decisions — treat outputs as educational only and encourage users to consult a qualified healthcare provider.
Capability Analysis
Type: OpenClaw Skill Name: lab-result-interpretation Version: 1.0.0 The skill bundle provides a medical lab result interpretation tool but contains a path traversal vulnerability in 'scripts/main.py' because the '--file' argument is used to open files without sanitization. While 'SKILL.md' instructs the AI agent to perform path validation, the actual Python implementation lacks these safeguards. The bundle also includes an audit report ('lab-result-interpretation_audit_result_v4.json') that acknowledges this vulnerability and a missing Python version guard, confirming the presence of known security flaws without evidence of intentional malice.
Capability Assessment
Purpose & Capability
Name and description align with the included code and reference data: the package contains a parser, reference ranges, and explanation templates appropriate for lab-result interpretation. However, SKILL.md refers to a references/test_metadata.json file that is not present in the manifest, and it mandates a strict startup runtime guard (Python 3.8+) that the script does not implement before imports as documented. These mismatches are surprising but may be due to sloppy packaging rather than malicious intent.
Instruction Scope
SKILL.md explicitly forbids diagnosing conditions and mandates conservative scope enforcement, but the included explanation templates contain statements that can be read as definitive diagnoses (e.g., 'diabetes confirmed' for severe HbA1c). That means, depending on how templates are used, the tool could produce outputs that contradict its own safety boundary. Additionally, SKILL.md documents path-traversal rejection and a runtime version guard, but the script does not visibly implement the pre-import version guard and the audit notes the guard/error handling are 'documented' but 'not confirmed in script'. Those contradictions increase the risk that the runtime behavior won't match the documented safety constraints.
Install Mechanism
This is an instruction-only skill with a packaged Python script and local JSON references — no network installs or downloads. The only install step suggested is 'pip install -r requirements.txt', but requirements.txt only lists 'dataclasses', which is unnecessary for Python >= 3.8 and suggests packaging sloppiness rather than risk. No external URLs or archives are downloaded.
Credentials
The skill requests no environment variables, credentials, or config paths. It does not appear to require system-level secrets or unrelated service tokens — access requests are proportionate to the stated purpose.
Persistence & Privilege
The skill does not request 'always: true' or other elevated persistence. It is user-invocable and allows normal autonomous invocation, which is the platform default. There is no evidence it attempts to modify other skills or system settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lab-result-interpretation
  3. After installation, invoke the skill by name or use /lab-result-interpretation
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of lab-result-interpretation skill. - Provides patient-friendly explanations for biochemical lab test results, including severity flags and health recommendations. - Flags critical values and displays an urgent summary at the top, sorted by severity. - Supports common panels: blood, lipid, liver, kidney, electrolytes, thyroid, inflammation, and blood sugar tests. - Enforces strict boundaries (no diagnosis, no treatment, no non-lab result interpretation). - Includes robust input validation, error handling, and fallback behaviors. - Every output includes a mandatory medical disclaimer.
Metadata
Slug lab-result-interpretation
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Lab Result Interpretation?

A medical assistant tool that transforms complex biochemical laboratory test results into clear, patient-friendly explanations with safety disclaimers and se... It is an AI Agent Skill for Claude Code / OpenClaw, with 118 downloads so far.

How do I install Lab Result Interpretation?

Run "/install lab-result-interpretation" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Lab Result Interpretation free?

Yes, Lab Result Interpretation is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Lab Result Interpretation support?

Lab Result Interpretation is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Lab Result Interpretation?

It is built and maintained by AIpoch (@aipoch-ai); the current version is v1.0.0.

💬 Comments