tile-wsi

tile-wsi is a command for Claude Code from zamushwani/biomedical-ai-skills. It costs 0 tokens per session (420 once invoked), scanned A, original, MIT.

A command for cutting whole-slide images into smaller image tiles after locating the tissue. Whole-slide images are very large microscope scans, often stored as SVS, NDPI, or MRXS files.

In plain words
What is it for?
Use it to prepare pathology slides for machine-learning models, choose a target microns-per-pixel resolution, remove mostly empty tiles, and record slide and tissue details.
Why use it?
It keeps tile locations and physical image scale correct across scanners, avoiding patches from the wrong region or models that learn scanner differences instead of tissue patterns.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it to prepare pathology slides for machine-learning models, choose a target microns-per-pixel resolution, remove mostly empty tiles, and record slide and tissue details.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zamushwani/biomedical-ai-skills/tile-wsi
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.

Clone the repo
git clone --depth 1 https://github.com/zamushwani/biomedical-ai-skills

Made for: Claude Code.

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 tile-wsi

README.md
[![agentmods](https://agentmods.dev/badge/commands/zamushwani/biomedical-ai-skills/tile-wsi/github.svg)](https://agentmods.dev/commands/zamushwani/biomedical-ai-skills/tile-wsi)
Your own site
<a href="https://agentmods.dev/commands/zamushwani/biomedical-ai-skills/tile-wsi"><img src="https://agentmods.dev/badge/commands/zamushwani/biomedical-ai-skills/tile-wsi/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 tile-wsi

Your own site · 80×15
<a href="https://agentmods.dev/commands/zamushwani/biomedical-ai-skills/tile-wsi"><img src="https://agentmods.dev/badge/commands/zamushwani/biomedical-ai-skills/tile-wsi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 420 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.00420
Opus 5.5 $0.00000 $0.00168
Sonnet 5.5 $0.00000 $0.00084
Haiku 4.5 $0.00000 $0.00042

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

Security

Grade A, and why

tile-wsi 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.

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.

.claude/commands/tile-wsi.md · 24 lines

What it actually says

Tile the slide at $0 at a target resolution of $1 microns per pixel (default: 0.5).

Follow the computational-pathology skill. Two bugs cost the most time here:

  1. read_region(location, level, size) mixes coordinate frames. location is in the level 0 frame; size is in the target level frame. Scale the location by level_downsamples[level]. The failure is silent: correct shape, wrong region — and a level-0 prototype hides it entirely.
  2. Magnification is not resolution. "40x" maps to roughly 0.23–0.28 um/px depending on scanner, so tiles cut at "40x" from two scanners sit at different physical scales and the model learns the scanner. Work in mpp.

Also:

  1. level_downsamples are floats (4.000122, not 4). Pick levels with get_best_level_for_downsample, never ==.
  2. Composite RGBA onto white. .convert("RGB") composites onto black, turning unscanned area into dark tissue-coloured pixels.
  3. Detect tissue by saturation, not intensity — glass is bright and unsaturated, while pale adipose is real signal.
  4. Record the tissue-fraction threshold. ">50% tissue" and ">10% tissue" are different datasets.

Report: slide mpp and vendor, level chosen, tile count, tissue fraction threshold, and tile coordinates in the level 0 frame.

If $0 is empty, ask for the slide path.

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 · 24 lines · 0 tokens per session scan A e68c8980786f

Subscribe to this mod's changes

tile-wsi is a command 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 420 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

tile-wsi compared with commands from other repositories

tile-wsi next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tile-wsizamushwani/biomedical-ai-skillsCommand11mo agoMITA0Claude Code
readaipoch/medical-research-skillsCommand2.0k1mo agoMITA0Claude Code
feedaipoch/medical-research-skillsCommand2.0k1mo agoMITA0Claude Code
annotateHERRY423/CellTypePilotCommand62mo agoMITA16Claude Code
criticHERRY423/CellTypePilotCommand62mo agoMITA14Claude Code
ctp-inspectHERRY423/CellTypePilotCommand62mo agoMITA16Claude Code
faostat-country-profileberba-q/faostat-skillsCommand106mo agoMITA10Claude Code