profile-imaging

profile-imaging is a skill for Claude Code from Aperivue/medsci-skills. It costs 190 tokens per session (2,414 once invoked), scanned A, original, MIT.

A workflow for inspecting a medical-imaging dataset before choosing a model or preprocessing method. It records image spacing, orientation, intensity ranges, labels, and target size and volume.

In plain words
What is it for?
Use it to profile imaging files, understand the target structure and acquisition differences, and check whether a proposed modelling plan fits the dataset.
Why use it?
The data's properties can rule out unsuitable modelling choices before training begins. Early profiling can also reveal missing labels, severe class imbalance, or important variation between scans.

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 profile imaging files, understand the target structure and acquisition differences, and check whether a proposed modelling plan fits the dataset.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aperivue/medsci-skills/profile-imaging"><img src="https://agentmods.dev/badge/skills/aperivue/medsci-skills/profile-imaging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,414 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.00190 $0.02414
Opus 5 $0.00095 $0.01207
Sonnet 5 $0.00038 $0.00483
Haiku 4.5 $0.00019 $0.00241

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

Security

Grade A, and why

profile-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 11d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check_dataset_profile_challenge/verify.sh, scripts/check_dataset_profile.py, scripts/profile_imaging_dataset.py, …), 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/profile-imaging/SKILL.md · 177 lines

How it starts

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

Profile-Imaging Skill

Purpose

A dataset decides more of a study than the architecture does, and it decides it first. Before anything is preprocessed, split, or trained, a handful of facts are already true about the data, and each one closes off or opens up a research plan:

  • If the target occupies 0.4 % of the volume, accuracy is not a metric — predicting background everywhere scores 99.6 %.
  • If through-plane spacing runs 1.5–8 mm inside a single institution, resampling is not a default to accept quietly; it is the most consequential preprocessing choice in the study, and it is also the axis along which an external dataset will differ.
  • If the directory named imagesTs has no labels, it is not a test set, and the held-out set has to come from somewhere else — better known before training than after.
  • If the organ volume spans 56–502 mL when normal is roughly 100–250, the cohort contains disease that a subgroup analysis should be pre-specified for, rather than discovered post hoc.

None of that requires a model, a GPU, or an engineer. It requires reading every file once and writing down what is there. This skill does that, and then audits the plan against it.

It is the front door of the model-engineering lane: profile-imaging (describe)/design-study + /architecture-zoo (decide) → /preprocess-imaging (plan the pipeline) → /model-scaffold (build) → /model-validation/model-evaluation.

When to use

  • You have a dataset and a task, and need to know what the data will and will not support before committing to a plan.
  • You inherited a dataset and need its integrity established (labels intact, splits labelled, label values as declared) before anyone trains on it.
  • You are about to write a Methods section that describes the cohort and its acquisition.

When NOT to use

  • Tabular / clinical variables → /generate-codebook (data dictionary) and /clean-data.
  • Designing the preprocessing pipeline and auditing it for data-stage leakage → /preprocess-imaging (it consumes what this skill describes).
  • Auditing the train/val/test split table → /model-validation.
  • Choosing an architecture → /architecture-zoo. Building the repo → /model-scaffold.
  • Held-out metrics, calibration, subgroup results → /model-evaluation then /analyze-stats.

Read the full file on GitHub · 177 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. 11d ago First seen · 177 lines · 190 tokens per session scan A e66d9d34bf96

Subscribe to this mod's changes

profile-imaging is a skill published in the GitHub repository Aperivue/medsci-skills (291 stars, last pushed 3d ago), licensed MIT. It adds 190 tokens to every session and 2,414 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.