model-evaluation

model-evaluation is a skill for Claude Code from Aperivue/medsci-skills. It costs 206 tokens per session (1,802 once invoked), scanned A, original, MIT.

A tool for calculating and reporting results from held-out medical-imaging predictions, meaning data kept separate from training and tuning.

In plain words
What is it for?
Use it to calculate metrics for segmentation, classification, or detection, add confidence intervals and subgroup results, and produce per-case tables for a paper.
Why use it?
It helps match measurements to the task and account for uncertainty, calibration, disease frequency, and performance across patient groups.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: model in frontmatter.

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

Good fit Use it to calculate metrics for segmentation, classification, or detection, add confidence intervals and subgroup results, and produce per-case tables for a paper.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aperivue/medsci-skills/model-evaluation"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/model-evaluation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 206 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,802 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.00206 $0.01802
Opus 5 $0.00103 $0.00901
Sonnet 5 $0.00041 $0.00360
Haiku 4.5 $0.00021 $0.00180

Measured 9d ago against content hash b39293e54402, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

model-evaluation 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 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check_metric_reporting.py, scripts/metric_reporting_challenge/verify.sh, tests/test_metric_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/model-evaluation/SKILL.md · 114 lines

How it starts

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

Model-Evaluation Skill

Purpose

This skill makes a medical-imaging model's held-out evaluation task-correct and honest: the right metric for the task and the prevalence, with uncertainty, calibration, and subgroup performance. It emits a per-case metric table that the publication statistics build on, and gates the metric choice against Metrics Reloaded (Maier-Hein & Reinke et al., Nat Methods 2024) and CLAIM 2024.

It sits between /model-validation (which audits the split / design) and /analyze-stats (which owns the comparative inference). It computes the imaging-specific per-case metrics (surface distances, FROC, ECE of a softmax head); /analyze-stats owns DeLong / NRI / IDI / decision curves / MRMC. Like /analyze-stats, it generates and executes code on your predictions — numbers are never hand-typed.

When to use

  • You have held-out predictions + ground truth and need task-correct metrics with CIs, calibration, and subgroup slices, plus a per-case table for the manuscript statistics.

When NOT to use

  • Auditing the validation design / leakage → /model-validation.
  • DeLong / NRI / IDI / decision curves / MRMC reader study → /analyze-stats.
  • Building / training the model → /model-scaffold; LLM / MLLM → /mllm-eval.
  • Figure rendering → /make-figures.

Workflow

Phase 1 — Fix the analysis unit and the task

State the task (segmentation / classification / detection / interactive / generative) and the analysis unit the metric must respect (per-patient vs per-lesion vs per-image). A per-lesion metric must not be reported as per-patient.

Phase 2 — Compute task-correct metrics

Generate evaluation code that computes, on the held-out predictions:

  • segmentation: Dice/IoU and a boundary metric (HD95 / NSD), per structure not only a global mean, with bootstrap 95% CIs.
  • classification: AUROC and AUPRC with bootstrap CIs, sensitivity/specificity, and PPV/NPV at the deployment prevalence (not a balanced set).
  • detection: FROC / mAP with the IoU match criterion stated.
  • interactive / promptable segmentation (SAM2 / MedSAM2 / nnInteractive): the segmentation metrics above plus the interaction axis — Dice-vs-interactions / number-of-clicks (NoC) to a target threshold, initial-vs-converged (or peak) Dice, and per-case interaction/inference time (see the metric guide; the study design is in /design-study + /model-validation).
  • generative / synthesis (image generation or modification): full-reference similarity (MSE/RMSE/PSNR/SSIM) or no-reference quality (SNR/CNR, standardized visual scores), plus a downstream-task evaluation — image quality is not clinical utility (Park et al., Radiol Med 2024). For multiclass classification, state the aggregation scheme (one-vs-rest / macro / micro / pairwise / Obuchowski); time-to-event discrimination (Harrell's C, time-dependent ROC) is handed to /analyze-stats. Add calibration (reliability diagram / ECE) and subgroup slices (the Model Card Factors). See ${CLAUDE_SKILL_DIR}/references/metric_guide.md. Emit a per-case CSV for /analyze-stats.

Read the full file on GitHub · 114 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. 9d ago First seen · 114 lines · 206 tokens per session scan A b39293e54402

Subscribe to this mod's changes

model-evaluation is a skill published in the GitHub repository Aperivue/medsci-skills (290 stars, last pushed yesterday), licensed MIT. It adds 206 tokens to every session and 1,802 once invoked, about $0.0010 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