writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
customization-extensionExtend nnU-Net v2 with custom trainers, planners, preprocessors, normalization, image IO, label/region handling, external trainer deployment, and safe class discovery.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to change nnU-Net behavior by adding or selecting custom Python classes rather than only running standard workflows.
nnUNetTrainer subclasses for loss, sampling, augmentation, optimizer, scheduler, checkpoint, or network changes.nnUNet_extTrainer, editable source placement, or a fork.ExperimentPlanner, DefaultPreprocessor subclasses, resampling behavior, normalization classes, or image reader/writers.trainer/planner/preprocessor/reader class not found, external trainer import errors, or old custom trainer API signatures.dataset.json basics, file naming, and routine region/ignore-label authoring: use data-preparation.planning-preprocessing.training-configuration.inference-evaluation.data_identifier and rerun planning/preprocessing for affected configurations.python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind trainer
nnUNet_extTrainer for trainer lookup or install/place source code so normal Python imports work.references/extension-points.md: extension hook map, class names, plan fields, dataset metadata interactions, and discovery rules.references/custom-trainers-and-sharing.md: trainer subclass patterns and model-sharing choices for custom trainers.references/troubleshooting.md: lookup, import, API-signature, sharing, image IO, normalization, region, and ignore-label failures.list_available_nnunet_classes.py imports nnU-Net and prints discovered class names without modifying files, checkpoints, plans, or environment variables. It can inspect built-in locations and optional external trainer roots:
python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind all
python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind trainer --external-trainer-dir /path/to/trainers