Customization extension

From lza6/Armor-piercing-system-prompts · View interactive version

Customization extension is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Extend nnU-Net v2 with custom trainers, planners, preprocessors, normalization, image IO, label/region handling, external trainer deployment, and safe class discovery.

How to use this skill

Skill file

nnU-Net v2 Customization and Extension

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.

Route here for

Do not handle here

Fast path

  1. Identify the extension point and the class name nnU-Net will resolve: trainer, planner, preprocessor, normalization scheme, image reader/writer, label manager, or network architecture.
  2. Prefer subclassing an existing nnU-Net implementation and overriding the smallest method needed.
  3. If the extension changes preprocessing output, use a distinct plans name or data_identifier and rerun planning/preprocessing for affected configurations.
  4. For custom trainers used outside the development environment, choose a sharing strategy before distributing checkpoints.
  5. Before running expensive jobs, list available classes with the bundled read-only helper:

```bash

python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind trainer

```

  1. If a class is external, set nnUNet_extTrainer for trainer lookup or install/place source code so normal Python imports work.

Bundled references

Bundled helper

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.