Use this skill to generate or load a small NIfTI image with `nibabel` and summarize the core shape, affine, zoom, and unit metadata.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add ma-compbio-lab/SkillFoundry --skill nibabel-nifti-summary-starter --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Nibabel Nifti Summary Starter?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ma-compbio-lab-nibabel-nifti-summary-starter)More formats (shields.io, HTML) on the badges page.
# NiBabel NIfTI Summary Starter
Use this skill to generate or load a small NIfTI image with `nibabel` and summarize the core shape, affine, zoom, and unit metadata.
## What it does
- Builds a deterministic toy 4D neuroimaging volume when no input file is supplied.
- Saves the image to disk when requested and reloads it through `nibabel`.
- Reports shape, voxel sizes, affine determinant, basic intensity statistics, and header units.
## When to use it
- You need a runnable starter for `Neuroimaging I/O and formats`.
- You want a verified example of NIfTI creation and inspection before moving to larger neuroimaging pipelines.
## Example
```bash
slurm/envs/neuro/bin/python skills/neuroscience-and-neuroimaging/nibabel-nifti-summary-starter/scripts/run_nibabel_nifti_summary.py \
--nifti-out scratch/neuro/toy_bold.nii.gz \
--out scratch/neuro/toy_bold_summary.json
```
## Verification
- Skill-local tests: `python3 -m unittest discover -s skills/neuroscience-and-neuroimaging/nibabel-nifti-summary-starter/tests -p 'test_*.py'`
- Repository smoke: `python3 -m unittest tests.smoke.test_phase30_empty_domain_seed_skills -v`
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!