xgb-modeling
Skill by aliyun
Trains XGBoost binary classification models on user-chosen feature sets and compares them with AUC, KS, BCR and Brier metrics. It is for analysts who have already finished feature analysis and want a baseline model. Hyperparameter tuning is handled by the separate xgb-tuning skill.
Install xgb-modeling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aliyun/qwen-dianjin /tmp/qwen-dianjin && mkdir -p ~/.claude/skills && cp -r /tmp/qwen-dianjin/DianJin-SKILLS/financial-engineering-expert/xgb-modeling ~/.claude/skills/xgb-modelingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aliyun/qwen-dianjin /tmp/qwen-dianjin && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/qwen-dianjin/DianJin-SKILLS/financial-engineering-expert/xgb-modeling ~/.gemini/antigravity-cli/skills/xgb-modelingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
xgb-modeling is an agent skill for building XGBoost binary classification models in Python. It loads parquet or csv data, splits it by time into train, validation and out-of-time (OOT) sets, and can either train on a feature list the user gives or run four automatic feature selection schemes (full, decorr, high_iv, stable) and compare them. Each candidate is scored with AUC, KS, BCR and Brier metrics, with Bootstrap confidence intervals and calibration curves.
The skill writes a markdown report, the model file, model metadata and a result.json manifest to an output folder. It also covers monthly stability analysis with Mann-Kendall trend tests and score PSI. The source says it is aimed at users who have completed feature analysis and need a baseline model. Hyperparameter tuning is left to the xgb-tuning skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Multi-scheme comparisonCompares several feature schemes and reports AUC, KS and gap side by side.
- Automatic feature selectionRuns the full, decorr, high_iv and stable schemes, or one chosen scheme.
- Fixed feature trainingTrains a model on a feature list the user specifies.
- Model evaluationReports AUC, KS, Gini, BCR at Top 5/10/20/30%, and Brier score.
- Calibration and confidence intervalsProduces calibration curves and Bootstrap 95% confidence intervals for monthly AUC and KS.
- Stability analysisRuns Mann-Kendall trend tests and computes score PSI over time.
- Model savingSaves the trained model, its metadata and a ModelCard to the output folder.
- Report generationWrites a markdown modeling report and a result.json file listing all outputs.
What you need
- Python environment
- xgboost, scikit-learn and optbinning packages (see requirements.txt)
- Data file in parquet or csv format
- Completed feature analysis with a chosen feature scheme
Try asking
- Train an XGBoost baseline on ./data/loans.parquet with target y_label.
- Compare two feature schemes and show the OOT AUC and KS for each.
- Save the best model and explain its stability over months.
Good to know
- Does not perform hyperparameter tuning; use xgb-tuning for that.
- Does not perform feature engineering.
- Target variable must be 0/1 binary.
- Bootstrap confidence intervals are only calculated when the sample has at least 100 rows.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: DianJin-SKILLS/financial-engineering-expert/xgb-modeling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to xgb-modeling
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
xgb-modeling: common questions
Does xgb-modeling tune hyperparameters?
No. The source says hyperparameter tuning is not done by this skill and points to xgb-tuning for that step.
How is it different from auto-experiment?
According to the source, xgb-modeling trains on the scheme the user specifies, while auto-experiment explores feature combinations on its own.
Which model type does it use?
It uses XGBoost for binary classification, with raw feature values fed directly into the model.
How do I install xgb-modeling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is xgb-modeling free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is xgb-modeling safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to xgb-modeling?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
