Skip to content

Histolab: Python toolkit that loads whole slide images, detects tissue, and extracts tiles for pathology deep learning.

CCM score
69 of 100
skills.sh installs
217
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers slide loading, tissue masking, tile extraction with random, grid, and score-based strategies, and preprocessing filters
  • Includes reference guides for slide management, tissue masks, tile extraction, and filters, plus built-in sample datasets for prostate, ovarian, breast, heart, and kidney tissue
  • Supports SVS, TIFF, and NDPI formats, with locate_tiles() previews before extraction and a tissue_percent threshold (default 80%) for tile filtering
  • Designed for computational pathology workflows that prepare H&E or IHC slide datasets for training

Install

$ npx -y skills add davila7/claude-code-templates --skill histolab -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Histolab

Overview

Histolab is a Python library for processing whole slide images (WSI) in digital pathology. It automates tissue detection, extracts informative tiles from gigapixel images, and prepares datasets for deep learning pipelines. The library handles multiple WSI formats, implements sophisticated tissue segmentation, and provides flexible tile extraction strategies.

Installation

uv pip install histolab

Quick Start

Basic workflow for extracting tiles from a whole slide image:

from histolab.slide import Slide
from histolab.tiler import RandomTiler

# Load slide
slide = Slide("slide.svs", processed_path="output/")

# Configure tiler
tiler = RandomTiler(
    tile_size=(512, 512),
    n_tiles=100,
    level=0,
    seed=42
)

# Preview tile locations
tiler.locate_tiles(slide, n_tiles=20)

# Extract tiles
tiler.extract(slide)

Core Capabilities

1. Slide Management

Load, inspect, and work with whole slide images in various formats.

Details

Repository
github.com/davila7/claude-code-templates
Categories
Data Science & Analytics, Research & Academic
First seen
Jun 3, 2026

Questions

What does the histolab skill do?

The histolab skill gives Claude Code guidance for processing whole slide images in digital pathology, such as SVS, TIFF and NDPI files. It covers detecting tissue regions, segmenting tissue masks, and extracting tiles from gigapixel H&E or IHC slides for deep learning pipelines.

Who is the histolab skill for?

The histolab skill is for developers and researchers preparing histopathology datasets for computational pathology work. It fits tile-based analysis and histological image preprocessing workflows that start from large slide files.

How do I install the histolab skill?

Run npx -y skills add davila7/claude-code-templates --skill histolab -y in a project to install it. Once installed, the histolab skill lets Claude Code load the histolab Python library workflows for slide loading, tissue masking and tile extraction.

Where does the histolab skill sit in its category?

The histolab skill is listed in the Data Science & Analytics category on Claude Marketplaces. Its neighbors there include azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation, and histolab covers digital pathology imaging rather than general analytics.

More from davila7/claude-code-templates

All 398