nii2dcm
Use this skill whenever the user wants to convert NIfTI files (.nii or .nii.gz) to DICOM format, create DICOM series from processed neuroimaging results, write segmentation/registration/analysis outputs back to DICOM for PACS compatibility or clinical viewer comparison, or transfer metadata from reference DICOM files. Triggers include: mentions of 'NIfTI to DICOM', 'nii to dcm', 'convert nii.gz to DICOM', 'dicomify segmentation', 'nii2dcm', 'bring results back to DICOM', 'create DICOM from NIfTI', 'nii to dicom series', or any request to take post-processed neuroimaging results (segmentation,
npx skills add BioTender-max/awesome-bio-agent-skills --skill nii2dcm --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# NIfTI to DICOM conversion ## Overview A NIfTI file (.nii/.nii.gz) is a compact format widely used in neuroimaging research, typically stripped of patient metadata. DICOM is the clinical standard for medical images, including rich metadata and interoperability with PACS/hospital systems. This skill wraps `nii2dcm` (v0.1.6, May 2025) to convert NIfTI volumes into single-frame DICOM series (multi-slice 2D), primarily for MRI-derived data. It supports modality-specific metadata (MR, SVR) and optional metadata transfer from a reference DICOM file. **Research use only** — not certified for clinical diagnosis, treatment, or patient care. ## Quick Reference | Task | Approach / Command Flag | |-------------------------------|------------------------------------------| | Basic conversion (generic) | `nii2dcm input.nii.gz output_dir/` | | MRI multi-slice series | `--dicom-type MR` or `-d MR` | | SVR (3D swept volume recon) | `--dicom-type SVR` or `-d SVR` | | Copy patient/study metadata | `--ref-dicom ref.dcm` or `-r ref.dcm` | | Custom series description | Add via wrapper or post-process | | Verify output | Open in Horos, 3D Slicer, ITK-Snap | ## Installation ### Via pip (recommended for N
- Overview
- Quick Reference
- Installation
- Via pip (recommended for NeuroClaw)
- From source (for customization / debugging)
- Usage Examples
- Create standard MRI DICOM series
- Create SVR (swept volume reconstruction) series
- Generic conversion (no modality metadata)
- With reference DICOM (copy patient/study metadata)
- NeuroClaw recommended wrapper (simpler for agent calling)
- Important Notes & Limitations
- When to Call This Skill
- Complementary / Related Skills
pip install nii2dcm>=0.1.6 or latest pip install git+https://github.com/tomaroberts/nii2dcm.git git clone https://github.com/tomaroberts/nii2dcm.git cd nii2dcm python -m venv venv source venv/bin/activate pip install --upgrade pip pip install -r requirements.txt pip install .
What does the nii2dcm skill do?
Use this skill whenever the user wants to convert NIfTI files (.nii or .nii.gz) to DICOM format, create DICOM series from processed neuroimaging results, write segmentation/registration/analysis outputs back to DICOM for PACS compatibility or clinical viewer comparison, or transfer metadata from reference DICOM files. Triggers include: mentions of 'NIfTI to DICOM', 'nii to dcm', 'convert nii.gz to DICOM', 'dicomify segmentation', 'nii2dcm', 'bring results back to DICOM', 'create DICOM from NIfTI', 'nii to dicom series', or any request to take post-processed neuroimaging results (segmentation,
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill nii2dcm --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.
