[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QFFEHZZ7BXFG3M5F0QX70M":3,"skill-same:01M6QFFEHZZ7BXFG3M5F0QX70M":130},{"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":23,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":14,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6QFFEHZZ7BXFG3M5F0QX70M","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.","Tashima-Tarsh\u002FDisha6.6","Tashima-Tarsh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F269906498?v=4","01M6PBH98X03XERH0HFT4PFB1P","NITISH KUMAR","01M6PBH9DA0M6KM3Z12P848F0K",0,"MIT","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究","SCENARIO","使用场景",[5,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"files","mask","formats","imaging","knn","quantification","diagnosis","free","computational","local","image","uv","edit","write","read","slides","release","run","rag","2026-11-10 10:12:30",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":48,"description":7,"allowed-tools":53,"compatibility":54},{"tags":49,"version":50,"category":51,"maintainer":52},"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","0da4485785ee599388900be50db1635489d53056",".agents\u002Fskills\u002Fkal-pathml","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6","https:\u002F\u002Fdisha6.6.thenitishkr.in\u002F","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh","www.thenitishkr","thenitishkr | AI • Cyber-security • Research\r\n","2026-11-08 03:33:25",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add Tashima-Tarsh\u002FDisha6.6 --skill pathml",{"tool":70,"command":71},"bunx","bunx skills add Tashima-Tarsh\u002FDisha6.6 --skill pathml",{"tool":73,"command":74},"pnpm","pnpm dlx skills add Tashima-Tarsh\u002FDisha6.6 --skill pathml","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002FSKILL.md",true,[78,84,88,92,96,100,104,110,114,118,122,126],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fdata_management.md","REFERENCE","参考文档",11488,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Freferences\u002Fdata_management.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fgraphs.md",10536,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Freferences\u002Fgraphs.md",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fimage_loading.md",9838,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Freferences\u002Fimage_loading.md",{"path":93,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fmachine_learning.md",12639,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Freferences\u002Fmachine_learning.md",{"path":97,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fmultiparametric.md",12130,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Freferences\u002Fmultiparametric.md",{"path":101,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fpreprocessing.md",11904,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Freferences\u002Fpreprocessing.md",{"path":105,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002F_common.py","SCRIPT","脚本",12105,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Fscripts\u002F_common.py",{"path":111,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Fimage_qc.py",11127,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Fscripts\u002Fimage_qc.py",{"path":115,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Fplan_inference.py",9691,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Fscripts\u002Fplan_inference.py",{"path":119,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fplan_pipeline.py",9054,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Fscripts\u002Fplan_pipeline.py",{"path":123,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fslide_manifest.py",14065,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Fscripts\u002Fslide_manifest.py",{"path":127,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fvalidate_spatial_schema.py",16044,"https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fkal-pathml\u002Fscripts\u002Fvalidate_spatial_schema.py",[131,160,184,211,235,259],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":140,"publishedAt":43},"01M6QRD07D4TGNDK6VJ4EHF8BV","youtube-full","Use when the user needs YouTube transcripts, video search, channel browsing, playlist extraction, or content monitoring. Trigger phrases: 'get the transcript for', 'search YouTube for', 'what are the latest videos on', 'list this playlist', 'monitor this channel', or any request involving a YouTube URL, video ID, or @handle. Do NOT use for downloading video or audio files, YouTube engagement data (likes, comments), or private\u002Fage-restricted videos.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fyoutube-full\u002FSKILL.md",[137],{"categoryNo":138,"categoryName":139,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",[141,142,143,144,145,146,147,148,149,150,24,151,152,153,154,155,156,157,158,159],"youtube full","youtube","full","transcript","search","monitoring","data","Video","Audio","list","do","get","age","trigger","URL","for","browsing","request","youtube transcripts",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":43},"01M6QRCJ3112VYPA97YG7KGMC2","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[167,168,169,170,145,171,172,173,174,175,176,177,37,178,179,180,181,182,183,156],"twitter","x twitter growth","growth","research","content","engineering","plan","web search","competitors","analyze","engine","strategy","use","platform","grow","posting","competitive",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":193,"publishedAt":43},"01M6QRBN3EHQNJY42RERP7A149","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, build, or author a new skill.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[190],{"categoryNo":191,"categoryName":192,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[194,37,195,196,197,198,199,200,179,201,202,55,203,204,205,206,207,208,209,210],"write a skill","github","create","https","productivity","matt pocock","direct","example","build","new skill","structure","new agent","resources","with","tree","progressive disclosure","author",{"skillNo":212,"name":213,"nameZh":6,"description":214,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":215,"categories":216,"keywords":217,"publishedAt":43},"01M6QRB6G8P33PNGAF9Y69EJ9T","wrap-up","Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says \"wrap up\", \"close this out\", \"what do I own now\", \"give me the summary\", \"recap the agent\", or when the orchestrator routes phase=wrap-up. primitives_inventory.py tables everything owned (agent, environment, session, memory, outcome, deployment); overview_page.py regenerates a self-contained .\u002Fmy-agent\u002Fagent-overview.html; upgrade_suggester.py ranks the next moves from recorded deferrals plus standing hardening steps. Companion to run-without-you; the last stop before phase=done.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[218,219,220,221,222,41,223,224,225,179,226,151,227,228,229,230,231,232,233,234],"wrap up","up","wrap","gemini","deployment","file","hardening","closeout","stop","upgrade","founder","close","companion","you","tables","directions","phase",{"skillNo":236,"name":237,"nameZh":6,"description":238,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":239,"categories":240,"keywords":242,"publishedAt":43},"01M6QRA5AYC1RBFZ39GTWGS3N8","workflow-builder","Design and write deterministic multi-agent workflow scripts (.js files in .claude\u002Fworkflows\u002F) for Claude Code's Workflow tool. Use when a user wants to build, create, author, scaffold, or run a custom Claude Code workflow, orchestrate sub-agents (fan-out, pipeline, loop, judge-panel), or automate a repeatable multi-step task across fresh-context agents.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow-builder\u002FSKILL.md",[241],{"categoryNo":191,"categoryName":192,"taxonomyType":21,"taxonomyTypeDesc":22},[243,244,245,246,247,196,41,248,249,250,251,252,37,253,24,254,255,256,257,258],"workflow","workflow builder","builder","design","workflows","code","orchestrate","pipeline","loop","multi-agent","context","across","fresh","scripts","judge","claude code workflow",{"skillNo":260,"name":261,"nameZh":6,"description":262,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":263,"categories":264,"keywords":265,"publishedAt":43},"01M6QR7QMCZESKQA0ERW1E657M","weekly-review","Use when someone wants to run a weekly review, close open loops, audit stalled projects and commitments, get their system back to trusted, restart a lapsed review habit, or says \"\u002Fcs:weekly-review\". Walks David Allen's three-phase loop — GET CLEAR, GET CURRENT, GET CREATIVE — with deterministic scripts that inventory open loops, gate the checklist with named gaps, and score commitment health 0-100.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[266,267,268,269,270,271,272,273,274,251,275,276,277,278,279,280,152,281,282,234],"review","weekly review","weekly","deterministic scripts","reflect","feeds","inventory","open","team","projects","project-management","scanner","conversation","back","project","sprint","cadence"]