Agent skill · Data & Analytics

dcm2nii

Use this skill whenever the user wants to convert DICOM files or folders to NIfTI format (.nii or .nii.gz), extract neuroimaging volumes from clinical DICOM series (MRI, CT, PET, etc.), prepare raw DICOM data for research processing pipelines, anonymize while converting, or batch-convert multiple series/studies. Triggers include: 'DICOM to NIfTI', 'dcm to nii', 'convert dicom to nii.gz', 'dcm2niix', 'extract nii from dicom', 'batch dicom to nifti', 'prepare dicom for freesurfer/fsl/spm', 'anonymized nifti conversion', or any request to transform clinical DICOM data into analysis-ready NIfTI fo

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill dcm2nii --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 7 KB
Bundled scripts: none
Requires: - claw-shell
Path: skills/neuroclaw/dcm2nii/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# DICOM to NIfTI conversion ## Overview DICOM is the universal clinical imaging format containing rich metadata, patient information, acquisition parameters, and often multi-slice series. NIfTI (.nii/.nii.gz) is the de-facto standard in neuroimaging research — compact, orientation-aware, and directly supported by FSL, FreeSurfer, SPM, AFNI, ANTs, etc. This skill wraps `dcm2niix` (latest stable release as of 2026), the most widely used and actively maintained DICOM→NIfTI converter in neuroimaging. It produces high-fidelity 3D/4D NIfTI volumes + comprehensive JSON sidecar files containing DICOM tags (BIDS-compatible when using `-b y`). ## Benchmark-Facing Default Mainline For benchmark-style DICOM conversion tasks, default to the narrow canonical answer instead of a broad converter survey: - Preferred default command shape: `dcm2niix -z y -b y -o <output_dir> <dicom_dir>` - For batch conversion, the default answer should be a simple loop over subject/session or series directories. - Metadata preservation means emitting paired `.nii.gz` and `.json` outputs; present this as the primary validation target. - Prefer `dcm2niix` over legacy `dcm2nii` unless the user explicitly asks for the

What's inside
Steps it walks through
  1. Overview
  2. Benchmark-Facing Default Mainline
  3. Quick Reference
  4. Installation
  5. Via pre-built binary (recommended for NeuroClaw)
  6. Via conda (clean & reproducible)
  7. Via pip (python wrapper – if needed for scripting)
  8. Docker (isolated environment)
  9. Usage Examples
  10. Basic conversion (most common)
  11. fMRI / 4D conversion with BIDS-style naming
  12. Aggressive anonymization + compression
  13. Convert entire study folder (auto-detect series)
  14. NeuroClaw recommended wrapper (for agent consistency)
Commands it runs
Linux / macOS (use latest release)
wget https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip
unzip dcm2niix_lnx.zip
chmod +x dcm2niix
mv dcm2niix /usr/local/bin/   # or add to PATH
dcm2niix --version
conda install -c conda-forge dcm2niix
pip install pydicom   # optional helper
then call subprocess.run(["dcm2niix", ...])
docker pull rordenlab/dcm2niix:latest
More from awesome-bio-agent-skills
All skills →
About this skill
What does the dcm2nii skill do?

Use this skill whenever the user wants to convert DICOM files or folders to NIfTI format (.nii or .nii.gz), extract neuroimaging volumes from clinical DICOM series (MRI, CT, PET, etc.), prepare raw DICOM data for research processing pipelines, anonymize while converting, or batch-convert multiple series/studies. Triggers include: 'DICOM to NIfTI', 'dcm to nii', 'convert dicom to nii.gz', 'dcm2niix', 'extract nii from dicom', 'batch dicom to nifti', 'prepare dicom for freesurfer/fsl/spm', 'anonymized nifti conversion', or any request to transform clinical DICOM data into analysis-ready NIfTI fo

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill dcm2nii --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going