Skip to content

Python library for reading, writing, and preflighting local DICOM files and pixel data, including de-identification review.

CCM score
74 of 100
skills.sh installs
2.2K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers metadata inspection, file writing, transfer syntax handling, compression plugins, frame-level pixel decoding, and private elements
  • Includes helper scripts such as extract_metadata.py, transfer_syntax_inspector.py, pixel_frame_planner.py, anonymize_dicom.py, and uid_mapping_validator.py
  • Enforces a metadata-only default, avoids printing full datasets, and requires explicit size limits before parsing untrusted files
  • Designed for authorized local DICOM work where PHI handling and expert-verified de-identification are required

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill pydicom -y

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

Files

pydicom

Use pydicom for DICOM dataset I/O and pixel processing. Version 3.0.2 is the current stable release reviewed here. It fixes CVE-2026-32711, a crafted DICOMDIR path-traversal issue. pydicom 3.0.2 declares Python >=3.10; its bundled DICOM dictionary is 2024c; the current DICOM Standard reviewed here is 2026d. No PACS, DIMSE, DICOMweb endpoint, or authenticated service is exercised by this local-file skill.

Mandatory safety boundary

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the pydicom skill do?

The pydicom skill reads, inspects, writes, and transforms local DICOM datasets and pixel data, including metadata, transfer syntaxes, compression plugins, and frames. It also preflights datasets and supports bounded de-identification review on authorized local files.

How do I install the pydicom skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill pydicom -y in your project. The install lets your agent apply pydicom guidance to DICOM work on local files.

Who should use the pydicom skill?

The pydicom skill suits developers working with DICOM medical imaging files who have authorized access to local data. Its guidance covers safe handling of protected health information, so metadata and pixels are not printed or logged by default.

What does the pydicom skill need to run?

The pydicom skill needs Python 3.10 or newer for pydicom 3.0.2 alone, and Python 3.12 or newer for the tested pixel stack with NumPy and Pillow. Optional pixel plugins such as pylibjpeg or pyjpegls are only needed for specific compressed transfer syntaxes.

Where does the pydicom skill stand in its category?

The pydicom skill is listed under Data Science & Analytics on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run, and add-analytics-instrumentation. What sets it apart is its focus on DICOM dataset I/O and pixel processing for local medical imaging files.

More from k-dense-ai/scientific-agent-skills

All 132