Agent skill · Data & Analytics

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.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codeships scriptsMIT
Install
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.

Facts
Files in the skill folder: 13
SKILL.md size: 15 KB
Bundled scripts: yes
Version: 1.1
Requires: Python 3.10+ with pydicom 3.0.2; optional pinned NumPy, Pillow, and pixel plugins. Helper CLIs are local-only and…
Path: skills/pydicom/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Mandatory safety boundary
  2. Installation
  3. Choose the workflow
  4. Read datasets safely
  5. Dataset, DataElement, and sequences
  6. UIDs and transfer syntax
  7. Pixel data and frames
  8. Compression, decompression, and encapsulation
  9. DICOM JSON and private elements
  10. De-identification workflow
  11. Helper CLIs
  12. pydicom 3.0 migration notes
  13. Sources (verified 2026-07-23)
Ships with 12 files
  • references/common_tags.md
  • references/transfer_syntaxes.md
  • scripts/__init__.py
  • scripts/_common.py
  • scripts/anonymize_dicom.py
  • scripts/deidentification_audit.py
  • scripts/dicom_inventory.py
  • scripts/dicom_to_image.py
  • scripts/extract_metadata.py
  • scripts/pixel_frame_planner.py
  • scripts/transfer_syntax_inspector.py
  • scripts/uid_mapping_validator.py
Commands it runs
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
More from scientific-agent-skills
All skills →
About this skill
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.

Keep going