Agent skill · Data & Analytics

imaging-data-commons

Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index. Use for accessing large-scale radiology (CT, MR, PET) and pathology datasets for AI training or research. No authentication required. Query by metadata, visualize in browser, check licenses.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codeMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill imaging-data-commons --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 12
SKILL.md size: 23 KB
Bundled scripts: none
Version: 1.4
Path: skills/imaging-data-commons/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.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Uses the idc-index package to query and download public cancer imaging data from the National Cancer Institute Imaging Data Commons (IDC). It supports querying by metadata, downloading DICOM files, and visualizing in a browser. It also includes steps to verify IDC data version and check licenses before use.

How it works

Core workflow:

  1. Query metadata via client.sql_query().
  2. Download DICOM files via client.download_from_selection().
  3. Visualize in browser via client.get_viewer_URL(seriesInstanceUID=...). The skill includes a critical check (reported, not installed) to compare the installed idc-index version against REQUIRED_VERSION (0.11.14) and suggests upgrading in a virtual environment if needed. It verifies IDC data version using IDCClient().get_idc_version() and prints the current version. It also demonstrates how to query and load index tables (e.g., index, clinical_index) and how to fetch clinical data tables. It guides installation steps pinned to idc-index==0.11.14 and warns against breaking system-packages. It describes how to access data via cloud storage and DICOMweb, and provides examples for verifying data version and data scale.

When to use it

  • When finding publicly available radiology (CT, MR, PET) or pathology (slide microscopy) images
  • When selecting image subsets by cancer type, modality, anatomical site, or other metadata
  • When downloading DICOM data from IDC
  • When checking data licenses before use in research or commercial applications
  • When visualizing medical images in a browser without local DICOM viewer software

What it can touch

The skill references the core API calls of the idc-index package:

  • IDCClient()
  • client.sql_query()
  • client.download_from_selection()
  • client.get_viewer_URL(seriesInstanceUID=...)
  • client.fetch_index("table_name") to load tables such as clinical_index (implied usage)

Caveats

  • IDC data licensing varies by dataset (e.g., CC-BY, CC-NC); data-specific licenses must be respected.
  • The skill emphasizes verification steps rather than automatic upgrades; upgrading idc-index should be approved by the user.
  • It requires a virtual environment for package installation and pins to tested versions to preserve reproducibility.
  • No authentication is required for IDC data access; licensing of data collections remains user-responsible.
From the SKILL.md

# Imaging Data Commons ## Overview Use the `idc-index` Python package to query and download public cancer imaging data from the National Cancer Institute Imaging Data Commons (IDC). No authentication required for data access. **Current IDC Data Version: v23** (always verify with `IDCClient().get_idc_version()`) **Primary tool:** `idc-index` ([GitHub](https://github.com/imagingdatacommons/idc-index)) **CRITICAL - Check package version before anything else (run this FIRST):** This block only *reports*. It never installs. If the version is too old, show the user the suggested command and wait for them to approve it — do not run an install on their behalf. ```python import idc_index REQUIRED_VERSION = "0.11.14" # Must match metadata.idc-index in this file installed = idc_index.__version__ def _parts(version): # Compare numerically: "0.9.0" < "0.11.14" is False as a string comparison. return tuple(int(p) if p.isdigit() else 0 for p in version.split(".")[:3]) if _parts(installed) < _parts(REQUIRED_VERSION): print(f"idc-index {installed} is older than the tested {REQUIRED_VERSION}.") print("Ask the user before installing. Suggested command, in a virtual environment:") print(f" uv pip inst

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Quick Navigation
  4. IDC Data Model
  5. Index Tables
  6. Available Tables
  7. Joining Tables
  8. Clinical Data Access
  9. Data Access Options
  10. Installation and Setup
  11. Core Capabilities
  12. Common Use Cases
  13. Best Practices
  14. Troubleshooting
Ships with 11 files
  • references/bigquery_guide.md
  • references/cli_guide.md
  • references/clinical_data_guide.md
  • references/cloud_storage_guide.md
  • references/core_capabilities.md
  • references/dicomweb_guide.md
  • references/digital_pathology_guide.md
  • references/index_tables_guide.md
  • references/parquet_access_guide.md
  • references/sql_patterns.md
  • references/use_cases.md
Commands it runs
uv pip install 'idc-index==0.11.14'
uv pip install pandas numpy pydicom
More from scientific-agent-skills
All skills →
About this skill
What does the imaging-data-commons skill do?

Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index. Use for accessing large-scale radiology (CT, MR, PET) and pathology datasets for AI training or research. No authentication required. Query by metadata, visualize in browser, check licenses.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill imaging-data-commons --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