pydicom
Python library for working with DICOM (Digital Imaging and Communications in Medicine) files.
Skill by foryourhealth111-pixel
Chalk Labs
Need help deploying pydicom?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/foryourhealth111-pixel-pydicom
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/pydicom
What's inside
- Skill name
pydicom- Description
- Python library for working with DICOM (Digital Imaging and Communications in Medicine) files. Use this skill when reading, writing, or modifying medical imaging data in DICOM format, extracting pixel data from medical images (CT, MRI, X-ray, ultrasound), anonymizing DICOM files, working with DICOM metadata and tags, converting DICOM images to other formats, handling compressed DICOM data, or processing medical imaging datasets. Applies to tasks involving medical image analysis, PACS systems, radiology workflows, and healthcare imaging applications.
- License
- Apache-2.0
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 429 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- common_tags.md · references/
- transfer_syntaxes.md · references/
- anonymize_dicom.py · scripts/
- dicom_to_image.py · scripts/
- extract_metadata.py · scripts/
SKILL.md (first lines)
# 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.
## Routing Boundary
Use this skill for DICOM files, tags, pixel data, anonymization, CT/MRI/PET/X-ray medical scans, PACS-oriented processing, and pydicom-specific coding. Generic PNG/JPEG image processing, OCR, screenshots, PubMed/literature search, ClinicalTrials.gov lookup, LaTeX/PDF builds, bioinformatics, chemistry, or generic Data Commons tasks are outside this skill.
## 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:
```bash
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:
```bash
uv pip install pylibjpeg pylibjpeg-libjpeg pylibjpeg-openjpeg # JPEG compression
uv pip install python-gdcm # Alternative compression handler
```
## Core Workflows
### Reading DICOM Files
Read a DICOM file using `pydicom.dcmread()`:
```python
import pydicom
# Read a DICOM file
ds = pydicom.dcmread('path/to/file.dcm')
# Access metadata
print(f"Patient Name: {ds.PatientName}")
print(f"Study Date: {ds.StudyDate}")
print(f"Modality: {ds.Modality}")
# Display all elements
print(ds)
```
**Key points:**
- `dcmread()` returns a `Dataset` object
- Access data elements using attribute notation (e.g., `ds.PatientName`) or tag notation (e.g., `ds[0x0010, 0x0010]`)
- Use `ds.file_meta` to access file metadata like Transfer Syntax UID
- Handle missing attributes with `getattr(ds, 'AttributeName', default_value)` or `hasattr(ds, 'AttributeName')`
### Working with Pixel Data
Extract and manipulate image data from DICOM files:
```python
import pydicom
import numpy as np
import matplotlib.pyplot as plt
# Read DICOM file
ds = pydicom.dcmread('image.dcm')
# Get pixel array (requires numpy)
pixel_array = ds.pixel_array
# Image information
print(f"Shape: {pixel_array.shape}")
print(f"Data type: {pixel_array.dtype}")
print(f"Rows: {ds.Rows}, Columns: {ds.Columns}")
# Apply windowing for display (CT/MRI)
if hasattr(ds, 'WindowCenter') and hasattr(ds, 'WindowWidth'):
from pydicom.pixel_data_handlers.util import apply_voi_lut
windowed_image = apply_voi_lut(pixel_array, ds)
else:
windowed_image = pixel_array
# Display image
plt.imshow(windowed_image, cmap='gray')
plt.title(f"{ds.Modality} - {ds.StudyDescription}")
plt.axis('off')
plt.show()
```
**Working with color images:**
```python
# RGB images have shape (rows, columns, 3)
if ds.PhotometricInterpretation == 'RGB':
rgb_image = ds.pixel_array
plt.imshow(rgb_image)
elif ds.PhotometricInterpretation == 'YBR_FULL':
from pydicom.pixel_data_handlers.util import convert_color_space
rgb_image = convert_color_space(ds.pixel_array, 'YBR_FULL', 'RGB')
plt.imshow(rgb_image)
```
**Multi-frame images (videos/series):**
```python
# For multi-frame DICOM filesFrom foryourhealth111-pixel/Vibe-Skills, Apache-2.0.
More from foryourhealth111-pixel/Vibe-Skills
- 0.843score
prowler-docs
prowler-cloud
Prowler documentation style guide and writing standards.
SkillAFreshness: A★ 3.8KClaude Code - 0.744score
speckit-specify
github-spec-kit
Create or update feature specifications from natural language descriptions.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-tasks
github-spec-kit
Break down implementation plans into actionable task lists.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-plan
github-spec-kit
Generate technical implementation plans from feature specifications.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-taskstoissues
github-spec-kit
Convert tasks from tasks.md into GitHub issues.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-analyze
github-spec-kit
Perform cross-artifact consistency analysis across spec.md, plan.md, and tasks.md.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-clarify
github-spec-kit
Structured clarification workflow for underspecified requirements.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-checklist
github-spec-kit
Generate custom quality checklists for validating requirements completeness and clarity.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-constitution
github-spec-kit
Create or update project governing principles and development guidelines.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.741score
speckit-implement
github-spec-kit
Execute all tasks from the task breakdown to build the feature.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
astropy
foryourhealth111-pixel
Comprehensive Python library for astronomy and astrophysics.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
doc
foryourhealth111-pixel
Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus…
SkillAFreshness: A★ 3.8KClaude Code +9
Signals
- Stars
- 3,764
- Forks
- 341
- Open issues
- 36
- Last commit (this folder)
- Apr 30, 2026 (6 months ago)
- Last release
- Oct 18, 2026 (15 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from foryourhealth111-pixel
- 0.652score
bio-database-evidence
foryourhealth111-pixel
Unified biological database evidence owner.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
biopython
foryourhealth111-pixel
Primary retained Python toolkit for molecular biology sequence work.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
generating-test-reports
foryourhealth111-pixel
Generate structured test reports with pass/fail rollups, coverage summaries, and test artifacts.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
alpha-vantage
foryourhealth111-pixel
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the…
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
astropy
foryourhealth111-pixel
Comprehensive Python library for astronomy and astrophysics.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.652score
datacommons-client
foryourhealth111-pixel
Work with Data Commons, a platform providing programmatic access to public statistical data from global sources.
SkillAFreshness: A★ 3.8KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get pydicom running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
pydicom skill. Agent Mart. https://agentmart.dev/skills/foryourhealth111-pixel-pydicom (last updated 2026-10-24)