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.
npx skills add K-Dense-AI/scientific-agent-skills --skill pydicom --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.
# 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 sec
- Mandatory safety boundary
- Installation
- Choose the workflow
- Read datasets safely
- Dataset, DataElement, and sequences
- UIDs and transfer syntax
- Pixel data and frames
- Compression, decompression, and encapsulation
- DICOM JSON and private elements
- De-identification workflow
- Helper CLIs
- pydicom 3.0 migration notes
- Sources (verified 2026-07-23)
uv pip install "pydicom==3.0.2" uv pip install "pydicom==3.0.2" "numpy==2.5.1" "Pillow==12.3.0" uv pip install "numpy==2.5.1" "pylibjpeg==2.1.0" \ JPEG-LS encoder/decoder uv pip install "numpy==2.5.1" "pyjpegls==1.5.1" Alternative decoder with platform-specific wheels uv pip install "python-gdcm==3.2.6" Redacted aggregate metadata python scripts/extract_metadata.py authorized/ --recursive Metadata-only technical inventory
What does the pydicom skill do?
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.
How do I install it?
Run `npx skills add K-Dense-AI/scientific-agent-skills --skill pydicom --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 K-Dense-AI/scientific-agent-skills, a repository with 32,619 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.
