[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74Z6JQPDZTR3B7APFQWCBF4":3,"skill-same:01M74Z6JQPDZTR3B7APFQWCBF4":107},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M74Z6JQPDZTR3B7APFQWCBF4","pathml",null,"Covers local, research-only computational pathology with PathML 3.0.5: loading and tiling whole-slide images (OpenSlide, Bio-Formats), preprocessing and QC pipelines run via SlideData.run(), .h5path data management, multiplex image quantification, spatial graph construction (KNN, RAG, HACT), and bounded local ONNX model inference planning. Use when loading or tiling slides, building tissue-mask or stain pipelines, managing .h5path files and patient-level splits, quantifying CODEX or Vectra multiplex images, or building cell and tissue graphs. Not for clinical diagnosis or patient care decisions.","KalarisLabs\u002Fresearch-agent-skills","KalarisLabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F300878568?v=4","01M74Y7MT23GXXC56VM6TVSXZY","Kalarislabs","01M74Y7MTQM9REXZX4SNXWX95C",132,"MIT","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: pathml\ndescription: 'Covers local, research-only computational pathology with PathML 3.0.5: loading and tiling whole-slide images (OpenSlide, Bio-Formats), preprocessing and QC pipelines run via SlideData.run(), .h5path data management, multiplex image quantification, spatial graph construction (KNN, RAG, HACT), and bounded local ONNX model inference planning. Use when loading or tiling slides, building tissue-mask or stain pipelines, managing .h5path files and patient-level splits, quantifying CODEX or Vectra multiplex images, or building cell and tissue graphs. Not for clinical diagnosis or patient care decisions.'\nlicense: MIT\ncompatibility: PathML 3.0.5 is the latest PyPI release and targets Python 3.10-3.12; installation needs uv plus platform libraries for OpenSlide, BLAS\u002FLAPACK, and Java\u002FBio-Formats. Bundled Python 3.10+ CLIs are local, bounded, dependency-free, and network-free.\nallowed-tools: Read Write Edit Bash Glob\nmetadata:\n  version: '1.2'\n  category: clinical-and-health\n  maintainer: Kalaris Labs\n  tags: computational pathology, whole slide images, digital pathology, medical imaging\n---\n\n# PathML\n\n## Scope and safety boundary\n\nUse PathML for **local computational pathology research**. It is beta research\nsoftware, not a validated medical device, diagnostic system, clinical decision\nsupport tool, or substitute for a pathologist. Do not use outputs to diagnose,\ngrade, stage, or treat a patient.\n\nPathology files may contain faces, labels, accession numbers, patient identifiers,\nDICOM tags, filenames, or linked clinical data. Before processing:\n\n1. Confirm authorization, consent\u002Fwaiver, data-use terms, and institutional policy.\n2. De-identify pixels and metadata; keep the re-identification key outside the\n   analysis workspace.\n3. Use pseudonymous `patient_id`, `slide_id`, and `specimen_id` values. Do not put\n   direct identifiers in filenames, logs, `.h5path` labels, model cards, or reports.\n4. Keep inputs, intermediates, and outputs on approved local encrypted storage.\n5. Split by patient (then slide) before tiling or fitting any preprocessing step.\n\n## Version baseline, verified 2026-07-23\n\n- **Installable stable release:** PyPI `pathml==3.0.5`, published 2026-03-24.\n- The v3.0.5 release notes state Python **3.10-3.12** and sunset 3.9.\n  PyPI does not declare `Requires-Python` and still has a stale 3.8 classifier, so\n  use the release statement and test the exact environment.\n- GitHub releases v3.0.6 (2026-04-14) and v3.0.7 (2026-07-09) exist, but PyPI has\n  no artifacts for them as of this review. v3.0.7 updates Torch\u002FTorchVision\u002F\n  torch-geometric and ONNX export code. Do not mix those source dependencies with\n  the 3.0.5 wheel.\n- ReadTheDocs `\u002Flatest` identifies itself as 3.0.5. Examples here were checked\n  against the v3.0.5 tag and PyPI wheel metadata, not unversioned snippets.\n- This skill is MIT-licensed. PathML itself is GPL-2.0 with upstream commercial\n  licensing options; review upstream terms before redistribution.\n\n## Reproducible installation\n\nUse Python 3.11 unless the project has tested another supported interpreter:\n\n```bash\nuv venv --python 3.11\nsource .venv\u002Fbin\u002Factivate\nuv pip install \"pathml==3.0.5\"\npython -c \"import importlib.metadata as m; print(m.version('pathml'))\"\n```\n\nPathML 3.0.5 declares no package extras: do **not** use `pathml[all]`. Its base\ndistribution pins a large scientific\u002FML stack, including Torch 2.8.0, ONNX 1.17.0,\nONNX Runtime 1.17.x, OpenSlide Python 1.3.1, python-bioformats 4.1.0, and\npython-javabridge 4.0.4.\n\nInstall native prerequisites before the uv command:\n\n```bash\n# Debian\u002FUbuntu\nsudo apt-get install openslide-tools gcc g++ libblas-dev liblapack-dev openjdk-17-jdk\n\n# macOS\nbrew install openslide openjdk@17\n\n# Windows OpenSlide option documented upstream\nvcpkg install openslide\n```\n\nJava\u002FBio-Formats is needed for the broad multidimensional format backend.\nOpenSlide handles common brightfield WSI formats more efficiently. CUDA is\noptional and must match the pinned PyTorch build; follow PyTorch's platform\nselector rather than guessing a CUDA wheel. See `references\u002Fimage_loading.md`.\n\n## Stable minimal workflow\n\nPathML 3.0.5 uses slide convenience classes and `SlideData.run()`. It does not\nprovide `SlideData.from_slide()`, and `Pipeline` does not have `run()`:\n\n```python\nfrom pathml.core import HESlide\nfrom pathml.preprocessing import BoxBlur, Pipeline, TissueDetectionHE\n\nslide = HESlide(\"data\u002Fpseudonymous_slide.svs\", backend=\"openslide\")\npipeline = Pipeline(\n    [\n        BoxBlur(kernel_size=5),\n        TissueDetectionHE(mask_name=\"tissue\", min_region_size=5000),\n    ]\n)\nslide.run(\n    pipeline,\n    distributed=False,\n    tile_size=512,\n    tile_stride=512,\n    level=0,\n    tile_pad=False,\n)\nslide.write(\"derived\u002Fpseudonymous_slide.h5path\")\n```\n\nStart with a bounded manual sample before a full run:\n\n```python\nfrom itertools import islice\n\nfor tile in islice(slide.generate_tiles(shape=512, stride=512, level=0), 8):\n    pipeline.apply(tile)\n    assert tile.masks[\"tissue\"].shape[:2] == tile.image.shape[:2]\n```\n\nTiles use `(i, j)` = `(row, column)` coordinates at the selected pyramid level.\nFor OpenSlide, PathML maps them to level-0 coordinates internally. Record the\nlevel and downsample; convert to `(x, y)` or micrometres explicitly downstream.\n\n## Research workflow\n\n1. **Inventory locally.** Validate the manifest, reject URLs\u002Fsymlinks, inspect only\n   allowlisted technical metadata, and remove identifiers.\n2. **Freeze splits.** Assign every patient and all their slides to one split before\n   generating overlapping tiles, graphs, normalization references, or features.\n3. **Plan bounds.** Estimate tile count, RAM, output size, and pipeline stages.\n4. **Pilot preprocessing.** Inspect tissue masks, whitespace\u002Fartifact labels,\n   stain behavior, edge padding, and empty-mask cases on representative training\n   slides. Do not tune from test slides.\n5. **Run and preserve coordinates.** Keep tile level, `(i, j)`, downsample, MPP,\n   mask names, QC decisions, and failed\u002Fskipped tiles.\n6. **Build spatial data deliberately.** Validate channel order, physical units,\n   instance labels, node-feature alignment, graph edges, and cell-to-tissue\n   assignments.\n7. **Infer in bounded batches.** Verify model provenance and checksum without\n   loading unknown pickle checkpoints. Keep predictions linked to slide\u002Ftile\n   coordinates and stitch overlaps with a documented rule.\n8. **Report provenance and limits.** Include package lock, source hashes, scanner,\n   stain, parameters, seeds, split manifest, model card, exclusions, and QC.\n\n## No-network default and explicit consent gate\n\nDo not instantiate download-capable classes or set dataset `download=True` unless\nthe user explicitly opts in after receiving the endpoint and disclosure:\n\n- `SegmentMIFRemote` downloads an ONNX file from\n  `https:\u002F\u002Fhuggingface.co\u002Fpathml\u002Ftest\u002Fresolve\u002Fmain\u002Fmesmer.onnx` at construction,\n  then runs inference locally. Stable source does **not** upload image pixels.\n  The request still discloses network metadata such as IP address and headers and\n  creates `temp.onnx`; there is no built-in checksum or offline flag.\n- Deprecated `SegmentMIF` imports local DeepCell Mesmer, but DeepCell model\n  initialization may need separately provisioned weights. It is not a PathML\n  extra and is not the preferred stable API.\n- `RemoteTestHoverNet` downloads a model from Hugging Face.\n- `PanNukeDataModule(download=True)` contacts Warwick; `DeepFocusDataModule`\n  contacts Zenodo. Both default to `download=False`.\n\nBefore any future hosted prediction call, state the exact destination, pixel\nchannels\u002Fregions, metadata, identifiers, retention, legal basis, and safeguards;\nobtain explicit consent; and never send PHI by default. Prefer reviewed,\nchecksummed local model artifacts and local inference.\n\n## Model-code security\n\n- PyTorch `model.eval()` means **evaluation mode** for modules; it is not Python's\n  dangerous built-in evaluator. Never use Python dynamic evaluation or execution.\n- Do not name local files `pathml.py`, `torch.py`, `onnx.py`, or after standard\n  libraries; shadow modules can silently change imports.\n- PathML's `EntityDataset` loads `.pt` objects with `weights_only=False`. Never\n  open an untrusted graph\u002Fcheckpoint. Treat pickle-based pipelines and `.pt` files\n  as executable code.\n- ONNX is safer than pickle but not inherently trusted. Verify source, SHA-256,\n  expected input\u002Foutput schema, file size, and runtime limits; use isolation for\n  third-party models.\n\n## Bundled local CLIs\n\nAll helpers reject URLs and symlinks, cap inputs\u002Fwork, use strict JSON, avoid\nnetwork access, and require no PathML import for `--help`:\n\n```bash\npython scripts\u002Fslide_manifest.py validate --manifest manifest.csv --root .\npython scripts\u002Fslide_manifest.py inspect --slide data\u002Fexample.svs --root .\npython scripts\u002Fplan_pipeline.py --width 100000 --height 80000 --tile-size 512 --stride 512\npython scripts\u002Fimage_qc.py synthetic --width 256 --height 256\npython scripts\u002Fvalidate_spatial_schema.py graph --input graph.json --root .\npython scripts\u002Fvalidate_spatial_schema.py multiplex --input cells.csv --root .\npython scripts\u002Fplan_inference.py --tile-count 4000 --batch-size 16 --height 256 --width 256\n```\n\nThe inference planner reads numbers or a bounded JSON model card only; it never\nimports a model framework or opens a checkpoint.\n\n## Detailed references\n\n- `references\u002Fimage_loading.md` — slide classes, backends, formats, levels,\n  coordinates, technical metadata, and privacy.\n- `references\u002Fpreprocessing.md` — stable transforms, masks\u002FQC, stain processing,\n  pipeline execution, and leakage prevention.\n- `references\u002Fdata_management.md` — `.h5path`, manifests, datasets, provenance,\n  splits, and safe downloads.\n- `references\u002Fmultiparametric.md` — multidimensional layout, CODEX\u002FVectra,\n  quantification, AnnData, DeepCell\u002FMesmer, and network disclosure.\n- `references\u002Fgraphs.md` — instance maps, feature alignment, KNN\u002FRAG\u002FHACT graphs,\n  spatial units, schemas, and validation.\n- `references\u002Fmachine_learning.md` — HoVer-Net\u002FHACTNet, local ONNX inference,\n  batching, checkpoint trust, evaluation, and model provenance.\n\n## Primary sources\n\nAll checked 2026-07-23:\n\n- PyPI metadata: https:\u002F\u002Fpypi.org\u002Fproject\u002Fpathml\u002F3.0.5\u002F\n- Stable source tag: https:\u002F\u002Fgithub.com\u002FDana-Farber-AIOS\u002Fpathml\u002Ftree\u002Fv3.0.5\n- Releases: https:\u002F\u002Fgithub.com\u002FDana-Farber-AIOS\u002Fpathml\u002Freleases\n- Stable documentation: https:\u002F\u002Fpathml.readthedocs.io\u002Fen\u002Fstable\u002F\n- Rosenthal et al. (2022), PathML toolkit:\n  https:\u002F\u002Fdoi.org\u002F10.1158\u002F1541-7786.MCR-21-0665\n- Omar et al. (2025), multiplex workflows:\n  https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.labinv.2025.104220\n\n## Agent operating procedure\n\n1. **Check the environment.** Confirm data access permissions, de-identification status and the governing regulations or protocols.\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Work on a de-identified sample or synthetic data first.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Check outputs against clinical guidelines and reporting standards; have a qualified human review clinical content.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| Data appears to contain identifiable patient information | Stop and ask the user before processing further. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Outputs are decision support for qualified professionals, not medical advice; never present them as diagnoses or orders.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `histolab`: Extracts tiles and preprocesses H&E whole slide images with the histolab Python library (OpenSlide), covering slide inspection, tissue mask…\n- `clinical-decision-support`: Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker\u002Fmodel, privacy, and…\n- `ray-data`: Scalable data processing for ML workloads.\n","# PathML\n\n## Scope and safety boundary\n\nUse PathML for **local computational pathology research**. It is beta research\nsoftware, not a validated medical device, diagnostic system, clinical decision\nsupport tool, or substitute for a pathologist. Do not use outputs to diagnose,\ngrade, stage, or treat a patient.\n\nPathology files may contain faces, labels, accession numbers, patient identifiers,\nDICOM tags, filenames, or linked clinical data. Before processing:\n\n1. Confirm authorization, consent\u002Fwaiver, data-use terms, and institutional policy.\n2. De-identify pixels and metadata; keep the re-identification key outside the\n   analysis workspace.\n3. Use pseudonymous `patient_id`, `slide_id`, and `specimen_id` values. Do not put\n   direct identifiers in filenames, logs, `.h5path` labels, model cards, or reports.\n4. Keep inputs, intermediates, and outputs on approved local encrypted storage.\n5. Split by patient (then slide) before tiling or fitting any preprocessing step.\n\n## Version baseline, verified 2026-07-23\n\n- **Installable stable release:** PyPI `pathml==3.0.5`, published 2026-03-24.\n- The v3.0.5 release notes state Python **3.10-3.12** and sunset 3.9.\n  PyPI does not declare `Requires-Python` and still has a stale 3.8 classifier, so\n  use the release statement and test the exact environment.\n- GitHub releases v3.0.6 (2026-04-14) and v3.0.7 (2026-07-09) exist, but PyPI has\n  no artifacts for them as of this review. v3.0.7 updates Torch\u002FTorchVision\u002F\n  torch-geometric and ONNX export code. Do not mix those source dependencies with\n  the 3.0.5 wheel.\n- ReadTheDocs `\u002Flatest` identifies itself as 3.0.5. Examples here were checked\n  against the v3.0.5 tag and PyPI wheel metadata, not unversioned snippets.\n- This skill is MIT-licensed. PathML itself is GPL-2.0 with upstream commercial\n  licensing options; review upstream terms before redistribution.\n\n## Reproducible installation\n\nUse Python 3.11 unless the project has tested another supported interpreter:\n\n```bash\nuv venv --python 3.11\nsource .venv\u002Fbin\u002Factivate\nuv pip install \"pathml==3.0.5\"\npython -c \"import importlib.metadata as m; print(m.version('pathml'))\"\n```\n\nPathML 3.0.5 declares no package extras: do **not** use `pathml[all]`. Its base\ndistribution pins a large scientific\u002FML stack, including Torch 2.8.0, ONNX 1.17.0,\nONNX Runtime 1.17.x, OpenSlide Python 1.3.1, python-bioformats 4.1.0, and\npython-javabridge 4.0.4.\n\nInstall native prerequisites before the uv command:\n\n```bash\n# Debian\u002FUbuntu\nsudo apt-get install openslide-tools gcc g++ libblas-dev liblapack-dev openjdk-17-jdk\n\n# macOS\nbrew install openslide openjdk@17\n\n# Windows OpenSlide option documented upstream\nvcpkg install openslide\n```\n\nJava\u002FBio-Formats is needed for the broad multidimensional format backend.\nOpenSlide handles common brightfield WSI formats more efficiently. CUDA is\noptional and must match the pinned PyTorch build; follow PyTorch's platform\nselector rather than guessing a CUDA wheel. See `references\u002Fimage_loading.md`.\n\n## Stable minimal workflow\n\nPathML 3.0.5 uses slide convenience classes and `SlideData.run()`. It does not\nprovide `SlideData.from_slide()`, and `Pipeline` does not have `run()`:\n\n```python\nfrom pathml.core import HESlide\nfrom pathml.preprocessing import BoxBlur, Pipeline, TissueDetectionHE\n\nslide = HESlide(\"data\u002Fpseudonymous_slide.svs\", backend=\"openslide\")\npipeline = Pipeline(\n    [\n        BoxBlur(kernel_size=5),\n        TissueDetectionHE(mask_name=\"tissue\", min_region_size=5000),\n    ]\n)\nslide.run(\n    pipeline,\n    distributed=False,\n    tile_size=512,\n    tile_stride=512,\n    level=0,\n    tile_pad=False,\n)\nslide.write(\"derived\u002Fpseudonymous_slide.h5path\")\n```\n\nStart with a bounded manual sample before a full run:\n\n```python\nfrom itertools import islice\n\nfor tile in islice(slide.generate_tiles(shape=512, stride=512, level=0), 8):\n    pipeline.apply(tile)\n    assert tile.masks[\"tissue\"].shape[:2] == tile.image.shape[:2]\n```\n\nTiles use `(i, j)` = `(row, column)` coordinates at the selected pyramid level.\nFor OpenSlide, PathML maps them to level-0 coordinates internally. Record the\nlevel and downsample; convert to `(x, y)` or micrometres explicitly downstream.\n\n## Research workflow\n\n1. **Inventory locally.** Validate the manifest, reject URLs\u002Fsymlinks, inspect only\n   allowlisted technical metadata, and remove identifiers.\n2. **Freeze splits.** Assign every patient and all their slides to one split before\n   generating overlapping tiles, graphs, normalization references, or features.\n3. **Plan bounds.** Estimate tile count, RAM, output size, and pipeline stages.\n4. **Pilot preprocessing.** Inspect tissue masks, whitespace\u002Fartifact labels,\n   stain behavior, edge padding, and empty-mask cases on representative training\n   slides. Do not tune from test slides.\n5. **Run and preserve coordinates.** Keep tile level, `(i, j)`, downsample, MPP,\n   mask names, QC decisions, and failed\u002Fskipped tiles.\n6. **Build spatial data deliberately.** Validate channel order, physical units,\n   instance labels, node-feature alignment, graph edges, and cell-to-tissue\n   assignments.\n7. **Infer in bounded batches.** Verify model provenance and checksum without\n   loading unknown pickle checkpoints. Keep predictions linked to slide\u002Ftile\n   coordinates and stitch overlaps with a documented rule.\n8. **Report provenance and limits.** Include package lock, source hashes, scanner,\n   stain, parameters, seeds, split manifest, model card, exclusions, and QC.\n\n## No-network default and explicit consent gate\n\nDo not instantiate download-capable classes or set dataset `download=True` unless\nthe user explicitly opts in after receiving the endpoint and disclosure:\n\n- `SegmentMIFRemote` downloads an ONNX file from\n  `https:\u002F\u002Fhuggingface.co\u002Fpathml\u002Ftest\u002Fresolve\u002Fmain\u002Fmesmer.onnx` at construction,\n  then runs inference locally. Stable source does **not** upload image pixels.\n  The request still discloses network metadata such as IP address and headers and\n  creates `temp.onnx`; there is no built-in checksum or offline flag.\n- Deprecated `SegmentMIF` imports local DeepCell Mesmer, but DeepCell model\n  initialization may need separately provisioned weights. It is not a PathML\n  extra and is not the preferred stable API.\n- `RemoteTestHoverNet` downloads a model from Hugging Face.\n- `PanNukeDataModule(download=True)` contacts Warwick; `DeepFocusDataModule`\n  contacts Zenodo. Both default to `download=False`.\n\nBefore any future hosted prediction call, state the exact destination, pixel\nchannels\u002Fregions, metadata, identifiers, retention, legal basis, and safeguards;\nobtain explicit consent; and never send PHI by default. Prefer reviewed,\nchecksummed local model artifacts and local inference.\n\n## Model-code security\n\n- PyTorch `model.eval()` means **evaluation mode** for modules; it is not Python's\n  dangerous built-in evaluator. Never use Python dynamic evaluation or execution.\n- Do not name local files `pathml.py`, `torch.py`, `onnx.py`, or after standard\n  libraries; shadow modules can silently change imports.\n- PathML's `EntityDataset` loads `.pt` objects with `weights_only=False`. Never\n  open an untrusted graph\u002Fcheckpoint. Treat pickle-based pipelines and `.pt` files\n  as executable code.\n- ONNX is safer than pickle but not inherently trusted. Verify source, SHA-256,\n  expected input\u002Foutput schema, file size, and runtime limits; use isolation for\n  third-party models.\n\n## Bundled local CLIs\n\nAll helpers reject URLs and symlinks, cap inputs\u002Fwork, use strict JSON, avoid\nnetwork access, and require no PathML import for `--help`:\n\n```bash\npython scripts\u002Fslide_manifest.py validate --manifest manifest.csv --root .\npython scripts\u002Fslide_manifest.py inspect --slide data\u002Fexample.svs --root .\npython scripts\u002Fplan_pipeline.py --width 100000 --height 80000 --tile-size 512 --stride 512\npython scripts\u002Fimage_qc.py synthetic --width 256 --height 256\npython scripts\u002Fvalidate_spatial_schema.py graph --input graph.json --root .\npython scripts\u002Fvalidate_spatial_schema.py multiplex --input cells.csv --root .\npython scripts\u002Fplan_inference.py --tile-count 4000 --batch-size 16 --height 256 --width 256\n```\n\nThe inference planner reads numbers or a bounded JSON model card only; it never\nimports a model framework or opens a checkpoint.\n\n## Detailed references\n\n- `references\u002Fimage_loading.md` — slide classes, backends, formats, levels,\n  coordinates, technical metadata, and privacy.\n- `references\u002Fpreprocessing.md` — stable transforms, masks\u002FQC, stain processing,\n  pipeline execution, and leakage prevention.\n- `references\u002Fdata_management.md` — `.h5path`, manifests, datasets, provenance,\n  splits, and safe downloads.\n- `references\u002Fmultiparametric.md` — multidimensional layout, CODEX\u002FVectra,\n  quantification, AnnData, DeepCell\u002FMesmer, and network disclosure.\n- `references\u002Fgraphs.md` — instance maps, feature alignment, KNN\u002FRAG\u002FHACT graphs,\n  spatial units, schemas, and validation.\n- `references\u002Fmachine_learning.md` — HoVer-Net\u002FHACTNet, local ONNX inference,\n  batching, checkpoint trust, evaluation, and model provenance.\n\n## Primary sources\n\nAll checked 2026-07-23:\n\n- PyPI metadata: https:\u002F\u002Fpypi.org\u002Fproject\u002Fpathml\u002F3.0.5\u002F\n- Stable source tag: https:\u002F\u002Fgithub.com\u002FDana-Farber-AIOS\u002Fpathml\u002Ftree\u002Fv3.0.5\n- Releases: https:\u002F\u002Fgithub.com\u002FDana-Farber-AIOS\u002Fpathml\u002Freleases\n- Stable documentation: https:\u002F\u002Fpathml.readthedocs.io\u002Fen\u002Fstable\u002F\n- Rosenthal et al. (2022), PathML toolkit:\n  https:\u002F\u002Fdoi.org\u002F10.1158\u002F1541-7786.MCR-21-0665\n- Omar et al. (2025), multiplex workflows:\n  https:\u002F\u002Fdoi.org\u002F10.1016\u002Fj.labinv.2025.104220\n\n## Agent operating procedure\n\n1. **Check the environment.** Confirm data access permissions, de-identification status and the governing regulations or protocols.\n2. **Pin down the inputs.** Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.\n3. **Run a small version first.** Work on a de-identified sample or synthetic data first.\n4. **Execute the full task** using the instructions and references above.\n5. **Validate the result.** Check outputs against clinical guidelines and reporting standards; have a qualified human review clinical content.\n6. **Report.** State what was run (versions, commands, parameters), what was checked, and what is still uncertain.\n\n| If this happens | Do this |\n|---|---|\n| Data appears to contain identifiable patient information | Stop and ask the user before processing further. |\n| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (`help()`, `--help`, official docs), adapt, and tell the user. Never invent an API. |\n| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |\n\n**Integrity rules**\n\n- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.\n- Outputs are decision support for qualified professionals, not medical advice; never present them as diagnoses or orders.\n- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.\n- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.\n\n## Related skills\n\n- `histolab`: Extracts tiles and preprocesses H&E whole slide images with the histolab Python library (OpenSlide), covering slide inspection, tissue mask…\n- `clinical-decision-support`: Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker\u002Fmodel, privacy, and…\n- `ray-data`: Scalable data processing for ML workloads.\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":29,"compatibility":30},{"tags":25,"version":26,"category":27,"maintainer":28},"computational pathology, whole slide images, digital pathology, medical imaging","1.2","clinical-and-health","Kalaris Labs","Read Write Edit Bash Glob","PathML 3.0.5 is the latest PyPI release and targets Python 3.10-3.12; installation needs uv plus platform libraries for OpenSlide, BLAS\u002FLAPACK, and Java\u002FBio-Formats. Bundled Python 3.10+ CLIs are local, bounded, dependency-free, and network-free.","main","29fe36d26127205057d5e0ed8425f6b0e9a8c13a","skills\u002Fpathml",16,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills","https:\u002F\u002Fdocs.kalarislabs.com\u002Fresearch-agent-skills","https:\u002F\u002Fgithub.com\u002FKalarisLabs","kalarislabs.com","Applied AI lab building the infrastructure for the agentic era","2026-11-14 17:49:08",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add KalarisLabs\u002Fresearch-agent-skills --skill pathml",{"tool":47,"command":48},"bunx","bunx skills add KalarisLabs\u002Fresearch-agent-skills --skill pathml",{"tool":50,"command":51},"pnpm","pnpm dlx skills add KalarisLabs\u002Fresearch-agent-skills --skill pathml","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002FSKILL.md",true,[55,61,65,69,73,77,81,87,91,95,99,103],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fdata_management.md","REFERENCE","参考文档",11488,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Freferences\u002Fdata_management.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fgraphs.md",10536,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Freferences\u002Fgraphs.md",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fimage_loading.md",9838,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Freferences\u002Fimage_loading.md",{"path":70,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fmachine_learning.md",12639,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Freferences\u002Fmachine_learning.md",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fmultiparametric.md",12130,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Freferences\u002Fmultiparametric.md",{"path":78,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fpreprocessing.md",11904,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Freferences\u002Fpreprocessing.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002F_common.py","SCRIPT","脚本",12263,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Fscripts\u002F_common.py",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fimage_qc.py",11292,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Fscripts\u002Fimage_qc.py",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fplan_inference.py",9817,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Fscripts\u002Fplan_inference.py",{"path":96,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fplan_pipeline.py",9167,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Fscripts\u002Fplan_pipeline.py",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fslide_manifest.py",14357,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Fscripts\u002Fslide_manifest.py",{"path":104,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fvalidate_spatial_schema.py",18064,"https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpathml\u002Fscripts\u002Fvalidate_spatial_schema.py",[108,115,122,129,136,143],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M74Z8MGT305R11SNY5G28QH5","plos","Prepare manuscripts for PLOS journals (PLOS ONE, PLOS Biology, PLOS Computational Biology, PLOS Genetics, PLOS Medicine, PLOS Pathogens, PLOS Neglected Tropical Diseases, PLOS Global Public Health and others), covering structure, abstract and author summary, Vancouver-style references, the mandatory data availability policy, ethics and financial disclosure statements, figure requirements (PACE), the PLOS LaTeX template, reporting guidelines and PLOS ONE's publication criteria. Use when targeting any PLOS journal or checking compliance with PLOS policies.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fplos\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M74Z8CCN9APXYHNQ95V1EBGT","pkpd-modeling","Pharmacokinetic and pharmacodynamic modelling and simulation - non-compartmental analysis, compartmental and population PK, PK\u002FPD and exposure-response, TMDD, PBPK orientation, bioequivalence, allometric scaling and first-in-human dose, drug interaction prediction, and Bayesian therapeutic drug monitoring. Use when analysing concentration-time data, deriving exposure metrics, fitting PK or PD models, or evaluating dosing regimens. Triggers include \"pharmacokinetics\", \"pharmacodynamics\", \"PK\u002FPD\", \"NCA\", \"non-compartmental\", \"AUC\", \"Cmax\", \"lambda z\", \"half-life\", \"clearance\", \"volume of distribution\", \"compartmental model\", \"population PK\", \"popPK\", \"NONMEM\", \"nlmixr2\", \"Pharmpy\", \"Monolix\", \"exposure-response\", \"Emax\", \"EC50\", \"indirect response\", \"effect compartment\", \"TMDD\", \"PBPK\", \"bioequivalence\", \"RSABE\", \"ABEL\", \"allometric scaling\", \"first-in-human\", \"MABEL\", \"drug-drug interaction\", \"DDI\", \"ICH M12\", \"concentration-QTc\", \"therapeutic drug monitoring\", \"MIPD\", and \"dosing regimen\".","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpkpd-modeling\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M74Z86YHJJ1FM3X87BHN76KZ","pinecone","Guides use of Pinecone, a managed serverless vector database, through its Python client and the LangChain and LlamaIndex integrations. Covers creating indexes, upserting and querying vectors, metadata filtering, namespaces, hybrid dense and sparse search, index management, and deleting vectors. Use when building a production RAG system on a hosted vector store, adding semantic search or recommendations without running infrastructure, isolating per-user or per-tenant data with namespaces, combining dense and sparse vectors in one query, or filtering results by metadata. Do not use for self-hosted or local stores (Chroma, Weaviate) or offline similarity search (FAISS).","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpinecone\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":19},"01M74Z80T6E89SAJ8MYDD0767Q","pi-agent","Build with and use Pi, the minimal terminal coding harness. Use for installing Pi, configuring providers\u002Fmodels\u002Fsettings\u002Fenvironment variables, creating Pi skills\u002Fextensions\u002Fpackages\u002Fthemes\u002Fprompt templates, embedding Pi through the SDK, integrating over RPC or JSON event streams, parsing sessions, running local models through the llama.cpp router, developing custom Pi providers and TUI components, or using ecosystem packages such as pi-subagents (delegation\u002Forchestration), pi-mcp-adapter (MCP servers), pi-interview (interactive forms), and pi-web-access (web search, fetching, video understanding).","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpi-agent\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":19},"01M74Z7WF1Y8Q3VFAQPPPRAFMV","phoenix-observability","Open-source AI observability platform for LLM tracing, evaluation, and monitoring. Use when debugging LLM applications with detailed traces, running evaluations on datasets, or monitoring production AI systems with real-time insights.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fphoenix-observability\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M74Z7HNEH1A2AVYR3G1X2QV6","peft-fine-tuning","Fine-tunes LLMs with Hugging Face PEFT, using LoRA, QLoRA, IA3, AdaLoRA, prefix tuning, and prompt tuning so that under 1% of parameters are trained. Covers rank, alpha, and target module selection, loading and merging adapters, multi-adapter serving, and integration with TRL SFTTrainer, Axolotl, and vLLM. Use when fine-tuning 7B-70B models on limited GPU memory, when running QLoRA on a single 24GB GPU, when choosing LoRA rank and alpha, when merging or swapping adapters on one base model, or when debugging CUDA OOM or an adapter that does not apply. Not for full fine-tuning of small models under 1B parameters or cases needing all weights updated.","https:\u002F\u002Fgithub.com\u002FKalarisLabs\u002Fresearch-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpeft-fine-tuning\u002FSKILL.md",[],[]]