computational-pathology

computational-pathology is a skill for Claude Code, Codex from zamushwani/biomedical-ai-skills. It costs 0 tokens per session (9,929 once invoked), scanned A, original, MIT.

A toolkit for analysing whole-slide images, which are very large digital scans of pathology slides, and building cancer models from them. It covers image preparation, tissue and cell analysis, and combining slide data with molecular data.

In plain words
What is it for?
Use it to read pathology slide files, find tissue, extract tiles, normalize stains, separate H&E colours, create tile features, classify cells, study their spatial arrangement, and predict outcomes from whole slides.
Why use it?
It helps avoid errors caused by slide formats, coordinates, resolution, staining differences, and inconsistent image regions. It also provides ways to turn image tiles into slide-level predictions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read pathology slide files, find tissue, extract tiles, normalize stains, separate H&E colours, create tile features, classify cells, study their spatial arrangement, and predict outcomes from whole slides.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zamushwani/biomedical-ai-skills/computational-pathology
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zamushwani/biomedical-ai-skills --skill computational-pathology
Clone the repo
git clone --depth 1 https://github.com/zamushwani/biomedical-ai-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for computational-pathology

README.md
[![agentmods](https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/computational-pathology/github.svg)](https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/computational-pathology)
Your own site
<a href="https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/computational-pathology"><img src="https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/computational-pathology/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for computational-pathology

Your own site · 80×15
<a href="https://agentmods.dev/skills/zamushwani/biomedical-ai-skills/computational-pathology"><img src="https://agentmods.dev/badge/skills/zamushwani/biomedical-ai-skills/computational-pathology.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,929 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.09929
Opus 5.5 $0.00000 $0.03972
Sonnet 5.5 $0.00000 $0.01986
Haiku 4.5 $0.00000 $0.00993

Measured 2mo ago against content hash 5bfb5efd5c89, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

computational-pathology scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (tests/run_all.py, tests/validate_deconvolution.py, tests/validate_openslide.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/computational-pathology/SKILL.md · 849 lines

How it starts

The opening of the file, as written. The whole thing — 849 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Computational Pathology

Whole-slide image processing and slide-level modelling for cancer histopathology. Covers reading vendor formats with OpenSlide, the coordinate and resolution semantics that cause most WSI bugs, tissue detection, tile extraction, stain normalization, H&E colour deconvolution, pathology foundation models as tile encoders, multiple instance learning for slide-level prediction, cell segmentation and classification, spatial statistics on cell positions, and integration with molecular data.

When to Use This Skill

Activate when the user requests:

  • Reading .svs, .ndpi, .mrxs, .scn, or other whole-slide formats
  • OpenSlide, TiaToolbox, histolab, or slideio pipelines
  • Tissue detection or background removal on a slide
  • Tile or patch extraction for downstream modelling
  • Stain normalization across slides or scanners
  • H&E colour deconvolution, or separating hematoxylin from eosin
  • Working at a target magnification or microns-per-pixel
  • Tile embeddings from UNI, CONCH, Virchow, Prov-GigaPath, H-optimus or Phikon
  • Multiple instance learning with CLAM, DSMIL, TransMIL or attention pooling
  • Slide-level prediction from tile features
  • Splitting a pathology cohort without leakage
  • Cell or nucleus segmentation (StarDist, HoVer-Net, Cellpose, InstanSeg)
  • Tumour region or tertiary lymphoid structure detection
  • Spatial statistics on segmented cell positions
  • Correlating morphology with matched expression or mutation data

Inputs

Data Type Format Source
Whole-slide image .svs, .ndpi, .mrxs, .tiff, .scn GDC (TCGA), CAMELYON, PANDA
Slide metadata OpenSlide properties embedded in the file
Annotations GeoJSON, XML, .qpdata QuPath, ASAP, pathologist review
Reference tile RGB image a slide chosen as the stain target

Environment

Versions verified 2026-08.

pip install openslide-python openslide-bin   # 1.4.6 and 4.0.1.2
openslide-python is a BINDING, not the library. Its only dependency is
Pillow, so `pip install openslide-python` alone gives you an import that
fails at load time with a missing-library error.

openslide-bin ships the compiled OpenSlide C library (4.0.1) as a wheel,
which is why the upstream README tells you to install both. Before it
existed you needed a system package (apt/brew/conda). If you inherit a
pipeline that documents `brew install openslide`, that still works; do not
mix the two in one environment.

Read the full file on GitHub · 849 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 849 lines · 0 tokens per session scan A 5bfb5efd5c89

Subscribe to this mod's changes

computational-pathology is a skill published in the GitHub repository zamushwani/biomedical-ai-skills (1 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 9,929 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

computational-pathology compared with skills from other repositories

computational-pathology next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
computational-pathologyzamushwani/biomedical-ai-skillsSkill11mo agoMITA0Claude Code, Codex
cerna-analysisaipoch/medical-research-skillsSkill2.0k1mo agoMITA68Claude Code, Codex
cibersort-immune-infiltration-analysisaipoch/medical-research-skillsSkill2.0k1mo agoMITA92Claude Code, Codex
gene-protein-expression-matrix-normalizationaipoch/medical-research-skillsSkill2.0k1mo agoMITA63Claude Code, Codex
genomic-intelligenceK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA151Claude Code, Codex
torch-geometricK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA71Claude Code, Codex
bidsK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA84Claude Code, Codex