This document provides technical instructions for integrating the IDC Claude skill into your AI assistant environment.
- Download the latest release ZIP from the Releases page
- Open Claude Customize settings https://claude.ai/customize, select "Skills" and upload the
imaging-data-commonsskill ZIP file.
This gives Claude the complete skill with all the reference guides in one upload.
- Go to Settings > Capabilities in Claude.ai
- Under Code execution and file creation:
- Enable "Allow network egress" so that Claude can install
idc-indexpackage and its components - Under "Domain whitelist" select "Package managers only" so that
idc-indexpackage can be pulled from PyPI
- Enable "Allow network egress" so that Claude can install
- Under Additional allowed domains add the following:
*.github.comand*.githubusercontent.com: used to access source code and release artifacts*.googleapis.com: used to fetch IDC data from Google Storage buckets*.s3.amazonaws.com: used to fetch IDC data from Amazon S3 buckets
Claude Desktop works the same as the Claude.ai web interface. Follow the Claude.ai Web Interface instructions above to upload the ZIP and configure Settings > Capabilities.
For persistent access across conversations, create a Project in Claude Desktop, upload the ZIP to the project's knowledge base, and configure the allowed domains in the project's Capabilities settings.
Ask Claude: "What do you know about the Imaging Data Commons?"
Claude should respond with specific information about IDC, the idc-index package, and how to query and download cancer imaging data.
If you're using Claude Code (the CLI tool), you can install the skill for persistent access.
The simplest way to install this skill using the Skills.sh framework:
npx skills add ImagingDataCommons/idc-claude-skillThis command will automatically detect all AI agents on your system and offer to install the skill across all of them, making it available system-wide. Once installed, invoke with /imaging-data-commons or let your AI assistant auto-detect based on questions about IDC.
Link or copy the skill to your personal skills directory. This makes it available across all projects:
# Create a symlink (keeps skill updated with repo)
ln -s /path/to/idc-claude-skill ~/.claude/skills/imaging-data-commons
# Or copy the entire directory
cp -r /path/to/idc-claude-skill ~/.claude/skills/imaging-data-commonsOnce installed, invoke with /imaging-data-commons or let Claude auto-detect based on your questions about IDC.
For project-specific use, link to your project's .claude/skills/ directory:
mkdir -p /path/to/your-project/.claude/skills
ln -s /path/to/idc-claude-skill /path/to/your-project/.claude/skills/imaging-data-commonsThis makes the skill available only when working in that project.
For one-time use without permanent installation, ask Claude to read the skill file at the start of your session:
Please read /path/to/idc-claude-skill/SKILL.md and use it for IDC queries.
Ask Claude to load reference guides as needed for specific topics:
Please also read /path/to/idc-claude-skill/references/bigquery_guide.md # BigQuery advanced queries
Please also read /path/to/idc-claude-skill/references/dicomweb_guide.md # DICOMweb API access
Please also read /path/to/idc-claude-skill/references/index_tables_guide.md # Table schemas and join columns
Please also read /path/to/idc-claude-skill/references/sql_patterns.md # Quick-reference SQL patterns
Please also read /path/to/idc-claude-skill/references/use_cases.md # End-to-end workflow examples
Please also read /path/to/idc-claude-skill/references/digital_pathology_guide.md # Pathology (SM, ANN, SEG)
Please also read /path/to/idc-claude-skill/references/clinical_data_guide.md # Clinical/tabular data
Please also read /path/to/idc-claude-skill/references/cloud_storage_guide.md # Direct GCS/S3 access
Please also read /path/to/idc-claude-skill/references/cli_guide.md # idc-index CLI tools
Please also read /path/to/idc-claude-skill/references/parquet_access_guide.md # Direct Parquet queries
After installing, verify by asking Claude:
What skills do you have for medical imaging data?
Or invoke directly:
/imaging-data-commons
If you're using the Claude API directly, include the contents of SKILL.md in your system prompt. Include additional reference guides from references/ as needed for advanced features.
import anthropic
from pathlib import Path
# Read skill files
skill_content = Path('SKILL.md').read_text()
# Optionally include reference guides for advanced features:
# skill_content += "\n\n" + Path('references/bigquery_guide.md').read_text() # BigQuery queries
# skill_content += "\n\n" + Path('references/dicomweb_guide.md').read_text() # DICOMweb API
# skill_content += "\n\n" + Path('references/index_tables_guide.md').read_text() # Table schemas
# skill_content += "\n\n" + Path('references/digital_pathology_guide.md').read_text() # Pathology
# skill_content += "\n\n" + Path('references/clinical_data_guide.md').read_text() # Clinical data
# skill_content += "\n\n" + Path('references/cloud_storage_guide.md').read_text() # GCS/S3 access
client = anthropic.Anthropic(api_key="your-api-key")
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
system=skill_content, # Include skill as system context
messages=[
{"role": "user", "content": "Find CT scans of lung cancer in IDC"}
]
)User: "What collections in IDC have prostate MRI data?"
Claude: [Uses skill to query and list relevant collections]
User: "Download all CT scans from the NSCLC-Radiomics collection"
Claude: [Provides idc-index download command with proper parameters]
User: "Can I use TCGA-BRCA data for commercial purposes?"
Claude: [Checks license and explains usage restrictions]
- Claude Desktop: Can execute commands directly (e.g., installing
idc-indexwith pip) - Other AI Assistants: May only provide guidance without executing commands. Users will need to manually run installation commands like
pip install idc-index
- The skill provides guidance for accessing IDC data but does not directly download or store data
- Users need Python and internet access to download actual DICOM files
- Some operations (like BigQuery access) may require Google Cloud Platform authentication
- Claude Code: Verify the symlink exists at
~/.claude/skills/imaging-data-commonsand points to the correct directory - ZIP attachment (Claude.ai): Ensure the release ZIP is attached to your conversation before asking IDC-related questions
- File size: The ZIP file is large. If Claude seems unaware of IDC, the file may not have been fully loaded
- Verify skill is loaded: Ask Claude "What do you know about the Imaging Data Commons?" — it should give a detailed response
- Be specific: Use clear questions like "Find lung CT scans in IDC" rather than just "find scans"
- Report issues: If the skill fails to answer expected questions, open an issue
- Python environment: Ensure Python 3.10+ is installed and accessible (idc-index requires Python >= 3.10)
- Network access: Verify internet connectivity for pip installations
- Permissions: Some systems may require
pip install --user idc-indexinstead
- See the IDC BigQuery Guide or DICOMweb Guide for advanced troubleshooting
- Access to IDC BigQuery tables requires Google Cloud authentication setup
- IDC offers a public DICOMweb proxy (no auth required) and a Google Healthcare API endpoint (requires gcloud authentication for higher quotas)
- SKILL.md - Comprehensive skill documentation
- references/ - Reference guides (BigQuery, DICOMweb, SQL patterns, pathology, clinical data, cloud storage, CLI, Parquet)
- IDC Documentation
- idc-index Package
- IDC Portal
For questions about:
- The skill itself: Open a GitHub issue
- IDC data or platform: IDC Forum
- idc-index package: idc-index Issues
