Histolab Whole Slide Image Tiling
davila7/claude-code-templates
Processes digital pathology whole slide images with histolab: tissue detection, mask creation, tile extraction and dataset preparation for deep learning.
Medical image analysis with deep learning for research applications
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wentorai/research-plugins medical-imaging-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/domains/biomedical/medical-imaging-guide .claude/skills/medical-imaging-guide && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "medical-imaging-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guide into .claude/skills/medical-imaging-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "medical-imaging-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wentorai/research-plugins medical-imaging-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/domains/biomedical/medical-imaging-guide .agents/skills/medical-imaging-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "medical-imaging-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guide into .agents/skills/medical-imaging-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "medical-imaging-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wentorai/research-plugins medical-imaging-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/domains/biomedical/medical-imaging-guide .cursor/skills/medical-imaging-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "medical-imaging-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guide into .cursor/skills/medical-imaging-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "medical-imaging-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wentorai/research-plugins.git --path skills/domains/biomedical/medical-imaging-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wentorai/research-plugins medical-imaging-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/domains/biomedical/medical-imaging-guide .gemini/skills/medical-imaging-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "medical-imaging-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guide into .gemini/skills/medical-imaging-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "medical-imaging-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wentorai/research-plugins medical-imaging-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/domains/biomedical/medical-imaging-guide .github/skills/medical-imaging-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "medical-imaging-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guide into .github/skills/medical-imaging-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "medical-imaging-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wentorai/research-plugins medical-imaging-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/domains/biomedical/medical-imaging-guide .opencode/skills/medical-imaging-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "medical-imaging-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/domains/biomedical/medical-imaging-guide into .opencode/skills/medical-imaging-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "medical-imaging-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
medical-imaging-guideMedical image analysis with deep learning for research applications
Medical Imaging Guide is an agent skill from wentorai/research-plugins. Medical image analysis with deep learning for research applications
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Research & Science, covering Clinical and healthcare research and Deep learning. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.
Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Medical Imaging Guide loads about 2.7k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 146 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 146 words, ~2,655 tokens.
.claude/skills/medical-imaging-guide/SKILL.md (or your agent's skills folder).A skill for applying deep learning to medical image analysis in research settings. Covers common imaging modalities, preprocessing pipelines, architecture selection for classification and segmentation tasks, handling small datasets with transfer learning and data augmentation, evaluation metrics specific to medical imaging, and regulatory and ethical considerations for clinical translation.
Modality Overview:
X-ray / Radiography:
- 2D grayscale images
- Resolution: typically 2000x2000 to 4000x4000 pixels
- Format: DICOM (.dcm)
- Common tasks: pneumonia detection, fracture detection,
cardiomegaly screening
- Dataset examples: CheXpert, MIMIC-CXR, NIH ChestX-ray14
CT (Computed Tomography):
- 3D volumetric data (stack of 2D slices)
- Resolution: 512x512 per slice, 50-500+ slices
- Format: DICOM series, NIfTI (.nii.gz)
- Common tasks: lung nodule detection, organ segmentation,
COVID-19 screening
- Dataset examples: LUNA16, DeepLesion, TotalSegmentator
MRI (Magnetic Resonance Imaging):
- 3D volumetric, multiple sequences (T1, T2, FLAIR, DWI)
- Resolution: 256x256 to 512x512 per slice
- Format: DICOM, NIfTI
- Common tasks: brain tumor segmentation, cardiac analysis,
knee injury classification
- Dataset examples: BraTS, ACDC, fastMRI
Histopathology:
- Whole slide images (WSI), extremely large
- Resolution: 100,000x100,000+ pixels at highest magnification
- Format: SVS, TIFF, NDPI (vendor-specific)
- Common tasks: cancer grading, mitosis detection,
tissue classification
- Dataset examples: Camelyon16/17, TCGA, PANDA
Retinal Imaging (Fundoscopy / OCT):
- 2D color fundus or 3D OCT volumes
- Common tasks: diabetic retinopathy grading, glaucoma detection
- Dataset examples: EyePACS, MESSIDOR, REFUGEimport numpy as np
def preprocess_medical_image(image, modality="xray"):
"""
Standard preprocessing pipeline for medical images.
Steps vary by modality but typically include:
1. Intensity normalization
2. Resizing/resampling
3. Windowing (for CT)
4. Artifact removal
"""
if modality == "ct":
# CT windowing: map Hounsfield Units to display range
# Lung window: center=-600, width=1500
# Soft tissue: center=40, width=400
window_center = -600
window_width = 1500
lower = window_center - window_width // 2
upper = window_center + window_width // 2
image = np.clip(image, lower, upper)
image = (image - lower) / (upper - lower)
elif modality == "xray":
# Normalize to [0, 1] range
image = image.astype(np.float32)
image = (image - image.min()) / (image.max() - image.min() + 1e-8)
elif modality == "mri":
# Z-score normalization (per-volume)
# Exclude background (zeros) from statistics
mask = image > 0
if mask.any():
mean_val = image[mask].mean()
std_val = image[mask].std()
image = (image - mean_val) / (std_val + 1e-8)
return image
def resize_with_spacing(image, original_spacing, target_spacing):
"""
Resample 3D medical image to uniform voxel spacing.
Essential for CT/MRI where slice thickness varies.
Args:
image: 3D numpy array
original_spacing: (z, y, x) voxel sizes in mm
target_spacing: desired (z, y, x) voxel sizes in mm
"""
from scipy.ndimage import zoom
resize_factor = [
orig / target
for orig, target in zip(original_spacing, target_spacing)
]
resampled = zoom(image, resize_factor, order=1)
return resampledArchitecture recommendations by task:
IMAGE CLASSIFICATION (diagnosis, grading):
- ResNet-50/101: reliable baseline, well-understood
- EfficientNet-B4/B5: better accuracy-efficiency tradeoff
- Vision Transformer (ViT): strong with large datasets
- DenseNet-121: popular for chest X-ray (CheXNet heritage)
Transfer learning approach:
1. Start with ImageNet pretrained weights
2. Replace final classifier layer
3. Fine-tune with low learning rate (1e-4 to 1e-5)
4. Use gradual unfreezing (train head, then all layers)
IMAGE SEGMENTATION (organ/lesion delineation):
- U-Net: gold standard for medical segmentation
- nnU-Net: self-configuring U-Net (state-of-the-art framework)
- Attention U-Net: U-Net with attention gates
- TransUNet: hybrid CNN-Transformer architecture
- MONAI: framework with pre-built medical imaging models
For 3D volumes:
- 3D U-Net: full volumetric processing
- V-Net: 3D with dice loss
- 2.5D approach: adjacent slices as multi-channel input
OBJECT DETECTION (lesion localization):
- YOLO variants: fast inference, suitable for screening
- Faster R-CNN: higher accuracy, slower
- RetinaNet: handles class imbalance (focal loss)
- DETR: transformer-based, no anchor boxes neededdef get_medical_augmentation_pipeline():
"""
Medical image augmentation strategy.
Key differences from natural image augmentation:
- Preserve anatomical plausibility
- Avoid color jitter (intensity has diagnostic meaning)
- Use elastic deformations (mimic anatomical variability)
- Apply carefully (aggressive augmentation can hurt)
"""
import albumentations as A
transform = A.Compose([
# Spatial transforms (safe for medical images)
A.HorizontalFlip(p=0.5),
A.RandomRotate90(p=0.5),
A.ShiftScaleRotate(
shift_limit=0.1, scale_limit=0.1,
rotate_limit=15, p=0.5
),
A.ElasticTransform(
alpha=120, sigma=120 * 0.05,
p=0.3
),
# Intensity transforms (use cautiously)
A.RandomBrightnessContrast(
brightness_limit=0.1,
contrast_limit=0.1, p=0.3
),
A.GaussNoise(var_limit=(10, 50), p=0.2),
A.GaussianBlur(blur_limit=(3, 5), p=0.2),
])
return transformTransfer learning approaches for small medical datasets:
Strategy 1 - ImageNet pretraining (most common):
- Works surprisingly well despite domain gap
- Low-level features (edges, textures) transfer well
- Fine-tune all layers with small learning rate
- Typical improvement: 5-15% over training from scratch
Strategy 2 - Medical domain pretraining:
- Pretrain on large medical dataset, fine-tune on target
- RadImageNet: 1.35M radiological images
- Models Genesis: self-supervised pretraining on CT/X-ray
- Better than ImageNet for most medical tasks
Strategy 3 - Self-supervised pretraining:
- Contrastive learning (SimCLR, MoCo, DINO)
- Masked image modeling (MAE)
- No labels needed for pretraining phase
- Effective when labeled data is very scarce (< 100 images)
Strategy 4 - Few-shot learning:
- Prototypical networks, MAML
- Useful for rare diseases with < 20 examples
- Active research area, not yet production-readyClassification metrics:
- AUROC (Area Under ROC Curve): discrimination ability
- Primary metric for most medical imaging papers
- Report with 95% confidence interval (bootstrap)
- AUPRC (Area Under Precision-Recall Curve):
- Better than AUROC for imbalanced datasets
- Common in lesion detection tasks
- Sensitivity at fixed specificity:
- e.g., "Sensitivity of 92% at 95% specificity"
- Clinically meaningful operating point
- Specificity at fixed sensitivity:
- e.g., "Specificity of 88% at 90% sensitivity"
- Ensures acceptable miss rate
Segmentation metrics:
- Dice Similarity Coefficient (DSC):
- DSC = 2|A intersection B| / (|A| + |B|)
- Range: 0 (no overlap) to 1 (perfect overlap)
- Most commonly reported segmentation metric
- Hausdorff Distance (HD95):
- Maximum surface distance between predictions and ground truth
- Use 95th percentile (HD95) to reduce sensitivity to outliers
- Reports boundary accuracy in millimeters
- Average Surface Distance (ASD):
- Mean distance between predicted and true surfaces
Reporting standards:
- Always report confidence intervals (95% CI)
- Use 5-fold cross-validation or held-out test set
- Report per-class metrics for multi-class problems
- Compare against at least one established baseline
- Report results on external validation set when possibleResponsible AI in medical imaging research:
Data ethics:
- De-identify all DICOM headers (remove patient name, ID, dates)
- Use approved de-identification tools (e.g., DICOM Cleaner)
- Obtain IRB/ethics approval before starting
- Data use agreements for public datasets
Bias and fairness:
- Report demographic breakdown of training data
- Test performance across subgroups (age, sex, ethnicity)
- Acknowledge known demographic biases in training data
- CheXpert and MIMIC-CXR include demographic metadata for this
Reproducibility:
- Share code and trained model weights when possible
- Report all hyperparameters and random seeds
- Use standardized evaluation protocols
- Follow CLAIM (Checklist for AI in Medical Imaging) guidelines
Clinical translation (if applicable):
- FDA/CE marking required for clinical use (not research)
- Software as Medical Device (SaMD) classification
- Prospective clinical validation required
- Research prototypes are NOT approved for clinical decisionsMedical imaging AI is advancing rapidly, but responsible research requires careful attention to data quality, evaluation rigor, and clinical relevance. The gap between a model that performs well on a benchmark and one that adds genuine clinical value remains significant, and bridging it requires interdisciplinary collaboration between computer scientists, radiologists, pathologists, and clinical researchers.
© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/domains/biomedical/medical-imaging-guide of wentorai/research-plugins.
Open the folder on GitHubat commit bf44b3c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.
Medical Imaging Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Medical Imaging Guide this skillwentorai/research-plugins | 298 | 1 repos | ~2.7k | Automated safety check: Pass | MIT | |
| Histolab Whole Slide Image Tilingdavila7/claude-code-templates | 33k | 11 repos | ~5.1k | Automated safety check: Pass | MIT | |
| PyHealth Clinical ML Toolkitdavila7/claude-code-templates | 33k | 11 repos | ~4.4k | Automated safety check: Pass | MIT | |
| PyhealthBioTender-max/awesome-bio-agent-skills | 200 | — | ~1.8k | Automated safety check: Pass | Custom licence | |
| Model ScaffoldAperivue/medsci-skills | 333 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Matlab Process Imagesmatlab/matlab-agentic-toolkit | 1.1k | — | ~3.7k | Automated safety check: Pass | Custom licence |
davila7/claude-code-templates
Processes digital pathology whole slide images with histolab: tissue detection, mask creation, tile extraction and dataset preparation for deep learning.
davila7/claude-code-templates
Builds machine learning pipelines on clinical data with PyHealth: EHR datasets, prediction tasks, medical code mapping, healthcare models and evaluation.
BioTender-max/awesome-bio-agent-skills
Build clinical/healthcare deep-learning pipelines with PyHealth — loading EHR/signal/imaging datasets (MIMIC-III/IV, eICU, OMOP, SleepEDF, ChestXray14, EHRShot), defining tasks (mortality…
Aperivue/medsci-skills
A skill your agent uses when you need a runnable PyTorch training repo for a medical-imaging task (segmentation, classification, detection, synthesis, self-supervised, or fine-tuning a pretrained…
matlab/matlab-agentic-toolkit
Load this first for any task involving images, pictures, photos, scans, frames, volumes, or visual data — including reading, writing, filtering, enhancing, denoising, sharpening, deblurring…
google-deepmind/science-skills
Query ClinicalTrials.gov via APIv2. An agent skill from google-deepmind/science-skills.
wentorai/research-plugins
Craft structured research abstracts that maximize clarity and journal acceptance
wentorai/research-plugins
Manage academic citations across BibTeX, APA, MLA, and Chicago formats
wentorai/research-plugins
Summarize academic papers with structured extraction of key elements
wentorai/research-plugins
Evidence-based study techniques for academic learning and retention
wentorai/research-plugins
Adjust writing tone and register for academic audiences and venues
wentorai/research-plugins
Academic translation, post-editing, and Chinglish correction guide
Categories
Medical image analysis with deep learning for research applications. Medical Imaging Guide is an agent skill from wentorai/research-plugins.
Medical Imaging Guide fits situations like: tasks that involve Clinical and healthcare research; tasks that involve Deep learning.
Run `npx skills add wentorai/research-plugins --skill medical-imaging-guide -a claude-code`. Or copy the skill folder (skills/domains/biomedical/medical-imaging-guide in wentorai/research-plugins) into .claude/skills/medical-imaging-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wentorai/research-plugins --skill medical-imaging-guide -a codex`. Or copy the skill folder (skills/domains/biomedical/medical-imaging-guide in wentorai/research-plugins) into .agents/skills/medical-imaging-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill medical-imaging-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/medical-imaging-guide, .gemini/skills/medical-imaging-guide, .github/skills/medical-imaging-guide and .opencode/skills/medical-imaging-guide in your project.
SKILL.md names no scripts, command-line tools or credentials: Medical Imaging Guide is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Medical Imaging Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Medical Imaging Guide: Histolab Whole Slide Image Tiling (davila7/claude-code-templates, 33k stars), PyHealth Clinical ML Toolkit (davila7/claude-code-templates, 33k stars), Pyhealth (BioTender-max/awesome-bio-agent-skills, 200 stars) and Model Scaffold (Aperivue/medsci-skills, 333 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.
Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.