Nibabel nifti summary starter
Skill ma-compbio-lab/SkillFoundry/skills/neuroscience-and-neuroimaging/nibabel-nifti-summary-starter
A framework for discovering, compiling, and validating reusable skills for scientific agents.From the repository description
npx -y skills add ma-compbio-lab/SkillFoundry --skill nibabel-nifti-summary-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.1 KB, 288 tokens by cl100k_base, as published. Nobody here has run it
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
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
What ships with it: 7 files
6.7 KB alongside SKILL.md, 2 of them executable
assets/
- README.md82 B
- toy_bold_summary.json353 B
examples/
- README.md94 B
scripts/
- run_nibabel_nifti_summary.pyruns2.8 KB
tests/
- test_run_nibabel_nifti_summary.pyruns1.9 KB
- metadata.yaml1.3 KB
- refs.md158 B