Skip to content

Python library for reading, writing, and anonymizing DICOM medical imaging files, with pixel data and metadata tools.

CCM score
67 of 100
skills.sh installs
387
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers reading, writing, and modifying DICOM files, plus pixel extraction from CT, MRI, X-ray, and ultrasound scans
  • Includes a dicom_to_image.py converter for PNG output and an anonymize_dicom.py script for removing patient identifiers
  • Documents metadata editing, multi-frame handling, color space conversion, and compressed transfer syntaxes via pylibjpeg or GDCM
  • Designed for research data sharing, radiology workflows, and PACS-related healthcare imaging applications

Install

$ npx -y skills add davila7/claude-code-templates --skill pydicom -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Pydicom

Overview

Pydicom is a pure Python package for working with DICOM files, the standard format for medical imaging data. This skill provides guidance on reading, writing, and manipulating DICOM files, including working with pixel data, metadata, and various compression formats.

When to Use This Skill

Use this skill when working with:

  • Medical imaging files (CT, MRI, X-ray, ultrasound, PET, etc.)
  • DICOM datasets requiring metadata extraction or modification
  • Pixel data extraction and image processing from medical scans
  • DICOM anonymization for research or data sharing
  • Converting DICOM files to standard image formats
  • Compressed DICOM data requiring decompression
  • DICOM sequences and structured reports
  • Multi-slice volume reconstruction
  • PACS (Picture Archiving and Communication System) integration

Installation

Install pydicom and common dependencies:

uv pip install pydicom
uv pip install pillow  # For image format conversion
uv pip install numpy   # For pixel array manipulation
uv pip install matplotlib  # For visualization

For handling compressed DICOM files, additional packages may be needed:

Details

Repository
github.com/davila7/claude-code-templates
Categories
Python, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the pydicom skill do?

The pydicom skill guides an agent through reading, writing and modifying DICOM medical imaging files with the pydicom Python library. It covers extracting pixel data from CT, MRI, X-ray and ultrasound images, editing DICOM metadata, anonymizing files and converting them to standard image formats.

How do I install the pydicom skill?

Run npx -y skills add davila7/claude-code-templates --skill pydicom -y in a project to install the pydicom skill. Once installed, the agent can handle DICOM files, pixel data and metadata tasks using the pydicom library.

Who is the pydicom skill for?

The pydicom skill is for developers working on medical imaging, PACS systems, radiology workflows and healthcare imaging applications. It fits anyone processing DICOM datasets for analysis, research sharing or format conversion.

Which skills lead the pydicom skill in the Python category?

On the Python category page, the pydicom skill ranks in the top 100, with python-performance-optimization, python-design-patterns and async-python-patterns among the skills listed beside it. Its own focus is DICOM medical imaging, which those general Python skills do not cover.

More from davila7/claude-code-templates

All 398

Similar to Pydicom

More Python