Kaggle

From eric861129/SKILLS_All-in-one · View interactive version

Kaggle is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. Unified Kaggle skill. Use when the user mentions kaggle, kaggle.com, Kaggle competitions, datasets, models, notebooks, GPUs, TPUs, badges, or anything Kaggle-related. Handles account setup, competition reports, dataset/model downloads, notebook execution, competition submissions, badge collection, a

How to use this skill

Skill file

Kaggle — Unified Skill

Complete Kaggle integration for any LLM or agentic coding system (Claude Code,

gemini-cli, Cursor, etc.): account setup, competition reports, dataset/model

downloads, notebook execution, competition submissions, badge collection, and

general Kaggle questions. Four integrated modules working together.

Overlap guard: For hackathon grading evaluation and alignment analysis,

use the kaggle-hackathon-grading skill instead.

Network requirements: outbound HTTPS to api.kaggle.com, www.kaggle.com,

and storage.googleapis.com.

Modules

| Module | Purpose |

|--------|---------|

| registration | Account creation, API key generation, credential storage |

| comp-report | Competition landscape reports with Playwright scraping |

| kllm | Core Kaggle interaction (kagglehub, CLI, MCP, UI) |

| badge-collector | Systematic badge earning across 5 phases |

Credential Setup

Always run the credential checker first:

python3 skills/kaggle/shared/check_all_credentials.py

Three credential types are needed for full compatibility:

| Variable | Format | Purpose |

|----------|--------|---------|

| KAGGLE_USERNAME | Kaggle handle | Identity for all tools |

| KAGGLE_KEY | 32-char hex | Legacy key (CLI, kagglehub, most MCP) |

| KAGGLE_API_TOKEN | KGAT_-prefixed | Scoped token (some MCP endpoints) |

If any are missing, follow the registration walkthrough:

Read modules/registration/README.md for the full step-by-step guide.

Security: Never echo, log, or commit actual credential values.

Module: Registration

Walks users through creating a Kaggle account and generating all three API

credentials. Saves to .env and ~/.kaggle/kaggle.json.

Key commands:

python3 skills/kaggle/modules/registration/scripts/check_registration.py
bash skills/kaggle/modules/registration/scripts/setup_env.sh

Read modules/registration/README.md for the complete walkthrough.

Module: Competition Reports

Generates comprehensive landscape reports of recent Kaggle competition activity.

Uses Python API for metadata + Playwright MCP tools for SPA content.

6-step workflow:

  1. Verify credentials
  2. Gather competition list across all categories
  3. Get structured details per competition (files, leaderboard, kernels)
  4. Scrape problem statements, evaluation metrics, writeups via Playwright
  5. Compose markdown report with Methods & Insights analysis
  6. Present inline
python3 skills/kaggle/modules/comp-report/scripts/list_competitions.py --lookback-days 30 --output json
python3 skills/kaggle/modules/comp-report/scripts/competition_details.py --slug SLUG

Read modules/comp-report/README.md for full details including hackathon handling.

Module: Kaggle Interaction (kllm)

Four methods to interact with kaggle.com:

| Method | Best For |

|--------|----------|

| kagglehub | Quick dataset/model download in Python |

| kaggle-cli | Full workflow scripting |

| MCP Server | AI agent integration |

| Kaggle UI | Account setup, verification |

Capability matrix:

| Task | kagglehub | kaggle-cli | MCP | UI |

|------|-----------|------------|-----|-----|

| Download dataset | dataset_download() | datasets download | Yes | Yes |

| Download model | model_download() | models instances versions download | Yes | Yes |

| Execute notebook | — | kernels push/status/output | Yes | Yes |

| Submit to competition | — | competitions submit | Yes | Yes |

| Publish dataset | dataset_upload() | datasets create | Yes | Yes |

| Publish model | model_upload() | models create | Yes | Yes |

Known issues:

Read modules/kllm/README.md for full details and all task workflows.

Module: Badge Collector

Systematically earns ~38 automatable Kaggle badges across 5 phases:

| Phase | Name | Badges | Time |

|-------|------|--------|------|

| 1 | Instant API | ~16 | 5-10 min |

| 2 | Competition | ~7 | 10-15 min |

| 3 | Pipeline | ~3 | 15-30 min |

| 4 | Browser | ~8 | 5-10 min |

| 5 | Streaks | ~4 | Setup only |

python3 skills/kaggle/modules/badge-collector/scripts/orchestrator.py --dry-run
python3 skills/kaggle/modules/badge-collector/scripts/orchestrator.py --phase 1
python3 skills/kaggle/modules/badge-collector/scripts/orchestrator.py --status

Read modules/badge-collector/README.md for full details.

Orchestration Workflow

This skill is primarily a reference — use the modules and scripts as needed

based on the user's request. When explicitly asked to run the **full Kaggle

workflow**, follow these steps:

Step 1: Check Credentials

python3 skills/kaggle/shared/check_all_credentials.py

If any credentials are missing, walk through the registration module. **Never

echo or log actual credential values.**

Step 2: Generate Competition Landscape Report

Run the comp-report workflow: list competitions, get details, scrape with

Playwright, compose report. Output inline.

Step 3: Summarize Kaggle Interaction Methods

Present a concise summary of the four ways to interact with Kaggle (kagglehub,

kaggle-cli, MCP Server, UI) with the capability matrix from the kllm module.

Step 4: Present Interactive Menu

Ask the user what they'd like to do next:

Step 5: Execute and Continue

Handle the user's choice using the appropriate module, then loop back to offer

more options.

Security

https://www.kaggle.com/settings

Scope of Operations

This skill performs both read-only and write operations on kaggle.com.

Read-only operations (no account side-effects):

Write operations (create or modify resources on your account):

Phase 5 (Streaks) generates a local shell script for daily execution but

does not auto-install cron jobs or launchd plists. Users must manually

configure scheduling if desired.

Scripts Index

Shared:

Registration:

Competition Reports:

Kaggle Interaction (kllm):

Badge Collector:

References Index

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.