digital-pathology

Generates deterministic code for tile extraction and image analysis workflows using established libraries.

13|5|Updated May 4, 2026
One-click install
npx skills add https://github.com/awslabs/hcls-agent-skills --skill digital-pathology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: digital-pathology
Source: https://github.com/awslabs/hcls-agent-skills/tree/main/skills/digital-pathology
Command: npx skills add https://github.com/awslabs/hcls-agent-skills --skill digital-pathology

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tiatoolbox, timm, torch, openslide-python, huggingface_hub, s3fs.

What problem does it solve?

This skill solves the complexity of managing whole-slide image (WSI) analysis pipelines, ensuring researchers can perform tissue masking, tile extraction, and foundation model embedding without manual infrastructure setup.

Core Features & Use Cases

  • Standardized WSI Processing: Automates the tissue-to-tiles-to-features workflow using TIAToolbox primitives.
  • Foundation Model Integration: Provides optimized paths for H-optimus-0, UNI, and Prov-GigaPath embeddings.
  • Use Case: A researcher needs to extract 1536-dimensional features from a cohort of SVS slides for a CAMELYON17 tumor classification study; this skill provides the exact Python code to handle the pyramidal reading, tissue masking, and feature extraction.

Quick Start

Use the digital-pathology skill to extract H-optimus-0 features from the provided slide file at 0.5 mpp resolution.

Frequently Asked Questions about digital-pathology

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract features from whole-slide images for tumor classification?

Whole-slide image feature extraction is automated by generating deterministic code for tissue masking, tile extraction, and foundation model embedding to produce feature vectors for tumor classification. It uses TIAToolbox and PyTorch to handle pyramidal reading and generate 1536-dimensional embeddings.

Can I generate foundation model embeddings like H-optimus-0 for SVS slides using PyTorch?

Yes, you can generate H-optimus-0 embeddings for SVS slides using TIAToolbox and PyTorch. The workflow handles tissue masking and tile extraction at specific resolutions like 0.5 mpp to output optimized high-dimensional feature vectors for downstream analysis.

Do I need OpenSlide and TIAToolbox to process pyramidal whole-slide images?

Yes, OpenSlide and TIAToolbox are required dependencies to ensure accurate pyramidal image handling during whole-slide image analysis. They work alongside PyTorch to correctly read multi-resolution slide data before tile extraction and feature generation.

What's the best way to deploy histopathology pipelines in regulated SageMaker environments?

Deploying histopathology pipelines in regulated SageMaker environments is supported by generating deterministic code for tissue-to-tiles-to-features workflows. This ensures reproducible whole-slide image analysis suitable for regulated validation using standard Python dependencies.

Does this approach support CAMELYON cohort classification and stain normalization workflows?

Yes, CAMELYON cohort classification and stain normalization are explicitly supported pathology workflows. The process generates the exact code needed to extract features from slide cohorts for tumor classification studies while standardizing tissue appearance.

Why does whole-slide image analysis fail without proper tissue masking and tile extraction?

Whole-slide image analysis fails without tissue masking and tile extraction because pyramidal slides contain massive empty background areas. Automating this tissue-to-tiles-to-features workflow ensures only relevant tissue regions are processed for accurate foundation model embedding generation.