Pure Python DICOM for medical imaging (CT, MRI, X-ray, ultrasound). Read/write DICOM, pixels as NumPy, edit tags, windowing (VOI LUT), PHI anonymization, build DICOM, series→3D volumes. Use histolab for WSI pathology; nibabel for NIfTI.
SkillScore100Maintained
Automatic
◆Clinical / Healthcare pack
Last verified 8/23/2026
What it changes
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
Without skill91%
With skill100%
Checks it passed that the model alone missed
Notes that NIfTI format is distinct from DICOM and handled by specialized neuroimaging libraries.
Explains that standard DICOM libraries like pydicom are not intended for Aperio SVS whole-slide pathology files.
2 fixed20 passed either way0 still failing0 broke
Pass-rate lift
+9 pp
Tokens
+459%
Agent turns
0%
Response time
-19%
Model gemini-3.6-flashMeasured 8/23/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 2
Prompt
I have a 3D structural brain MRI dataset stored as a single brain_scan.nii.gz file. I need to load this volume into Python and extract its 4x4 spatial affine transformation matrix. What Python library is best suited for loading NIfTI files?
What was checked, without and with the skill
Checked
Without skill
With skill
Recommends using nibabel for reading NIfTI (.nii/.nii.gz) files.
Passed
Passed
Notes that NIfTI format is distinct from DICOM and handled by specialized neuroimaging libraries.
Missed
Passed
case-02 · gemini-3.6-flash · 8/23/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md739 lines2 files
Pydicom Medical Imaging
Overview
Pydicom is a pure Python library for reading, writing, and modifying DICOM (Digital Imaging and Communications in Medicine) files. It provides access to DICOM metadata tags and pixel data as NumPy arrays, supporting CT, MRI, X-ray, ultrasound, and other medical imaging modalities. The library handles compressed and uncompressed transfer syntaxes with optional codec plugins.
When to Use
Reading DICOM files and extracting metadata (patient info, study parameters, imaging settings)
Extracting pixel data from DICOM images for analysis or visualization
Converting DICOM images to standard formats (PNG, JPEG, TIFF)
Anonymizing DICOM files by removing Protected Health Information (PHI)
Modifying DICOM metadata tags for relabeling or correction
Creating DICOM files from scratch (e.g., wrapping NumPy arrays as DICOM)
Processing CT/MRI series into 3D volumetric arrays for reconstruction
Extracting frames from multi-frame DICOM (cine/video)
For whole-slide pathology images (SVS, NDPI), use histolab-wsi-processing instead
For NIfTI neuroimaging volumes (.nii/.nii.gz), use nibabel instead