Agent skill

Radiomics ML

by Aperivue in Aperivue/medsci-skills

A skill your agent uses when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar).

MITAuto-check passedData & Analytics

Install Radiomics ML

skills CLI
$ npx skills add Aperivue/medsci-skills --skill radiomics-ml -a claude-code

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

GitHub CLI
$ gh skill install Aperivue/medsci-skills radiomics-ml --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/Aperivue/medsci-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/radiomics-ml .claude/skills/radiomics-ml && 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
radiomics-ml
GitHub stars
333
Token cost
~2.7k tokens
SKILL.md length
1,227 words
Files
12 (incl. scripts, references)
Skills in repo
54
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar).

  • Works in 4 steps: Extract features (integrate, don't… → Build the pipeline correctly → Emit the pipeline manifest → …
  • Auditing a radiomics
  • SKILL.md covers Purpose, When to use, When NOT to use and The failure modes (what the…, plus 4 more sections
  • Runs Python and Shell scripts from its folder; calls python3

What it does

Radiomics ML is an agent skill from Aperivue/medsci-skills. Use when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar). Enforces nested CV, dimensionality control, in-fold feature selection, feature stability, calibration and external validation.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts and reference files (for example `references/radiomics_ml_guide.md`, `scripts/check_radiomics_ml.py` and `scripts/check_radiomics_ml_challenge/fixture/pipeline_strong.json`).

It sits in Data & Analytics, covering Machine learning. The repository describes itself as: Agent Skills for medical research — literature search, reporting-guideline & citation checks, statistics, publication figures, submission. Works with Claude Code, Codex, Cursor &… The licence is MIT.

When your agent uses it

  • Auditing a radiomics
  • Tabular clinical-ML prediction model with a classical learner (LASSO
  • XGBoost and similar)

Example prompts

  • “/radiomics-ml”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Extract features (integrate, don't reimplement)
  2. Build the pipeline correctly
  3. Emit the pipeline manifest
  4. Gate the pipeline (deterministic)

What it can do on your machine

Read from SKILL.md and the folder at commit 3b14ae2. 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

    Ships 7 files in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    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

Radiomics ML loads about 2.7k tokens when it runs, and up to ~5.6k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 1,227 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.6k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from Aperivue/medsci-skills at commit 3b14ae2, republished under its MIT licence (© Aperivue). 1,227 words, ~2,744 tokens.

Download SKILL.mdSave it as .claude/skills/radiomics-ml/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
radiomics-ml
description
Use when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar). Enforces nested CV, dimensionality control, in-fold feature selection, feature stability, calibration and external validation.
metadata.triggers
radiomics, radiomic features, pyradiomics, tabular ML, clinical prediction model, random forest, XGBoost, LightGBM, CatBoost, gradient boosting, tree…

Radiomics / Classical-ML Skill

Purpose

Radiomics + tree-ensemble studies (features → random forest / XGBoost → a clinical outcome) are the most common solo-doable clinical-ML workflow — no GPU, no engineer — and the most commonly over-optimistic: hundreds-to-thousands of features on tens of patients, hyperparameters tuned on the same folds the performance is reported from, features selected on the whole dataset, unstable features never filtered, and discrimination (AUC) reported without calibration. This skill produces the pipeline correctly and audits an existing one, so the clinical result survives review (Lambin 2017; CLEAR; TRIPOD+AI; PROBAST-AI).

It sits beside the imaging-DL lane: where /model-scaffold builds a deep network, radiomics-ml covers the feature-based classical-ML path. It integrates scikit-learn / xgboost / pyradiomics (referenced in the emitted code); it does not reimplement them and never runs a model on real patient data.

When to use

  • You have a radiomics or clinical/tabular feature table and want to build a random-forest / XGBoost clinical prediction model that will pass statistical review.
  • You want to audit an existing radiomics/ML pipeline for the failure modes below.

When NOT to use

  • Deep-learning imaging models → /model-selection → /model-scaffold → /model-assessment.
  • Classical inferential statistics / a regression model as the estimand → /analyze-stats.
  • Interpretability of a trained network → /model-assessment.
  • Reimplementing scikit-learn / xgboost / pyradiomics → out of scope (this skill wires and audits them).

The failure modes (what the gate enforces)

  1. No nested CV. Tuning and reporting on the same folds inflates performance. Use nested CV or a held-out test set.
  2. High dimensionality, low events. Candidate features ≥ events overfits — the classic radiomics trap. Declaring dimensionality_reduction does not clear it: n_features already counts what is left after outcome-blind reduction. The gate's p ≥ events rule (events = the minority class) is a floor that catches the worst case, not a sample-size criterion: size the study with /calc-sample-size Test 12 (Riley criteria, pmsampsize), counting every candidate feature that reaches outcome-driven selection or fitting. At C = 0.75 and 35% prevalence that is about 48 patients per candidate parameter: 100 candidates need N = 4,755 (1,665 events), and the gate passes 100 features on 105 events. Reduce candidates without the outcome first (stability, redundancy, clinical prior); LASSO or other penalisation does not substitute for sample size, because the shrinkage it estimates is itself unstable at small n (Riley et al., J Clin Epidemiol 2021; Van Calster et al., Stat Methods Med Res 2020).
  3. Selection outside the fold. Feature selection fit on the whole dataset leaks the held-out folds. Nest selection inside each training fold.
  4. No feature stability. Radiomics features are unstable across acquisition/segmentation — filter to reproducible features (ICC / test-retest).
  5. No calibration. A clinical prediction model needs calibration (slope/intercept + a flexible curve), not discrimination alone.
  6. No external validation. A single-cohort model needs external / temporal validation for a clinical claim.

Not in the gate, because the manifest cannot show it: rows of one patient on both sides of a split. Lesion-level tables with row-wise folds let the model recognise the patient; on null synthetic data this took nested-CV AUROC from 0.48 to 0.99. Split by patient and check the fold table (Phase 2).

Workflow

Phase 1 — Extract features (integrate, don't reimplement)

For radiomics, extract with pyradiomics under reproducible, IBSI-aligned settings (fixed bin width, resampling, normalisation) — record them. For clinical/tabular data, assemble the feature table with a patient/subject ID and the outcome. One row per lesion or ROI is fine; the ID is what the folds are split by. See references/radiomics_ml_guide.md.

Phase 2 — Build the pipeline correctly
  • Feature stability — with test-retest / multi-rater data, keep features with ICC ≥ 0.75.
  • Nested cross-validation — outer folds estimate performance, inner folds tune; do feature selection and scaling inside each training fold (never on the whole dataset). The CV unit is the patient: split both loops with StratifiedGroupKFold(groups=patient_id) so one patient's lesions never straddle folds, write the fold table (patient_id,split), and prove it with /model-assessment's check_split_leakage.py --splits cv_folds.csv --seed <seed> --strict (skeleton in the guide §4).
  • Dimensionality — reduce the candidate set without the outcome (ICC stability, |r| redundancy filter, clinical prior; PCA fit inside the fold), then size the study for the candidates that remain with /calc-sample-size Test 12 (pmsampsize). LASSO selects inside the fold but does not make a small sample large enough; report the shortfall as a limitation if N falls below the Riley minimum.
  • Model — pick from the full classical family for the task; a simple baseline (penalised logistic) is mandatory alongside any complex learner:
    • penalised regression — LASSO / ridge / elastic-net logistic (also the baseline)
    • margin / kernel — linear or RBF SVM
    • instance-based — k-NN
    • probabilistic / discriminant — naive Bayes, LDA / QDA
    • trees & bagging — decision tree, random forest, extra-trees
    • boosting — XGBoost, LightGBM, CatBoost, HistGBM, AdaBoost
    • shallow neural — MLP
    • meta — stacking / voting ensembles
    • unsupervised (upstream) — PCA / UMAP for reduction, k-means / hierarchical / GMM for phenotyping The gate below is learner-agnostic — it audits the pipeline (nested CV, leakage, dimensionality, calibration), so it applies identically to any of these. See the full method map in docs/method_coverage_map.md.
  • Report — discrimination and calibration (slope/intercept + flexible curve, via the /analyze-stats calibration guide) and clinical utility (decision curve). SHAP for interpretation.
Show full SKILL.md (404 more words)Show less
Phase 3 — Emit the pipeline manifest
json
{
  "task": "classification",
  "n_features": 40, "n_samples": 300, "n_events": 110,
  "cv_scheme": "nested",
  "feature_selection_stage": "inside_cv",
  "dimensionality_reduction": true,
  "feature_stability": "icc",
  "calibration_reported": true,
  "external_validation": "temporal",
  "model": "xgboost"
}
  • n_features — the candidate features that reach outcome-driven selection or fitting, after outcome-blind reduction (here 1,200 extracted → ICC ≥ 0.75 → |r| < 0.9 → 40). This example passes the gate, yet pmsampsize (C = 0.75, prevalence 110/300) asks for N = 1,868 with 685 events for 40 candidate parameters: the gate does not size the study, Test 12 does. n_features, n_samples and n_events must be non-negative integers (n_events ≤ n_samples); anything else is an input error (exit 2). dimensionality_reduction is informational and clears nothing.
  • feature_selection_stage — inside_cv, outside_cv, or none (no outcome-driven selection). Missing or unrecognised is treated as not shown to be in-fold (SELECTION_OUTSIDE_CV).
  • feature_stability — icc / test_retest; external_validation — external / temporal / geographic. Any other value (e.g. planned, internal, bootstrap, random_split) is flagged. Values are case-insensitive; - and spaces read as _.
  • cv_scheme — nested, or held_out_test / single_split when hyperparameters and model choice were tuned on the training split only and the test split was touched once. A split that was also used for tuning, model selection or a threshold is flat (choosing among 12 candidate models on the test split of null data reported AUROC 0.63 instead of 0.51). At radiomics sample sizes a single random split wastes data and is unstable; prefer (repeated) nested CV (Steyerberg, J Clin Epidemiol 2018).
Phase 4 — Gate the pipeline (deterministic)
bash
python3 scripts/check_radiomics_ml.py --manifest pipeline_manifest.json --strict

Verdicts: NO_NESTED_CV, HIGH_DIM_LOW_EVENTS, SELECTION_OUTSIDE_CV (Major); NO_FEATURE_STABILITY, NO_CALIBRATION, NO_EXTERNAL_VALIDATION, and HIGH_DIM_NOT_ASSESSED when n_features, n_samples or n_events is missing (Minor). Complements self-review's check_cv_leakage (which audits a finished manuscript's prose) at the pipeline-spec level.

Integration

  • /analyze-stats — calibration + clinical-utility (decision curve, NNT) guides for the reporting.
  • /check-reporting — CLEAR (radiomics), TRIPOD+AI, PROBAST-AI item coverage.
  • /self-review clinical_prediction_model probe audits the finished manuscript; this skill produces the rigorous pipeline it looks for.

Anti-Hallucination

  • Never fabricate features, performance metrics, or sample/event counts. Every value in the manifest and every reported metric comes from the researcher's executed code — never invented. This skill designs and audits the pipeline; it does not run a model on real patient data.
  • Never report flat-CV performance as if it were nested or held-out. Tuning on the reported folds is the optimism this skill exists to prevent (NO_NESTED_CV).
  • Never report a radiomics/ML audit "pass" without running check_radiomics_ml.py. The rigor verdict is reproduced deterministically, never asserted from prose.
  • Integrate, don't reimplement. Reference scikit-learn / xgboost / pyradiomics; do not write a new feature extractor or learner or claim results for one.

Reproducible challenge

scripts/check_radiomics_ml_challenge/ ships a synthetic weak/strong pipeline pair with a network-free verify.sh wired into the skill's validation commands.

© Aperivue, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (scripts, references) in skills/radiomics-ml of Aperivue/medsci-skills.

  • SKILL.md
  • references/radiomics_ml_guide.md
  • scripts/check_radiomics_ml.py
  • scripts/check_radiomics_ml_challenge/expected/strong.txt
  • scripts/check_radiomics_ml_challenge/expected/weak.txt
  • scripts/check_radiomics_ml_challenge/fixture/pipeline_strong.json
  • scripts/check_radiomics_ml_challenge/fixture/pipeline_weak.json
  • scripts/check_radiomics_ml_challenge/problem.md
  • scripts/check_radiomics_ml_challenge/verify.sh
  • skill.yml
  • tests/nested_cv_skeleton_check.py
  • tests/test_radiomics_ml.sh

Open the folder on GitHubat commit 3b14ae2

Compare with similar skills

Radiomics ML 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.

Radiomics ML compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Radiomics ML this skillAperivue/medsci-skills333—~2.7kAutomated safety check: PassMIT
Scikit LearnzLanqing/codex-claude-academic-skills4.7k16 repos~3.9kAutomated safety check: PassBSD-3-Clause
Agentic Kaggle WorkflowFrankS-IntelLab/agentic-kaggle-skill188—~4kAutomated safety check: PassMIT
Senior Data ScientistRaidriar7170/hermes-skilleval1255 repos~1.4kAutomated safety check: PassMIT
Geomlitalo-goncalves/geoML109—~4.9kAutomated safety check: PassGPL-3.0
QuantMind Training Config Generatorqusong0627/QuantMind1.7k—~1.5kAutomated safety check: PassAGPL-3.0

Similar skills

  • Scikit Learn

    zLanqing/codex-claude-academic-skills

    Machine learning in Python with scikit-learn. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 16 repos~3.9k tokens
    Data & AnalyticsAuto-check passed
  • Agentic Kaggle Workflow

    FrankS-IntelLab/agentic-kaggle-skill

    Takes a Kaggle competition from rules and validation design through baselines, ensembling and notebook architecture to a scored submission.

    188 GitHub stars~4k tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed
  • Senior Data Scientist

    Raidriar7170/hermes-skilleval

    World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics.

    125 GitHub starsUsed in 5 repos~1.4k tokens
    Data & AnalyticsAuto-check passed
  • Geoml

    italo-goncalves/geoML

    Working knowledge of the geoML Python package (github.com/italo-goncalves/geoML): variational Gaussian processes for spatial data, implicit geological modelling, block models, drillhole data…

    109 GitHub stars~4.9k tokensUpdated yesterday
    Data & AnalyticsAuto-check passed
  • Turns a plain-language model training request into a validated QuantMind training config file that can be imported from the Model Training page.

    1.7k GitHub stars~1.5k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Retention Analysis

    liangdabiao/claude-data-analysis-ultra-main

    Analyze user retention and churn using survival analysis, cohort analysis, and machine learning.

    290 GitHub stars~1.3k tokensUpdated 5 mo ago
    Data & AnalyticsAuto-check: notes

More from Aperivue/medsci-skills

All 54 skills in this repo
  • Obsidian Paper Vault

    Aperivue/medsci-skills

    A skill your agent uses when turning a folder of research PDFs into Obsidian notes, even if Obsidian is not named.

    333 GitHub stars~1.6k tokensUpdated 5 days ago
    Auto-check passed
  • Clean Data

    Aperivue/medsci-skills

    A skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).

    333 GitHub stars~2k tokensUpdated 5 days ago
    Auto-check passed
  • Design Study

    Aperivue/medsci-skills

    A skill your agent uses when checking a radiology or medical AI study design before drafting or submission.

    333 GitHub stars~3.9k tokensUpdated 5 days ago
    Auto-check passed
  • Fill Icmje Coi

    Aperivue/medsci-skills

    A skill your agent uses when each author needs an ICMJE Conflict of Interest disclosure form (coidisclosure.docx) for submission.

    333 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check passed
  • Fill Protocol

    Aperivue/medsci-skills

    A skill your agent uses when an institutional Word form (.doc/.docx IRB protocol, ethics application, grant template) must be filled without breaking its styles, tables, fonts or page layout.

    333 GitHub stars~1.7k tokensUpdated 5 days ago
    Auto-check passed
  • Find Cohort Gap

    Aperivue/medsci-skills

    A skill your agent uses when looking for research topics a longitudinal cohort database can answer (NHIS, UK Biobank, an institutional EMR or registry).

    333 GitHub stars~2.9k tokensUpdated 5 days ago
    Auto-check passed

