Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Read and write neuroimaging file formats: NIfTI, GIFTI, CIFTI, MGH, Minc, Analyze, SPM. Core I/O for fMRI, diffusion MRI, structural MRI pipelines. Use when handling brain imaging data.
.claude/skills/mkurman-nibabel/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | -25% | 0% |
| case-22 | ✓→✗ | ▼ Worse | 16% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -6% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 20% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 27% | 0% |
NiBabel is the core Python library for neuroimaging file I/O. Use it to read and write NIfTI, GIFTI, CIFTI, MGH, MINC, and Analyze files, inspect affine metadata, and move data between imaging tools and NumPy.
bashuv pip install nibabel
pythonimport nibabel as nib img = nib.load('brain_t1.nii.gz') data = img.get_fdata() affine = img.affine header = img.header print(data.shape) print(header.get_zooms()) print(affine)
pythonimport numpy as np masked = (data > data.mean()).astype(np.float32) out = nib.Nifti1Image(masked, affine, header) nib.save(out, 'brain_mask.nii.gz')
pythonfmri = nib.load('rest_bold.nii.gz') arr = fmri.get_fdata() # shape like (x, y, z, t) tr = fmri.header.get_zooms()[-1] print(arr.shape, tr)
NiBabel stores the affine transform from voxel coordinates to world coordinates. Do not ignore it if you are mixing tools, resampling data, or comparing scans across sessions.
nib.load()..get_fdata() when you want floating-point arrays.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 6,760 | 4,683 | -31% | 1 | 1 | 0% | 1,275 | 1,197 | -6% | 0 | 0 | — |
case-02 | pass→pass | 4,315 | 2,507 | -42% | 1 | 1 | 0% | 736 | 881 | +20% | 0 | 0 | — |
case-03 | pass→pass | 3,513 | 2,253 | -36% | 1 | 1 | 0% | 639 | 814 | +27% | 0 | 0 | — |
case-04 | pass→pass | 6,946 | 4,167 | -40% | 1 | 1 | 0% | 1,432 | 1,252 | -13% | 0 | 0 | — |
case-05 | pass→pass | 2,309 | 1,879 | -19% | 1 | 1 | 0% | 385 | 713 | +85% | 0 | 0 | — |
case-06 | pass→pass | 7,727 | 3,466 | -55% | 1 | 1 | 0% | 1,508 | 1,041 | -31% | 0 | 0 | — |
case-07 | fail→pass | 5,671 | 2,250 | -60% | 1 | 1 | 0% | 1,005 | 754 | -25% | 0 | 0 | — |
case-08 | pass→pass | 16,449 | 12,423 | -24% | 1 | 1 | 0% | 3,050 | 2,589 | -15% | 0 | 0 | — |
case-09 | pass→pass | 7,375 | 2,668 | -64% | 1 | 1 | 0% | 1,421 | 900 | -37% | 0 | 0 | — |
case-10 | fail→fail | 10,013 | 9,569 | -4% | 1 | 1 | 0% | 1,764 | 2,024 | +15% | 0 | 0 | — |
case-11 | pass→pass | 4,072 | 2,573 | -37% | 1 | 1 | 0% | 720 | 866 | +20% | 0 | 0 | — |
case-12 | pass→pass | 2,063 | 1,529 | -26% | 1 | 1 | 0% | 286 | 600 | +110% | 0 | 0 | — |
case-13 | pass→pass | 3,201 | 1,917 | -40% | 1 | 1 | 0% | 519 | 662 | +28% | 0 | 0 | — |
case-14 | pass→pass | 6,594 | 2,797 | -58% | 1 | 1 | 0% | 1,214 | 927 | -24% | 0 | 0 | — |
case-15 | pass→pass | 4,929 | 3,207 | -35% | 1 | 1 | 0% | 909 | 931 | +2% | 0 | 0 | — |
case-16 | pass→pass | 7,709 | 4,270 | -45% | 1 | 1 | 0% | 1,431 | 1,171 | -18% | 0 | 0 | — |
case-17 | pass→pass | 9,051 | 3,522 | -61% | 1 | 1 | 0% | 1,635 | 991 | -39% | 0 | 0 | — |
case-18 | pass→pass | 8,904 | 4,708 | -47% | 1 | 1 | 0% | 1,580 | 1,211 | -23% | 0 | 0 | — |
case-19 | pass→pass | 6,691 | 6,260 | -6% | 1 | 1 | 0% | 1,271 | 1,446 | +14% | 0 | 0 | — |
case-20 | pass→pass | 10,024 | 6,625 | -34% | 1 | 1 | 0% | 1,923 | 1,651 | -14% | 0 | 0 | — |
case-21 | pass→pass | 16,085 | 13,942 | -13% | 1 | 1 | 0% | 2,980 | 3,340 | +12% | 0 | 0 | — |
case-22 | pass→fail | 16,306 | 15,013 | -8% | 1 | 1 | 0% | 3,044 | 3,531 | +16% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of 0 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.