Agent skill

Medical Imaging Guide

by wentorai in wentorai/research-plugins

Medical image analysis with deep learning for research applications

MITAuto-check passedResearch & Science

Install Medical Imaging Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill medical-imaging-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins medical-imaging-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
medical-imaging-guide
GitHub stars
298
Used in
1 other repo
Token cost
~2.7k tokens
SKILL.md length
146 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Medical image analysis with deep learning for research applications

  • Tasks that involve Clinical and healthcare research
  • SKILL.md covers Imaging Modalities and Data…, Preprocessing Pipeline, Model Architecture Selection and Handling Small Datasets, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Deep learning

What it does

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.

When your agent uses it

  • Tasks that involve Clinical and healthcare research
  • Tasks that involve Deep learning

Example prompts

  • “/medical-imaging-guide”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 146 words, ~2,655 tokens.

Download SKILL.mdSave it as .claude/skills/medical-imaging-guide/SKILL.md (or your agent's skills folder).
name
medical-imaging-guide
description
Medical image analysis with deep learning for research applications

Medical Imaging Guide

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.

Imaging Modalities and Data Characteristics

Common Modalities in Research
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, REFUGE

Preprocessing Pipeline

Standard Preprocessing Steps
python
import 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 resampled

Model Architecture Selection

Task-Specific Architectures
Architecture 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 needed

Handling Small Datasets

Data Augmentation for Medical Images
python
def 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 transform
Transfer Learning Strategies
Transfer 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-ready

Evaluation Metrics

Medical Imaging Specific Metrics
Classification 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 possible

Ethical and Regulatory Considerations

Responsible 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 decisions

Medical 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

Files

Just SKILL.md in skills/domains/biomedical/medical-imaging-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

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.

Compare with similar skills

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.

Medical Imaging Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Medical Imaging Guide this skillwentorai/research-plugins2981 repos~2.7kAutomated safety check: PassMIT
Histolab Whole Slide Image Tilingdavila7/claude-code-templates33k11 repos~5.1kAutomated safety check: PassMIT
PyHealth Clinical ML Toolkitdavila7/claude-code-templates33k11 repos~4.4kAutomated safety check: PassMIT
PyhealthBioTender-max/awesome-bio-agent-skills200—~1.8kAutomated safety check: PassCustom licence
Model ScaffoldAperivue/medsci-skills333—~3.1kAutomated safety check: PassMIT
Matlab Process Imagesmatlab/matlab-agentic-toolkit1.1k—~3.7kAutomated safety check: PassCustom licence

Similar skills

  • 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.

    33k GitHub starsUsed in 11 repos~5.1k tokens
    Research & ScienceAuto-check passed
  • PyHealth Clinical ML Toolkit

    davila7/claude-code-templates

    Builds machine learning pipelines on clinical data with PyHealth: EHR datasets, prediction tasks, medical code mapping, healthcare models and evaluation.

    33k GitHub starsUsed in 11 repos~4.4k tokens
    Research & ScienceAuto-check passed
  • Pyhealth

    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…

    200 GitHub stars~1.8k tokensUpdated 3 mo ago
    Research & ScienceAuto-check passed
  • Model Scaffold

    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…

    333 GitHub stars~3.1k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Matlab Process Images

    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…

    1.1k GitHub stars~3.7k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Clinical Trials Database

    google-deepmind/science-skills

    Query ClinicalTrials.gov via APIv2. An agent skill from google-deepmind/science-skills.

    3.2k GitHub starsUsed in 2 repos~3.2k tokens
    Research & ScienceAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Medical Imaging Guide

What does Medical Imaging Guide do?

Medical image analysis with deep learning for research applications. Medical Imaging Guide is an agent skill from wentorai/research-plugins.

When should I use Medical Imaging Guide?

Medical Imaging Guide fits situations like: tasks that involve Clinical and healthcare research; tasks that involve Deep learning.

How do I install Medical Imaging Guide in Claude Code?

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.

How do I install Medical Imaging Guide in Codex?

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.

Can I use Medical Imaging Guide in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Medical Imaging Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: Medical Imaging Guide is instructions for the agent only. Our summary lists: Python 3.

Does Medical Imaging Guide access the network?

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.

Is Medical Imaging Guide safe to install?

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.

What licence does Medical Imaging Guide use?

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.

How many tokens does Medical Imaging Guide use?

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.

What are the alternatives to Medical Imaging Guide?

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.

Who maintains Medical Imaging Guide?

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.