Skip to content
Development
Skill

/domain-medical-imaging

Use for medical-image AI: tumor/cancer detection & classification, brain tumor MRI, mammography (benign vs malignant), chest X-ray, CT, histopathology, retinal/fundus, ultrasound, dermoscopy. Encodes hard-won rigor: patient-level splits (no leakage), medical preprocessing

From plugin
mlcraft
823 skills1 agent1 command

Claude Code

$ npx -y skills add mxslr/mlcraft --skill domain-medical-imaging --agent claude-code

SKILL.md

domain-medical-imaging.SKILL.md
name: domain-medical-imaging
description: "Use for medical-image AI: tumor/cancer detection & classification, brain tumor MRI, mammography (benign vs malignant), chest X-ray, CT, histopathology, retinal/fundus, ultrasound, dermoscopy. Encodes hard-won rigor: patient-level splits (no leakage), medical preprocessing (CLAHE, ROI/organ cropping, artifact/pectoral removal), clinical operating points (high sensitivity), probability calibration, and skepticism toward inflated ROI-crop/leaky benchmark numbers. Triggers on 'detect cancer/tumor', 'MRI/CT/X-ray/mammogram/histopathology classification', 'benign vs malignant', 'medical images'."

Medical Imaging - Method Selection & Rigor

High stakes + small, leaky-prone datasets. Rigor matters more than architecture.

Decision table

| Sub-task | Recommended | Notes | |---|---|---| | 2D scan classification (mammo, X-ray, derm, fundus) | **EfficientNet(-B3..B5) / ConvNeXt**, ImageNet-pretrained | Modern-but-not-huge backbones win on low/medium-quality medical data; giant models often don't transfer better. | | Whole-image with tiny lesions | **Weakly-supervised localization (GMIC-style)** or **patch-pretrain then whole-image (Shen-style)** | Best whole-image ceiling; also yields saliency maps for clinicians. | | Multi-view study (e.g., CC+MLO mammo) | **Two-view / multi-input fusion** | Biggest research-backed lever over single view. | | 3D volumes (CT/MRI) | **3D U-Net / nnU-Net (seg)**, 2.5D or 3D CNN (classify) | nnU-Net is a very strong segmentation default. | | Histopathology WSI | **MIL / CLAM on tiles** | Gigapixel images, so tile them and use multiple-instance learning. | | Lesion/organ segmentation | **U-Net / nnU-Net / SegFormer** | Dice/IoU. |

Non-negotiable rigor (this is where most medical ML fails)

  • **PATIENT-LEVEL split.** All images/views/slices of one patient in ONE split. Use the dataset's **official split** when it exists (often encoded in the ID). Add asserts (`data-rigor-and-leakage`). Random per-image splitting is the classic fake-accuracy trap.
  • **Whole-image vs ROI-crop honesty.** Cropped-lesion ROI classification is an easier, different problem; ~98-99% papers are usually ROI-crop and/or leaky. Report which one you are doing and never conflate.
  • **Medical preprocessing:** CLAHE for contrast; crop to the organ/breast (largest connected component) to drop background/labels/tape; remove confounders (e.g., pectoral muscle on mammogram MLO - verify the model isn't attending to it via Grad-CAM); intensity normalization (windowing for CT, z-score for MRI). Apply identically at inference (parity).
  • **Clinical operating point:** report **sensitivity AND specificity**; prefer a **high-sensitivity** threshold (recall ≥ ~0.90) chosen on validation - missing cancer >> a false alarm. Don't ship a 0.5 or Youden threshold blindly.
  • **Calibration:** temperature-scale probabilities so "78% malignant" is trustworthy for decision support.
  • **Framing:** decision-support / second-reader, NOT autonomous diagnosis; prototype needs clinical + regulatory validation (`deployment-explainability`).

Realistic ceilings (whole-image, rigorous)

State honest targets from `literature-review` rather than chasing leaderboard peaks (e.g., CBIS-DDSM whole-image benign-vs-malignant ≈ 0.83 AUC single-view, ~0.86 two-view; higher numbers are typically ROI/leaky). Use `accuracy-improvement-loop` to push toward the ceiling.

Read more
@mxslr
Ships withmlcraft

A research-first AI/ML research-engineer workflow for Claude Code

823 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of mxslr/mlcraft on GitHub, a chart by star-history.com

Other skills on mlcraft.

accuracy-improvement-loop

accuracy-improvement-l…

Use when an existing model's results are disappointing and the user wants higher accuracy - 'accuracy is still too low',…

@mxslr@mxslrInstall Skill
data-rigor-and-leakage

data-rigor-and-leakage

Use BEFORE training any model, to build correct train/val/test splits and hunt data leakage - the #1 cause of fake-high accuracy.…

@mxslr@mxslrInstall Skill
dataset-profiling

dataset-profiling

Use as the FIRST step of any ML task, before choosing a model, to inspect and understand the actual dataset. Works for a LOCAL…

@mxslr@mxslrInstall Skill
deployment-explainability

deployment-explainabil…

Use when turning a trained model into something usable (an app, an inference function, a demo) or adding explainability. Selects…

@mxslr@mxslrInstall Skill
domain-3d

domain-3d

Use for 3D and point cloud tasks: point cloud classification, 3D semantic or instance segmentation, 3D object detection from…

@mxslr@mxslrInstall Skill
domain-anomaly-detection

domain-anomaly-detecti…

Use for anomaly, outlier, and novelty detection across data types: industrial or visual defect detection, time-series or sensor…

@mxslr@mxslrInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about domain-medical-imaging.

Which coding agents can use domain-medical-imaging?
domain-medical-imaging installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.