Skip to content
Back to skills

Data Pipelines

ASecurity

"Guides PyHealth dataset construction, sample schemas, feature

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythongitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-pipelines --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Pipelines?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Pipelines
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-pipelines-a7693df0/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-pipelines-a7693df0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-pipelines
description: "Guides PyHealth dataset construction, sample schemas, feature
  processors, patient-safe splitting, dataloaders, and local or credential-gated
  clinical data preparation."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# PyHealth data pipelines

Use this route when the request is about loading clinical data, turning patient
records into samples, processing fields, splitting data, or building a
`DataLoader`. Start with the five-stage contract: a dataset exposes structured
patients/visits/events; a task converts it to task samples; processors convert
sample fields; then models consume the resulting dictionaries.

## Workflow

1. Identify the dataset family, version, local root, expected tables/files,
   license/access, and whether a tiny local fixture is sufficient. Read
   [data formats](references/data-formats.md) and [dataset recipes](references/dataset-recipes.md).
2. Instantiate a current dataset export from `pyhealth.datasets`; do not copy
   old `MIMIC3BaseDataset`/`files=` examples without checking the current class.
3. Attach a task with `dataset.set_task(task)`; route task labels and feature
   semantics to [clinical-tasks](../clinical-tasks/SKILL.md).
4. Validate sample keys and processor schemas before training. Use
   `scripts/validate_sample_schema.py` on a local JSON fixture when possible.
5. Prefer `split_by_patient(dataset, [0.8, 0.1, 0.1], seed=...)` for longitudinal
   records, then make loaders with `get_dataloader(dataset, batch_size, shuffle=...)`.
6. Route model feature/vocabulary compatibility to
   [models-training](../models-training/SKILL.md). Never treat a successful
   remote constructor as proof of data authorization or completeness.

Read [API reference](references/api-reference.md) for current signatures,
[data formats](references/data-formats.md) for schema contracts, and
[troubleshooting](references/troubleshooting.md) before changing processors.
The bundled helpers are local/read-only by default; run `python scripts/... --help`
first.

Files in this skill

  • SKILL.md2 KB
  • references/api-reference.md2.4 KB
  • references/data-formats.md1.7 KB
  • references/dataset-recipes.md1.6 KB
  • references/troubleshooting.md1.3 KB
  • scripts/dataset_preflight.py930 B
  • scripts/validate_sample_schema.py1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.