Questions about Radiomics ML

What does Radiomics ML do?

A skill your agent uses when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar). Radiomics ML is an agent skill from Aperivue/medsci-skills. Use when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar).

When should I use Radiomics ML?

Radiomics ML fits situations like: auditing a radiomics; tabular clinical-ML prediction model with a classical learner (LASSO; XGBoost and similar).

How do I install Radiomics ML in Claude Code?

Run `npx skills add Aperivue/medsci-skills --skill radiomics-ml -a claude-code`. Or copy the skill folder (skills/radiomics-ml in Aperivue/medsci-skills) into .claude/skills/radiomics-ml in your project. Claude Code loads it when a task matches its description.

How do I install Radiomics ML in Codex?

Run `npx skills add Aperivue/medsci-skills --skill radiomics-ml -a codex`. Or copy the skill folder (skills/radiomics-ml in Aperivue/medsci-skills) into .agents/skills/radiomics-ml in your project. Codex loads it when a task matches its description.

Can I use Radiomics ML 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 Aperivue/medsci-skills --skill radiomics-ml -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/radiomics-ml, .gemini/skills/radiomics-ml, .github/skills/radiomics-ml and .opencode/skills/radiomics-ml in your project.

What does Radiomics ML need to run?

Going by SKILL.md and its folder, Radiomics ML needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3; A Bash shell.

Does Radiomics ML 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 Radiomics ML 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Radiomics ML use?

Radiomics ML 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 Radiomics ML 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. Its references folder adds about 2.9k tokens, read only when the agent opens those files.

What are the alternatives to Radiomics ML?

Skills that share tags, products or a category with Radiomics ML: Scikit Learn (zLanqing/codex-claude-academic-skills, 4.7k stars), Agentic Kaggle Workflow (FrankS-IntelLab/agentic-kaggle-skill, 188 stars), Senior Data Scientist (Raidriar7170/hermes-skilleval, 125 stars) and Geoml (italo-goncalves/geoML, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Radiomics ML?

Aperivue (a GitHub organization) maintains it in Aperivue/medsci-skills, which has 333 GitHub stars. The repository holds 54 skills in this directory. The repository was last updated on October 5, 2026.

Source: Aperivue/medsci-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.