uncertainty-imaging

uncertainty-imaging is a skill for Claude Code from Aperivue/medsci-skills. It costs 165 tokens per session (1,950 once invoked), scanned A, original, MIT.

A set of practices for measuring how sure a medical-imaging model is about each prediction and for detecting cases unlike its training data. It also covers when the model should decline to give an answer.

In plain words
What is it for?
Use it to design or audit uncertainty estimates, unfamiliar-case detection, prediction abstention, and the evidence supporting a medical deployment claim.
Why use it?
A prediction score alone does not show whether a clinical model is reliable on unfamiliar scans, hospitals, scanners, or patient groups.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the medsci-modeling plugin — 12 skills shipped together

Good fit Use it to design or audit uncertainty estimates, unfamiliar-case detection, prediction abstention, and the evidence supporting a medical deployment claim.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aperivue/medsci-skills/uncertainty-imaging
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.

Any agent
npx skills add Aperivue/medsci-skills --skill uncertainty-imaging
Clone the repo
git clone --depth 1 https://github.com/Aperivue/medsci-skills

Made for: Claude Code.

Or install medsci-modeling, the plugin that ships this one along with the rest of its 12 skills.

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 uncertainty-imaging

README.md
[![agentmods](https://agentmods.dev/badge/skills/aperivue/medsci-skills/uncertainty-imaging/github.svg)](https://agentmods.dev/skills/aperivue/medsci-skills/uncertainty-imaging)
Your own site
<a href="https://agentmods.dev/skills/aperivue/medsci-skills/uncertainty-imaging"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/uncertainty-imaging/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 uncertainty-imaging

Your own site · 80×15
<a href="https://agentmods.dev/skills/aperivue/medsci-skills/uncertainty-imaging"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/uncertainty-imaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,950 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00165 $0.01950
Opus 5 $0.00082 $0.00975
Sonnet 5 $0.00033 $0.00390
Haiku 4.5 $0.00016 $0.00195

Measured 13d ago against content hash 0ff26311b9b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

uncertainty-imaging 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 13d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check_uncertainty_reporting_challenge/verify.sh, scripts/check_uncertainty_reporting.py, tests/test_uncertainty_reporting.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/uncertainty-imaging/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Uncertainty-Imaging Skill

Purpose

A medical-imaging model framed for deployment must say more than "class 1, 0.87". It needs a calibrated uncertainty on each case, an out-of-distribution (OOD) guard validated on data known to be out-of-distribution, and — if it abstains — a pre-specified operating point. The failures are predictable and reviewer-visible: a clinical-use claim built on point predictions, conformal intervals quoted without ever measuring their coverage, an "OOD detector" evaluated only on in-distribution data, a deep ensemble whose members share a seed, and uncertainty validated only in-distribution when deployment sees scanner/site/case-mix shift. This skill designs that layer and audits an existing one (Gal 2016; Lakshminarayanan 2017; Angelopoulos & Bates; Ovadia 2019; DECIDE-AI).

It is the deployment-safety companion in the model-engineering lane: /model-evaluation computes the held-out metrics and calibration, and uncertainty-imaging covers the uncertainty / OOD / abstention machinery a deployment claim rests on. It integrates MAPIE (conformal), captum, and pretrained OOD scorers; it does not reimplement them and never runs a model on real patient data.

When to use

  • Your model is framed for clinical use / deployment and a reviewer will ask "what does it do when it is unsure, or off-distribution?"
  • You report conformal / MC-dropout / ensemble uncertainty and want the coverage, independence, and shift checks right before submission.
  • You want to audit an existing uncertainty/OOD section for the failure modes below.

When NOT to use

  • Held-out discrimination / calibration metrics of the point predictor → /model-evaluation then /analyze-stats.
  • Training-repo scaffolding / the split → /model-scaffold (+ /model-validation).
  • Interpretability / saliency of a trained network → /explainability.
  • Classical-ML calibration of a tabular model → /radiomics-ml + /analyze-stats.
  • Reimplementing MAPIE / an OOD library → out of scope (this skill wires and audits them).

Read the full file on GitHub · 134 lines

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. 13d ago First seen · 134 lines · 165 tokens per session scan A 0ff26311b9b3

Subscribe to this mod's changes

uncertainty-imaging is a skill published in the GitHub repository Aperivue/medsci-skills (292 stars, last pushed 5d ago), licensed MIT. It adds 165 tokens to every session and 1,950 once invoked, about $0.0008 per session on Opus 5. 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-30.

Related

Other skills, from other repositories

genomic-intelligence

Predict regulatory features, gene structure, and expression directly from DNA sequence using Genomic Intelligence's hosted transformer DNA language models — no local GPU or model weights. Six tasks over a REST API and a hosted MCP server (keyless public demo): promoter regions, splice donor/acceptor sites, enhancer…

K-Dense-AI/scientific-agent-skills · 150 tokens

torch-geometric

PyTorch Geometric (PyG) for graph neural networks — node/link/graph classification, message passing (GCN, GAT, GraphSAGE, GIN), heterogeneous graphs, neighbor sampling, and custom datasets. Use when working with torchgeometric, not for general NetworkX analytics or non-graph PyTorch models.

K-Dense-AI/scientific-agent-skills · 71 tokens

bids

Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars…

K-Dense-AI/scientific-agent-skills · 80 tokens

bulk-rnaseq

End-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, featureCounts), assembles a gene-level counts matrix, then hands off to differential expression (pydeseq2), pathway/GSEA enrichment (pathway-enrichment), and…

K-Dense-AI/scientific-agent-skills · 218 tokens

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard…

K-Dense-AI/scientific-agent-skills · 74 tokens

deepchem

Molecular ML with diverse featurizers and pre-built datasets. Use for property prediction (ADMET, toxicity) with traditional ML or GNNs when you want extensive featurization options and MoleculeNet benchmarks. Best for quick experiments with pre-trained models, diverse molecular representations. For graph-first…

K-Dense-AI/scientific-agent-skills · 78 tokens