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.
npx skills add Aperivue/medsci-skills --skill preprocess-imaginggit clone --depth 1 https://github.com/Aperivue/medsci-skillsWrote 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.
[](https://agentmods.dev/skills/aperivue/medsci-skills/preprocess-imaging)<a href="https://agentmods.dev/skills/aperivue/medsci-skills/preprocess-imaging"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/preprocess-imaging.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00133 | $0.01961 |
| Opus 5 | $0.00067 | $0.00981 |
| Sonnet 5 | $0.00027 | $0.00392 |
| Haiku 4.5 | $0.00013 | $0.00196 |
Grade A, and why
preprocess-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 8d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Preprocess-Imaging Skill
Purpose
This skill designs and audits the data-preparation stage of a medical-imaging model — the stage before a training repo is built — and proves it is leakage-safe by construction. Data leakage enters one step earlier than the split table can see: a normaliser fit on the whole dataset, a data-fitted transform run before the split exists, or a patient whose slices land in more than one partition. Each silently inflates every downstream metric (Kapoor & Narayanan, Patterns 2023; Varoquaux & Cheplygina, npj Digit Med 2022; CLAIM 2024 data items).
It is the missing first link in the lane: preprocess-imaging (prepare + audit) →
/model-scaffold (build) → /model-validation (validate the split) → /model-evaluation +
/analyze-stats (metrics) → /write-paper + /check-reporting (publish). It integrates
MONAI / TorchIO transforms (referenced in the emitted plan); it does not reimplement them, and it
never executes preprocessing on real patient data.
When to use
- You have a data manifest (one row per image/slice with a patient/subject ID) and want a leakage-safe preprocessing plan + a machine-checkable manifest before scaffolding a model.
- You want to audit an existing preprocessing pipeline for data-stage leakage.
When NOT to use
- Auditing the train/val/test split table itself →
/model-validation(split-leakage gate). - Building the training repo / model code →
/model-scaffold(it consumes this manifest). - Choosing the architecture →
/architecture-zoo. - Held-out metrics / calibration →
/model-evaluationthen/analyze-stats. - Reimplementing MONAI / TorchIO transforms → out of scope (this skill wires and audits them).
Workflow
Phase 1 — Inventory the data and the intended steps
Collect: modality (CT / MR / X-ray / US / path), the data manifest (one row per image/slice with a
patient_id), the intended resample spacing, the intensity transform (fixed HU window vs a fitted
z-score / min-max / histogram match), and the augmentation plan. See
references/preprocessing_guide.md for modality-aware guidance
(what normalisation is standard per modality, which augmentations preserve vs break physiology).
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/preprocessing_guide.md 4.9 KB
- scripts/check_normalizer_domain_challenge/expected/arbitrary_mismatch.txt 831 B
- scripts/check_normalizer_domain_challenge/expected/hu_clean.txt 364 B
- scripts/check_normalizer_domain_challenge/fixture/plan_ct.json 486 B
- scripts/check_normalizer_domain_challenge/fixture/profile_arbitrary.json 4.4 KB
- scripts/check_normalizer_domain_challenge/fixture/profile_hu.json 2.7 KB
- scripts/check_normalizer_domain_challenge/problem.md 2.3 KB
- scripts/check_normalizer_domain_challenge/verify.sh 3.0 KB runs code
- scripts/check_normalizer_domain.py 10 KB runs code
- scripts/check_preprocessing_leakage_challenge/expected/clean.txt 370 B
- scripts/check_preprocessing_leakage_challenge/expected/leak.txt 1.0 KB
- scripts/check_preprocessing_leakage_challenge/fixture/manifest_clean.json 800 B
- scripts/check_preprocessing_leakage_challenge/fixture/manifest_leak.json 881 B
- scripts/check_preprocessing_leakage_challenge/problem.md 903 B
- scripts/check_preprocessing_leakage_challenge/verify.sh 2.1 KB runs code
- scripts/check_preprocessing_leakage.py 14 KB runs code
- skill.yml 3.4 KB
- tests/test_preprocessing_leakage.sh 5.0 KB runs code
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.
- 8d ago First seen · 139 lines · 133 tokens per session scan A df11b628031f
preprocess-imaging is a skill published in the GitHub repository Aperivue/medsci-skills (287 stars, last pushed yesterday), licensed MIT. It adds 133 tokens to every session and 1,961 once invoked, about $0.0007 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.
Other skills, from other repositories
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.
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…
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…
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…
esm
Use when working directly with the esm Python SDK, ESM3 or ESMC model IDs, Forge/Biohub inference clients, or ESMFold2 folding workflows.
geniml
Use Geniml for audited local genomic-interval workflows: validate BED and universe contracts, plan Region2Vec or scEmbed runs, inspect model/tokenizer compatibility, and assess consensus universes.