xgboost-analysis

xgboost-analysis is a skill for Claude Code, Codex from aipoch/medical-research-skills. It costs 50 tokens per session (1,920 once invoked), scanned A, original, MIT.

A command-line R workflow for training XGBoost models on tabular data, meaning data arranged in rows and columns. It supports binary classification, which chooses between two outcomes, and regression, which predicts a number.

In plain words
What is it for?
Use it with CSV, TXT, or TSV datasets to build a binary classifier or regression model and export performance tables, feature-importance rankings, and PNG charts. It is not for multi-class classification, causal claims, or explaining an existing result without retraining.
Why use it?
It provides a repeatable way to split data, train a model, evaluate it, and identify which input columns contributed most to predictions. It also handles categorical columns by converting them into model-ready indicators.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with CSV, TXT, or TSV datasets to build a binary classifier or regression model and export performance tables, feature-importance rankings, and PNG charts. It is not for multi-class classification, causal claims, or explaining an existing result without retraining.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aipoch/medical-research-skills/xgboost-analysis
About the project

Medical Research Agent Skills is a library of agent instructions for medical and biomedical research, covering evidence analysis, study protocol design, data analysis, and academic writing. Researchers use it to guide compatible coding agents through common scientific workflows. The catalogue contains many of the library's skills and commands.

aipoch/medical-research-skills · 1,860 stars · on GitHub · aipoch.com

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 aipoch/medical-research-skills --skill xgboost-analysis
Clone the repo
git clone --depth 1 https://github.com/aipoch/medical-research-skills

Made for: Claude Code, Codex.

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 xgboost-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/aipoch/medical-research-skills/xgboost-analysis/github.svg)](https://agentmods.dev/skills/aipoch/medical-research-skills/xgboost-analysis)
Your own site
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/xgboost-analysis"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/xgboost-analysis/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 xgboost-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/aipoch/medical-research-skills/xgboost-analysis"><img src="https://agentmods.dev/badge/skills/aipoch/medical-research-skills/xgboost-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,920 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.00050 $0.01920
Opus 5 $0.00025 $0.00960
Sonnet 5 $0.00010 $0.00384
Haiku 4.5 $0.00005 $0.00192

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

Security

Grade A, and why

xgboost-analysis 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 12d 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.

awesome-med-research-skills/Data Analysis/XGBoost-analysis/SKILL.md · 210 lines

How it starts

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

Source: https://github.com/aipoch/medical-research-skills

XGBoost Modeling And Feature Importance Ranking

Use this skill to train an XGBoost model from a tabular dataset and export both feature importance ranking tables and feature importance plots.

Use This Skill When

  • You need a command-line XGBoost workflow in R for tabular data.
  • You need a reproducible train-test split, model training, and evaluation.
  • You need feature importance ranking outputs as both a table and a figure.
  • You need automatic one-hot encoding for categorical predictors.
  • Your data may contain a first unnamed sample ID column such as V1 that should not enter the model.

Do Not Use This Skill When

  • Your classification target has more than 2 classes.
  • Your input is not tabular CSV, TXT, or TSV data.
  • You need causal interpretation, mechanism claims, or policy, business, or clinical conclusions.
  • You only need narrative interpretation or triage of an existing result rather than model training.

Primary Command

Rscript scripts/main.R \
  --data_file <input_file> \
  --target_var <target_column> \
  --task_type <auto|classification|regression> \
  --output_dir <output_dir>

Prerequisites

  • Rscript is available in the shell.
  • Required R packages: optparse, data.table, Matrix, xgboost.
  • Install missing packages with Rscript -e 'install.packages(c("optparse", "data.table", "Matrix", "xgboost"), repos="https://cloud.r-project.org")'.

Core Arguments

Argument Required Description
--data_file Yes Input CSV, TXT, or TSV file
--target_var Yes Target column used for modeling
--task_type No auto, classification, or regression. Default auto
--output_dir No Output directory, default ./XGBoost_Results
--ignore_vars No Comma-separated columns to exclude from predictors
--positive_class No Positive class label for binary classification
--test_size No Test set proportion between 0 and 1, default 0.2
--seed No Random seed, default 123
--nrounds No Maximum boosting rounds, default 300
--max_depth No Tree depth, default 6
--eta No Learning rate, default 0.1
--subsample No Row sampling ratio, default 0.8
--colsample_bytree No Column sampling ratio, default 0.8
--min_child_weight No Minimum child weight, default 1
--gamma No Minimum split loss reduction, default 0
--lambda No L2 regularization, default 1
--alpha No L1 regularization, default 0
--early_stopping_rounds No Early stopping rounds, default 20
--importance_metric No gain, cover, or frequency. Default gain
--top_n No Number of features to plot, default 20
--output_format No Table format: csv or txt, default csv
--output_prefix No Output filename prefix, default xgboost

Read the full file on GitHub · 210 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. 12d ago First seen · 210 lines · 50 tokens per session scan A 82b2c924c184

Subscribe to this mod's changes

xgboost-analysis is a skill published in the GitHub repository aipoch/medical-research-skills (1,860 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 1,920 once invoked, about $0.0003 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