Agent skill · data analytics · k-dense-ai

pydicom

Use pydicom to read, inspect, write, transform, and safely preflight local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

Why this skill is useful

Provides specific commands and workflows for handling DICOM datasets that the AI wouldn't reliably generate on its own.

What it needs

Requires numpy, pillow, pydicom, pyjpegls, pylibjpeg, python-gdcm installed locally. About 8k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.

What this skill does

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, while the live DICOM Standard may be newer. Mandatory safety boundary Work only with local data that the user is authorized to access. DICOM metadata, file names, private elements, overlays, structured content, and pixels may contain protected health information (PHI). Never print Dataset, export full metadata/JSON, or log element values by default. Use a documented allowlist and aggregate output. pydicom is a general DICOM framework, not a diagnostic viewer. Pixel output, validation, conversion, and plugin availability are not diagnostic claims. De-identification is profile-, purpose-, recipient-, jurisdiction-, and threat-context-specific. It requires privacy/DICOM expert verification. Never claim that a tag-removal script is DICOM PS3.15, HIPAA, GDPR, or other compliance. Preserve originals and audit derived outputs. Treat deterministic pseudonymization keys and UID maps as re-identification secrets: use least privilege and encrypted/managed secret storage, never commit, sync, log, or share them with derivatives, and define backup, rotation, revocation, and destruction procedures. A leaked key invalidates the intended separation; rotation also changes deterministic mappings. Set explicit input-file, file-count, frame-count, decoded-byte, and output limits before parsing untrusted or unusually large datasets. Installation Create or activate an isolated environment, then install the exact reviewed release: Uncompressed pixel arrays and image rendering: Install only the transfer-syntax plugins required by the deployment: Plugin licenses and wheels differ by package/platform; review them before deployment. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills k-dense-ai/pydicom

View the source on GitHub

Browse the @skills marketplace