Skip to content
Back to skills

Data Preparation

ASecurity

"Prepare nnU-Net v2-compatible datasets, path variables,

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

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-91c8c5e5/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-91c8c5e5)

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-preparation
description: "Prepare nnU-Net v2-compatible datasets, path variables,
  dataset.json metadata, conversions, inference input naming,
  labels/regions/ignore-label conventions, and validation troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# data-preparation

Use this sub-skill when the task is to make data acceptable to nnU-Net v2 before planning/preprocessing.

## Route here for

- Setting `nnUNet_raw`, `nnUNet_preprocessed`, `nnUNet_results`, or optional `nnUNet_extTrainer`.
- Creating `nnUNet_raw/DatasetXXX_Name` folders with `imagesTr`, `labelsTr`, optional `imagesTs`, and `dataset.json`.
- Naming training or inference inputs with `_0000`, `_0001`, ... channel suffixes and a consistent file ending.
- Authoring or checking `dataset.json`, including labels, regions, `regions_class_order`, ignore labels, and reader/writer overrides.
- Converting Medical Segmentation Decathlon or old nnU-Net v1 datasets into nnU-Net v2 format.
- Diagnosing validation errors before `nnUNetv2_plan_and_preprocess`.

## Do not handle here

- Planning fingerprints, experiment planners, or preprocessing outputs: use `planning-preprocessing`.
- Trainer classes, folds, losses, schedules, or training commands: use `training-configuration`.
- Prediction, ensembling, evaluation, or postprocessing after a trained model exists: use `inference-evaluation`.

## Start with these references

- Dataset layout, naming, `dataset.json`, regions, ignore labels, and inference input format: `references/data-formats.md`.
- Storage path environment variables and lazy path failure behavior: `references/path-setup.md`.
- MSD/v1 conversion command patterns and preflight validation: `references/conversion-and-validation.md`.
- Common failure modes and fixes: `references/troubleshooting.md`.

## Bundled helper

Run the lightweight validator before planning/preprocessing:

```bash
python sub-skills/data-preparation/scripts/validate_dataset_json.py /path/to/nnUNet_raw/Dataset123_MyDataset
```

Add `--check-files` to verify that `imagesTr` and `labelsTr` filenames match `dataset.json` channel count and file ending. The helper checks metadata and names only; it does not inspect image geometry or label voxel values.

Files in this skill

  • SKILL.md2.2 KB
  • references/conversion-and-validation.md4.5 KB
  • references/data-formats.md5.5 KB
  • references/path-setup.md2.5 KB
  • references/troubleshooting.md5.2 KB
  • scripts/validate_dataset_json.py13.8 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.