Kaggle-first end-to-end competition workflow for scored submissions. Use when Codex must run Kaggle or competitive ML workflows through scored submission, including code competitions, validation, metrics, policy-safe public notebook/discussion intel, tabular/text/image modeling, tuning, ensembling/stacking, proactive multi-notebook architectures, producer notebooks that train models and export private Kaggle artifact datasets, downstream consumer notebooks, Kaggle GPU offload, kagglehub access, hidden-test debugging, and public score retrieval.
Treat every competition as a validation problem first and a modeling problem second. The default target platform is Kaggle, so prefer Kaggle-native notebooks/scripts, datasets, model artifacts, competition submissions, and score receipts. For code competitions, assume the final notebook/kernel will be rerun by Kaggle against hidden data unless the competition docs prove otherwise.
/kaggle/input/....references/method-map.md for the neutral workflow map behind the skill.references/information-sharing-policy.md before publishing competition code, notebooks, datasets, models, artifacts, or reports outside the active team or workspace.references/competition-intel.md when a Kaggle competition slug, URL, title, public leaderboard context, open solutions, or discussion activity may inform the approach.references/cross-validation-and-metrics.md when choosing folds, metrics, thresholds, or leakage checks.references/tabular-workflow.md for categorical variables, feature engineering, selection, and hyperparameter tuning.references/image-text-workflow.md for image, segmentation, and NLP competition approaches.references/kaggle-code-competition-pipeline.md when the target is a Kaggle code competition, hidden rerun, final notebook scoring flow, or model artifact handoff between producer and consumer notebooks.references/advanced-notebook-architecture.md when a stronger solution may need multiple model families, staged feature/embedding/model producers, pseudo-labeling, distillation, postprocessing, blending, stacking, or parallel Kaggle GPU notebooks.references/kaggle-offload.md when local runs are heavy, GPU is useful, Kaggle data access is needed, or remote notebook results must be collected.references/kaggle-pipeline-datasets.md when using multiple Kaggle notebooks, intermediate datasets, notebook output sources, or kagglehub.references/submission-endgame.md before stopping work; this skill is not done until Kaggle scoring has been attempted and the result has been collected or a concrete blocker is documented.references/code-competition-debugging.md when a Kaggle code competition submission fails, times out, OOMs, produces no score, or reports a vague hidden-run/scoring error.references/ensembling-and-reproducibility.md for project layout, OOF artifacts, stacking, blending, and repeatability.references/research/ or examples/ only when the user asks for historical case studies, Hermes-era patterns, or concrete competition lessons from this repository.scripts/scaffold_competition.py to create a competition workspace.scripts/make_folds.py to add a fold column to a training CSV.scripts/prepare_kaggle_kernel.py to create a Kaggle kernel folder with metadata and retrievable experiment logs.scripts/prepare_kaggle_dataset.py to create metadata and commands for versioned intermediate artifact datasets.Start with the metric and validation:
kaggle-competition-intel MCP tools when available: top_open_solutions for score-ranked plus latest high-vote notebooks, and competition_discussions for top-voted plus recently active discussion topics before choosing expensive baselines.Then build baselines in this order:
Do not wait for the user to explicitly ask for sophistication when the competition warrants it. After a stable baseline, propose and execute a stronger staged architecture if public solutions, discussion intel, data modality, metric pressure, or CV plateau suggests that a single notebook/model will underperform. Keep the architecture gated by OOF evidence, artifact manifests, and final Kaggle scoring.
When a run is likely to exceed local RAM/VRAM, require a GPU/TPU, or needs Kaggle-only data mounts, prepare a Kaggle kernel run instead of forcing it locally. The remote run must emit experiment_log.json, metrics.jsonl, and an artifact manifest so results can be retrieved and interpreted after kaggle kernels output.
When the solution has multiple heavy stages, keep the remote graph shallow and inspectable:
/kaggle/input/..., and perform hidden-test-safe inference.kernel_sources only for short-lived chains where durability/versioning is unnecessary.kagglehub inside Python when it is more convenient to download datasets, competition files, notebook outputs, or upload dataset versions programmatically.Do not stop at a plan, scaffold, trained model, notebook run, downloaded output, or local validation score. Continue until one of these is true:
Use this quick mapping:
StratifiedKFold.KFold for ordinary targets, binned stratified folds for skewed or multimodal targets.GroupKFold or stratified group splitting.Create a competition skeleton:
python3 <skill-dir>/scripts/scaffold_competition.py --root .
Create stratified folds:
python3 <skill-dir>/scripts/make_folds.py \
--input input/train.csv \
--output input/train_folds.csv \
--target target \
--strategy stratified \
--n-splits 5
Create grouped folds:
python3 <skill-dir>/scripts/make_folds.py \
--input input/train.csv \
--output input/train_folds.csv \
--target target \
--group-col patient_id \
--strategy group
Prepare a Kaggle GPU kernel experiment folder:
python3 <skill-dir>/scripts/prepare_kaggle_kernel.py \
--output kaggle_kernels/exp_lgbm_gpu \
--username kaggle-user \
--slug exp-lgbm-gpu \
--title "exp lgbm gpu" \
--competition playground-series-sample \
--accelerator NvidiaTeslaT4
Prepare a private Kaggle dataset folder for intermediate artifacts:
python3 <skill-dir>/scripts/prepare_kaggle_dataset.py \
--output kaggle_datasets/exp_features_v1 \
--username kaggle-user \
--slug exp-features-v1 \
--title "exp features v1" \
--description "OOF-safe feature artifacts for experiment exp_features_v1"
Prepare a private Kaggle dataset folder for trained model artifacts:
python3 <skill-dir>/scripts/prepare_kaggle_dataset.py \
--output kaggle_datasets/exp_model_v1 \
--username kaggle-user \
--slug exp-model-v1 \
--title "exp model v1" \
--description "Trained model artifacts for experiment exp_model_v1" \
--artifact-kind model
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/agentic-kaggle-skill · pinned to the source commit
# Run from your project root
git clone https://github.com/FrankS-IntelLab/agentic-kaggle-skill.git .skillboard-tmp
git -C .skillboard-tmp checkout f07e4fa5434807fb4ca5bb8090800793020e9e2c
mkdir -p ".claude/skills"
rm -rf ".skillboard-tmp/.git"
cp -r ".skillboard-tmp" ".claude/skills/agentic-kaggle-skill"
rm -rf .skillboard-tmpReview the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
sudo apt update && sudo apt install -y gitnpm install -g @anthropic-ai/claude-code# Run from your project root
git clone https://github.com/FrankS-IntelLab/agentic-kaggle-skill.git .skillboard-tmp
git -C .skillboard-tmp checkout f07e4fa5434807fb4ca5bb8090800793020e9e2c
mkdir -p ".claude/skills"
rm -rf ".skillboard-tmp/.git"
cp -r ".skillboard-tmp" ".claude/skills/agentic-kaggle-skill"
rm -rf .skillboard-tmpDestination: .claude/skills/agentic-kaggle-skill
Scanner static-checks@0.1.0 · commit f07e4fa54348. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.