Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aperivue/model-scaffold
Generate a reproducible, runnable PyTorch training repo for a medical-imaging task — segmentation, classification, detection, image-to-image synthesis, self-supervised pretraining, or fine-tuning a pretrained backbone (transfer learning) — the missing middle link between choosing an architecture and validating a trained model. Emits a patient-level seed-locked split as an auditable artifact, a task-appropriate model, train and evaluate scripts that seed every RNG and infer under eval mode, a con
Passed 15 of 19 test cases with the skill, and 7 of 19 without it.
and 9 more in the full report
10 fixed8 passed either way4 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
A newer attempt on gemini-3.6-flash on 10/11/2026 did not produce a publishable comparison (not comparable). The snapshot above is the previously measured run.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
What Python dependencies are strictly required to run the repository generation script itself to emit a new project structure?
| Checked | Without skill | With skill |
|---|---|---|
| runs using Python standard library and numpy without requiring PyTorch | Missed | Passed |
The instructions your model reads when the skill loads.
This skill stamps out a runnable PyTorch training repo for a medical-imaging task — --task
segmentation (U-Net), classification (CNN / timm backbone), detection (torchvision Faster
R-CNN / FPN), synthesis (Pix2Pix generator + PatchGAN), ssl (SimCLR encoder), or finetune
(transfer-learning a pretrained backbone with a frozen→unfrozen schedule + a provenance record) —
with the reproducibility guarantees baked in by construction — so the build is leakage-safe and
reproducible before a single epoch runs. It is the imaging analogue of how /analyze-stats generates
runnable statistical code: the generator produces the repo, you run the training on your GPU / Colab,
and the lane's deterministic gates verify the network-free parts.
It is the missing middle link in the lane: /model-selection (choose) → model-scaffold (build)
→ /model-assessment (validate the split / design, compute metrics) → /analyze-stats
→ /write-paper + /check-reporting (publish). It integrates MONAI / nnU-Net / TorchIO (referenced
in the generated requirements.txt); it does not reimplement them.
timm / MONAI / MedSAM checkpoint adapted to your collected clinical data) with the freeze schedule,
discriminative learning rates, and pretrained-weight provenance recorded (--task finetune)./model-assessment./model-assessment then /analyze-stats./model-selection./mllm-eval.A CSV with one row per image and a patient/subject ID column (patient_id / subject_id /
case_id), plus image and label path columns. The ID column is load-bearing: the split is done at the
patient level off this column. IDs are compared after stripping surrounding whitespace (P01 and
P01 are one patient), in the split and in the generated dataset.py alike.
test cases passed, vs 7 / 19 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.