Statistical Reviewer
RConsortium/pharma-skills
Simulates an independent statistical reviewer auditing a clinical trial submission package (SDTM, ADaM, TLG/TLF, SAP, CSR).
Comprehensive clinical laboratory data harmonization for multi-source healthcare analytics.
$ npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install benchflow-ai/skillsbench lab-unit-harmonization --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization .claude/skills/lab-unit-harmonization && rm -rf skills-srcUse ~/.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/
Install the "lab-unit-harmonization" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization into .claude/skills/lab-unit-harmonization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lab-unit-harmonization", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonizationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install benchflow-ai/skillsbench lab-unit-harmonization --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .agents/skills && cp -r skills-src/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization .agents/skills/lab-unit-harmonization && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "lab-unit-harmonization" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization into .agents/skills/lab-unit-harmonization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lab-unit-harmonization", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install benchflow-ai/skillsbench lab-unit-harmonization --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization .cursor/skills/lab-unit-harmonization && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "lab-unit-harmonization" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization into .cursor/skills/lab-unit-harmonization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lab-unit-harmonization", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/benchflow-ai/skillsbench.git --path tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install benchflow-ai/skillsbench lab-unit-harmonization --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization .gemini/skills/lab-unit-harmonization && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "lab-unit-harmonization" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization into .gemini/skills/lab-unit-harmonization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lab-unit-harmonization", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install benchflow-ai/skillsbench lab-unit-harmonizationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .github/skills && cp -r skills-src/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization .github/skills/lab-unit-harmonization && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "lab-unit-harmonization" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization into .github/skills/lab-unit-harmonization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lab-unit-harmonization", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install benchflow-ai/skillsbench lab-unit-harmonization --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/benchflow-ai/skillsbench.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization .opencode/skills/lab-unit-harmonization && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "lab-unit-harmonization" agent skill from https://github.com/benchflow-ai/skillsbench/tree/main/tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization into .opencode/skills/lab-unit-harmonization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "lab-unit-harmonization", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
lab-unit-harmonizationComprehensive clinical laboratory data harmonization for multi-source healthcare analytics.
Lab Unit Harmonization is an agent skill from benchflow-ai/skillsbench. Comprehensive clinical laboratory data harmonization for multi-source healthcare analytics. Convert between US conventional and SI units, standardize numeric formats, and clean data quality issues. This skill should be used when you need to harmonize lab values from different sources, convert units for clinical analysis, fix formatting inconsistencies (scientific notation, decimal separators, whitespace), or prepare lab panels for research.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/ckd_lab_features.md`).
It sits in Data & Analytics, covering Data cleaning and Clinical and healthcare research. The repository describes itself as: SkillsBench evaluates how well skills work and how effective agents are at using them. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 9a1f4dd. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
kdigo.orgucum.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Lab Unit Harmonization loads about 2.7k tokens when it runs. Until then it costs about 117 tokens; SKILL.md has 907 words of instructions outside code blocks.
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.
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); files beside SKILL.md are not scanned.
The full file from benchflow-ai/skillsbench at commit 9a1f4dd, republished under its Apache-2.0 licence (© benchflow-ai). 907 words, ~2,684 tokens.
.claude/skills/lab-unit-harmonization/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Lab Unit Harmonization provides techniques and references for standardizing clinical laboratory data from multiple sources. Real-world healthcare data often contains measurements in different units, varying decimal and numeric formats, and data entry inconsistencies that must be resolved before analysis.
This skill covers:
Use this skill when:
Real-world clinical lab data contains multiple types of quality issues. The following table summarizes common issues and their typical prevalence in multi-source datasets:
| Issue Type | Description | Typical Prevalence | Example |
|---|---|---|---|
| Incomplete Records | Rows with excessive missing values | 1-5% | Patient record with only 3/62 labs measured |
| Mixed Units | Same analyte reported in different units | 20-40% | Creatinine: mg/dL vs µmol/L |
| Scientific Notation | Large/small values in exponential format | 15-30% | 1.5e3 instead of 1500 |
| Thousand Separators | Commas in large numbers | 10-25% | 1,234.5 vs 1234.5 |
| European Decimals | Comma as decimal separator | 10-20% | 12,5 instead of 12.5 |
| Whitespace Issues | Leading/trailing spaces, tabs | 15-25% | 45.2 vs 45.2 |
| Missing Values | Empty, NULL, or sentinel values | Variable | NaN, -999, blank |
Some features have more than two possible unit representations:
Three-Unit Features (8 total):
| Feature | Unit 1 | Unit 2 | Unit 3 |
|---|---|---|---|
| Magnesium | mg/dL | mmol/L | mEq/L |
| Serum_Calcium | mg/dL | mmol/L | mEq/L |
| Hemoglobin | g/dL | g/L | mmol/L |
| Ferritin | ng/mL | µg/L | pmol/L |
| Prealbumin | mg/dL | mg/L | g/L |
| Urine_Creatinine | mg/dL | µmol/L | mmol/L |
| Troponin_I | ng/mL | µg/L | ng/L |
| Troponin_T | ng/mL | µg/L | ng/L |
The harmonization process follows these steps in order:
Before harmonization, filter out rows with any missing values:
def count_missing(row, numeric_cols):
"""Count missing/empty values in numeric columns"""
count = 0
for col in numeric_cols:
val = row[col]
if pd.isna(val) or str(val).strip() in ['', 'NaN', 'None', 'nan', 'none']:
count += 1
return count
# Keep only rows with NO missing values
missing_counts = df.apply(lambda row: count_missing(row, numeric_cols), axis=1)
complete_mask = missing_counts == 0
df = df[complete_mask].reset_index(drop=True)Rationale: Clinical datasets often contain incomplete records (e.g., partial lab panels, cancelled orders, data entry errors). For harmonization tasks, only complete records with all features measured can be reliably processed. Rows with any missing values should be excluded to ensure consistent output quality.
Parse all raw values to clean floats, handling:
1.5e3 → 1500.012,34 → 12.34 (comma as decimal separator)" 45.2 " → 45.2import pandas as pd
import numpy as np
def parse_value(value):
"""
Parse a raw value to float.
Handles (in order):
1. Scientific notation: 1.5e3, 3.338e+00 → float
2. European decimals: 6,7396 → 6.7396
3. Plain numbers with varying decimals
"""
if pd.isna(value):
return np.nan
s = str(value).strip()
if s == '' or s.lower() == 'nan':
return np.nan
# Handle scientific notation first
if 'e' in s.lower():
try:
return float(s)
except ValueError:
pass
# Handle European decimals (comma as decimal separator)
# In this dataset, comma is used as decimal separator, not thousands
if ',' in s:
s = s.replace(',', '.')
# Parse as float
try:
return float(s)
except ValueError:
return np.nan
# Apply to all numeric columns
for col in numeric_cols:
df[col] = df[col].apply(parse_value)Key Principle: If a value falls outside the expected range (Min/Max) defined in reference/ckd_lab_features.md, it likely needs unit conversion.
The algorithm:
def convert_unit_if_needed(value, column, reference_ranges, conversion_factors):
"""
If value is outside expected range, try conversion factors.
Logic:
1. If value is within range [min, max], return as-is
2. If outside range, try each conversion factor
3. Return first converted value that falls within range
4. If no conversion works, return original (NO CLAMPING!)
"""
if pd.isna(value):
return value
if column not in reference_ranges:
return value
min_val, max_val = reference_ranges[column]
# If already in range, no conversion needed
if min_val <= value <= max_val:
return value
# Get conversion factors for this column
factors = conversion_factors.get(column, [])
# Try each factor
for factor in factors:
converted = value * factor
if min_val <= converted <= max_val:
return converted
# No conversion worked - return original (NO CLAMPING!)
return value
# Apply to all numeric columns
for col in numeric_cols:
df[col] = df[col].apply(lambda x: convert_unit_if_needed(x, col, reference_ranges, conversion_factors))Example 1: Serum Creatinine
Example 2: Hemoglobin
Important: Avoid aggressive clamping of values to the valid range. However, due to floating point precision issues from format conversions, some converted values may end up just outside the boundary (e.g., 0.49 instead of 0.50). In these edge cases, it's acceptable to use a 5% tolerance and clamp values slightly outside the boundary.
Format all values to exactly 2 decimal places (standard precision for clinical lab results):
# Format all numeric columns to X.XX format
for col in numeric_cols:
df[col] = df[col].apply(lambda x: f"{x:.2f}" if pd.notna(x) else '')This produces clean output like 12.34, 0.50, 1234.00.
See reference/ckd_lab_features.md for the complete dictionary of 60 CKD-related lab features including:
| Category | Count | Examples |
|---|---|---|
| Kidney Function | 5 | Serum_Creatinine, BUN, eGFR, Cystatin_C |
| Electrolytes | 6 | Sodium, Potassium, Chloride, Bicarbonate |
| Mineral & Bone | 7 | Serum_Calcium, Phosphorus, Intact_PTH, Vitamin_D |
| Hematology/CBC | 5 | Hemoglobin, Hematocrit, RBC_Count, WBC_Count |
| Iron Studies | 5 | Serum_Iron, TIBC, Ferritin, Transferrin_Saturation |
| Liver Function | 2 | Total_Bilirubin, Direct_Bilirubin |
| Proteins/Nutrition | 4 | Albumin_Serum, Total_Protein, Prealbumin, CRP |
| Lipid Panel | 5 | Total_Cholesterol, LDL, HDL, Triglycerides |
| Glucose Metabolism | 3 | Glucose, HbA1c, Fructosamine |
| Uric Acid | 1 | Uric_Acid |
| Urinalysis | 7 | Urine_Albumin, UACR, UPCR, Urine_pH |
| Cardiac Markers | 4 | BNP, NT_proBNP, Troponin_I, Troponin_T |
| Thyroid Function | 2 | Free_T4, Free_T3 |
| Blood Gases | 4 | pH_Arterial, pCO2, pO2, Lactate |
| Dialysis-Specific | 2 | Beta2_Microglobulin, Aluminum |
reference/ckd_lab_features.md: Complete feature dictionary with all conversion factors© benchflow-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization of benchflow-ai/skillsbench.
Open the folder on GitHubat commit 9a1f4dd
Lab Unit Harmonization 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Lab Unit Harmonization this skillbenchflow-ai/skillsbench | 1.8k | — | ~2.7k | Automated safety check: Pass | Apache-2.0 | |
| Statistical ReviewerRConsortium/pharma-skills | 118 | — | ~4.8k | Automated safety check: Pass | None | |
| Model CardAperivue/medsci-skills | 329 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Clinical Data Cleaneraipoch/medical-research-skills | 2k | — | ~2.4k | Automated safety check: Pass | MIT | |
| CHARLS Paper Reproduction Guidexjtulyc/MedgeClaw | 617 | 1 repos | ~1.8k | Automated safety check: Pass | None | |
| Question2reportrefraction-ray/xalpha | 2.7k | — | ~3.2k | Automated safety check: Pass | MIT |
RConsortium/pharma-skills
Simulates an independent statistical reviewer auditing a clinical trial submission package (SDTM, ADaM, TLG/TLF, SAP, CSR).
Aperivue/medsci-skills
A skill your agent uses when a trained medical-imaging model needs its documentation.
aipoch/medical-research-skills
A skill your agent uses when cleaning clinical trial data, preparing data for FDA/EMA submission, standardizing SDTM datasets, handling missing values in clinical studies, detecting outliers in lab…
xjtulyc/MedgeClaw
Guides an agent through reproducing papers built on the CHARLS health and retirement survey, from variable mapping to cognition, depression and isolation scores.
refraction-ray/xalpha
Turn a natural-language financial question into a polished, self-contained HTML report.
MigoXLab/dingo
A skill your agent uses when the user wants to fact-check an article or verify factual claims in a document.
benchflow-ai/skillsbench
This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences…
benchflow-ai/skillsbench
World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, real-time streaming, and data infrastructure.
benchflow-ai/skillsbench
AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching acopf-math-model.md and MATPOWER branch fields.
benchflow-ai/skillsbench
Civilization 6 district mechanics library. An agent skill from benchflow-ai/skillsbench.
benchflow-ai/skillsbench
Build deterministic, verifiable data visualizations with D3.js (v6).
benchflow-ai/skillsbench
DC power flow analysis for power systems. An agent skill from benchflow-ai/skillsbench.
Categories
Comprehensive clinical laboratory data harmonization for multi-source healthcare analytics. Lab Unit Harmonization is an agent skill from benchflow-ai/skillsbench. Comprehensive clinical laboratory data harmonization for multi-source healthcare analytics.
Lab Unit Harmonization fits situations like: tasks that involve Data cleaning; tasks that involve Clinical and healthcare research.
Run `npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a claude-code`. Or copy the skill folder (tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization in benchflow-ai/skillsbench) into .claude/skills/lab-unit-harmonization in your project. Claude Code loads it when a task matches its description.
Run `npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a codex`. Or copy the skill folder (tasks/lab-unit-harmonization/environment/skills/lab-unit-harmonization in benchflow-ai/skillsbench) into .agents/skills/lab-unit-harmonization in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add benchflow-ai/skillsbench --skill lab-unit-harmonization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lab-unit-harmonization, .gemini/skills/lab-unit-harmonization, .github/skills/lab-unit-harmonization and .opencode/skills/lab-unit-harmonization in your project.
SKILL.md names no scripts, command-line tools or credentials: Lab Unit Harmonization is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 2 domains. As links in the text: kdigo.org and ucum.org. This is read from the text; nothing was executed.
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. Review the folder before installing.
Lab Unit Harmonization is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Lab Unit Harmonization: Statistical Reviewer (RConsortium/pharma-skills, 118 stars), Model Card (Aperivue/medsci-skills, 329 stars), Clinical Data Cleaner (aipoch/medical-research-skills, 2k stars) and CHARLS Paper Reproduction Guide (xjtulyc/MedgeClaw, 617 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
benchflow-ai (a GitHub organization) maintains it in benchflow-ai/skillsbench, which has 1,832 GitHub stars. The repository holds 178 skills in this directory. The repository was last updated on July 23, 2026.
Source: benchflow-ai/skillsbench on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.