Lab unit harmonization

From XuShuwenn/RedAct · View interactive version

Lab unit harmonization is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Harmonize multi-source clinical lab datasets by parsing numeric formats, detecting mixed units with physiological ranges, converting to a single unit system, and enforcing two-decimal output.

How to use this skill

Skill file

Clinical Lab Unit Harmonization

This skill standardizes laboratory data from heterogeneous sources into a single unit system while cleaning numeric formatting issues and validating physiological plausibility.

Use it when you need to: combine lab feeds using different units, normalize decimal formats (commas, scientific notation), enforce two-decimal outputs, and verify values fall within configured physiological ranges.

When to Use

Activate this skill for tasks involving:

Core Workflow

1) Ingest as strings and preserve identifiers

2) Normalize numeric strings

3) Drop incomplete lab rows

4) Harmonize units using physiological ranges

5) Enforce output requirements

6) Save and verify

Verification

Perform these checks after saving (ideally read back as dtype=str):

Common Pitfalls and How to Avoid Them

Success Criteria

Optional Script Usage

A reusable helper script is provided to perform the workflow with configurable ranges, factors, and special rules.

Example invocation:

Run:

Notes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.