Agent skill · Data & Analytics

pathml

Use PathML for local, research-only computational pathology workflows: load and tile slides, build preprocessing and QC pipelines, manage h5path data, quantify multiplex images, construct spatial graphs, and plan bounded model inference.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill pathml --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 13
SKILL.md size: 10 KB
Bundled scripts: yes
Version: 1.1
Allowed tools: ReadWriteEditBashGlob
Requires: PathML 3.0.5 is the latest PyPI release and targets Python 3.10-3.12; installation needs uv plus platform libraries for…
Path: skills/pathml/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# PathML ## Scope and safety boundary Use PathML for **local computational pathology research**. It is beta research software, not a validated medical device, diagnostic system, clinical decision support tool, or substitute for a pathologist. Do not use outputs to diagnose, grade, stage, or treat a patient. Pathology files may contain faces, labels, accession numbers, patient identifiers, DICOM tags, filenames, or linked clinical data. Before processing: 1. Confirm authorization, consent/waiver, data-use terms, and institutional policy. 2. De-identify pixels and metadata; keep the re-identification key outside the analysis workspace. 3. Use pseudonymous `patient_id`, `slide_id`, and `specimen_id` values. Do not put direct identifiers in filenames, logs, `.h5path` labels, model cards, or reports. 4. Keep inputs, intermediates, and outputs on approved local encrypted storage. 5. Split by patient (then slide) before tiling or fitting any preprocessing step. ## Version baseline, verified 2026-07-23 - **Installable stable release:** PyPI `pathml==3.0.5`, published 2026-03-24. - The v3.0.5 release notes state Python **3.10-3.12** and sunset 3.9. PyPI does not declare `Requires-Python` an

What's inside
Steps it walks through
  1. Scope and safety boundary
  2. Version baseline, verified 2026-07-23
  3. Reproducible installation
  4. Stable minimal workflow
  5. Research workflow
  6. No-network default and explicit consent gate
  7. Model-code security
  8. Bundled local CLIs
  9. Detailed references
  10. Primary sources
Ships with 12 files
  • references/data_management.md
  • references/graphs.md
  • references/image_loading.md
  • references/machine_learning.md
  • references/multiparametric.md
  • references/preprocessing.md
  • scripts/_common.py
  • scripts/image_qc.py
  • scripts/plan_inference.py
  • scripts/plan_pipeline.py
  • scripts/slide_manifest.py
  • scripts/validate_spatial_schema.py
Commands it runs
uv venv --python 3.11
source .venv/bin/activate
uv pip install "pathml==3.0.5"
python -c "import importlib.metadata as m; print(m.version('pathml'))"
Debian/Ubuntu
sudo apt-get install openslide-tools gcc g++ libblas-dev liblapack-dev openjdk-17-jdk
macOS
brew install openslide openjdk@17
Windows OpenSlide option documented upstream
vcpkg install openslide
More from scientific-agent-skills
All skills →
About this skill
What does the pathml skill do?

Use PathML for local, research-only computational pathology workflows: load and tile slides, build preprocessing and QC pipelines, manage h5path data, quantify multiplex images, construct spatial graphs, and plan bounded model inference.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill pathml --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going