Skip to content

Clinical deep-learning pipeline builder for PyHealth covering datasets, tasks, models, training, metrics, and medical codes.

CCM score
73 of 100
skills.sh installs
2.2K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full PyHealth flow: dataset loading, task definition, model choice, Trainer use, and clinical metric evaluation
  • Includes MIMIC-III/IV, eICU, OMOP, SleepEDF, ChestXray14, and EHRShot datasets plus mortality, readmission, drug recommendation, and sleep staging tasks
  • Enforces patient-level splitting, train-only preprocessing, and checks that the Trainer monitor key is returned by the metrics
  • Provides ICD, ATC, NDC, and RxNorm lookup and cross-mapping for healthcare ML pipelines built on PyHealth 2.0.2

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill pyhealth -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PyHealth

Targets PyHealth 2.0.2, verified against its released wheel, current official documentation, and CPU execution on Python 3.12/Torch 2.7.1. PyHealth's pipeline is Dataset -> Task -> Model -> Trainer -> Metrics; its 1.x and 2.x interfaces differ. Do not combine legacy Visit examples with the 2.x event/processor API.

When to use

Use for clinical prediction with PyHealth, including EHR sequences, physiological signals, imaging tasks, or medical-code lookup. Establish the cohort, prediction time, observation window, outcome horizon, and unit of evaluation before modeling. For general tabular learning without a PyHealth dataset/task, this skill is optional.

Install and smoke-test

uv run --no-project --isolated --python 3.12 --with pyhealth==2.0.2 python assets/starter_pipeline.py --demo --epochs 1

Run that command from the skill directory, or use the absolute path to the asset. It trains on invented in-memory records and exercises patient splitting, metrics, and best-checkpoint restoration. It provides no evidence of clinical performance. See installation for project setup and device options.

Workflow

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, Research & Academic
First seen
Jun 3, 2026

Questions

What does the pyhealth skill help an agent build?

The pyhealth skill guides building clinical and healthcare deep-learning pipelines with PyHealth, following the dataset, task, model, trainer and metrics pattern. It covers loading EHR, signal and imaging datasets such as MIMIC-III, MIMIC-IV, eICU and OMOP, and defining tasks like mortality, readmission and sleep staging.

How do I install the pyhealth skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill pyhealth -y in a project to install the pyhealth skill. Once installed, the pyhealth skill lets the agent work with PyHealth 2.0.2 pipelines and medical code lookup.

What does the pyhealth skill need to run?

The pyhealth skill targets Python 3.12 or 3.13 with PyHealth 2.0.2 and Torch 2.7.1. Network access is needed for installation, public datasets and medical-code resources, and restricted clinical datasets require authorized local access.

Where does the pyhealth skill stand in its category?

The pyhealth skill is listed in Data Science & Analytics. Its nearby skills in that category are azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation.

More from k-dense-ai/scientific-agent-skills

All 132