xgboost

xgboost is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 45 tokens per session (1,467 once invoked), scanned A, original, MIT.

A machine-learning library that trains decision-tree models for structured tables, such as rows of business or measurement data. Gradient boosting builds trees in sequence, with each new tree correcting earlier errors.

In plain words
What is it for?
Use it to train models on tabular data, optionally using a compatible GPU, early stopping, or native categorical columns.
Why use it?
It provides an optimized approach for predicting from tabular data without having to build the training algorithm yourself.

Skill for Claude CodeCodex

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

Good fit Use it to train models on tabular data, optionally using a compatible GPU, early stopping, or native categorical columns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/xgboost
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 G1Joshi/Agent-Skills --skill xgboost
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/xgboost"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/xgboost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,467 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.
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.00045 $0.01467
Opus 5.5 $0.00018 $0.00587
Sonnet 5.5 $0.00009 $0.00293
Haiku 4.5 $0.00005 $0.00147

Measured 2mo ago against content hash 5892d45c85d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xgboost 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 2mo 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.

skills/ai-ml/xgboost/SKILL.md · 169 lines

How it starts

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

XGBoost

XGBoost is an optimized distributed gradient boosting library designed for high efficiency, speed, and predictive accuracy on tabular datasets.

When to Use

  • Tabular Data Competitions & Industry Production: High-performance gradient boosted decision trees for classification and regression.
  • GPU-Accelerated Tree Building: Training massive datasets on NVIDIA GPUs with tree_method="hist" and device="cuda".
  • Handling Missing Values & Sparsity: Automatic direction assignment for missing values without manual imputation.
  • Monotonic Feature Constraints: Enforcing domain-specific rules (e.g., higher credit score must never increase interest rate).

Quick Start

import xgboost as xgb
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split

X, y = make_classification(n_samples=1000, n_features=20, random_state=42)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)

# Scikit-learn compatible API with GPU histogram support
model = xgb.XGBClassifier(
    n_estimators=100,
    learning_rate=0.05,
    max_depth=6,
    tree_method="hist", # Ultra-fast histogram method
    device="cuda" if xgb.rabit.get_rank() >= 0 else "cpu"
)

model.fit(X_train, y_train)
accuracy = model.score(X_test, y_test)
print(f"XGBoost Test Accuracy: {accuracy:.4f}")

Core Concepts

High-Performance XGBClassifier with Early Stopping

Training XGBoost using Scikit-Learn API with GPU acceleration:

import xgboost as xgb
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score
import pandas as pd
import numpy as np

# Sample dataset
X = pd.DataFrame(np.random.randn(20000, 10), columns=[f"feat_{i}" for i in range(10)])
y = (X["feat_0"] + X["feat_1"] * 2 > 0.5).astype(int)

X_train, X_val, y_train, y_val = train_test_split(X, y, test_size=0.2, random_state=42)

# Configure modern XGBoost 2.x classifier
clf = xgb.XGBClassifier(
    n_estimators=1000,
    learning_rate=0.03,
    max_depth=6,
    subsample=0.8,
    colsample_bytree=0.8,
    tree_method="hist",
    device="cuda" if xgb.rabit.is_distributed() else "cpu",
    early_stopping_rounds=30,
    eval_metric="auc",
    random_state=42
)

clf.fit(
    X_train, y_train,
    eval_set=[(X_val, y_val)],
    verbose=50
)

preds = clf.predict_proba(X_val)[:, 1]
print(f"Validation AUC: {roc_auc_score(y_val, preds):.4f}")

Read the full file on GitHub · 169 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. 2mo ago Changed · +5 lines 5892d45c85d4
  2. 2mo ago Changed · +120 lines · +28 tokens per session 5fa79bba552c
  3. 3mo ago First seen · 44 lines · 17 tokens per session scan A b0d64d57f6ad

Subscribe to this mod's changes

xgboost is a skill published in the GitHub repository G1Joshi/Agent-Skills (16 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 1,467 once invoked, about $0.0002 per session on Opus 5.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

xgboost compared with skills from other repositories

xgboost next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xgboostG1Joshi/Agent-SkillsSkill162mo agoMITA45Claude Code, Codex
hallucination-preventionDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA38Claude Code, Codex
rag-and-memoryDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA36Claude Code, Codex
ai-opsborhen68/SkillEngineSkill175mo agoMITA50Claude Code
data-engineeringborhen68/SkillEngineSkill175mo agoMITA59Claude Code
using-agent-skillsaddyosmani/agent-skillsSkill122k9d agoMITA54Claude Code
context-engineeringaddyosmani/agent-skillsSkill122k9d agoMITA43Claude Code