Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pathml

Skill by K-Dense-AI

Supports local computational pathology research with PathML, covering slide tiling, preprocessing, QC, .h5path storage and spatial analysis. It is for researchers working on H&E and multiplex whole-slide imaging.

  • Score 94
  • 58k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pathml

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pathml ~/.claude/skills/pathml

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pathml in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides local computational pathology research with PathML 3.0.8. It covers loading whole-slide images, tiling, preprocessing and quality control, storing results in .h5path files, multiplex quantification, spatial graphs, and bounded model inference. It names workflows for H&E, CODEX, Vectra, Mesmer, HoVer-Net and HACTNet.

The skill sets a safety boundary first. It states that PathML is beta research software, not a validated medical device, and that outputs must not be used to diagnose or treat patients. It asks users to de-identify data, split by patient before tiling, and avoid network downloads unless they opt in. It also bundles standard-library Python CLIs for manifest validation, pipeline planning and schema checks.

Written from the project's SKILL.md and checked against it.

What it can do

  • Slide loading and tilingOpens whole-slide images with OpenSlide or Bio-Formats and generates tiles at a chosen pyramid level.
  • Preprocessing and QCRuns tissue detection and blur transforms through a PathML pipeline, with masks and QC checks on tiles.
  • h5path storageWrites processed slides and masks to .h5path files, with notes on float16 casting of images.
  • Multiplex quantificationCovers CODEX, Vectra and Mesmer workflows, including intensity handling during tile extraction.
  • Spatial graphsBuilds and validates instance maps, node features, KNN and RAG graphs, and cell-to-tissue assignments.
  • Bounded model inferenceRuns local ONNX model inference in batches and checks model provenance before loading checkpoints.
  • Manifest validation CLIValidates slide manifests locally, rejecting URLs and symlinks, and inspects allowlisted metadata.
  • Pipeline planning CLIEstimates tile count, RAM, output size and pipeline stages for a slide before a full run.

What you need

  • Python 3.10-3.12
  • Native OpenSlide
  • JDK with javac for python-javabridge
  • Bio-Formats
  • Network access for installation

Try asking

  • Load a pseudonymous H&E slide and tile it at 512 pixels.
  • Validate my slide manifest and reject URLs or symlinks.
  • Plan the tile count and RAM for a 100000 by 80000 slide.

Good to know

  • Beta research software, not a validated medical device or clinical tool.
  • PathML is GPL-2.0 with upstream commercial licensing options.
  • Remote Mesmer and HoVer-Net classes download models over the network.
  • Pickle-based .pt files execute code and must come only from trusted sources.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/pathml/SKILL.md, skills/pathml/scripts/_common.py, skills/pathml/scripts/image_qc.py, skills/pathml/scripts/plan_inference.py, skills/pathml/scripts/plan_pipeline.py, skills/pathml/scripts/slide_manifest.py, skills/pathml/scripts/validate_spatial_schema.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Edit Bash Glob

  • SKILL.md13 KB
  • references/data_management.md13 KB
  • references/graphs.md11 KB
  • references/image_loading.md11 KB
  • references/machine_learning.md14 KB
Show all 13 files
  • references/multiparametric.md14 KB
  • references/preprocessing.md12 KB
  • scripts/_common.py12 KB
  • scripts/image_qc.py11 KB
  • scripts/plan_inference.py9 KB
  • scripts/plan_pipeline.py11 KB
  • scripts/slide_manifest.py14 KB
  • scripts/validate_spatial_schema.py16 KB

Alternatives to pathml

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

pathml: common questions

Is PathML safe for patient diagnosis?

The source says PathML is beta research software and not a validated medical device or diagnostic system. Outputs must not be used to diagnose, grade, stage or treat a patient.

Which slide formats and backends does it use?

OpenSlide handles common brightfield whole-slide formats. Java Bio-Formats provides a broader multidimensional format backend.

Does the skill send images to a remote service?

The source says the stable SegmentMIFRemote class downloads an ONNX model and runs inference locally without uploading pixels. Network metadata is still disclosed, so downloads require explicit user opt-in.

How do I install pathml?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pathml free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pathml safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pathml?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

pathml Install

Add to stack

Loading.