shepsci/kaggle-skill
Complete Kaggle integration skill for AI coding agents — account setup, competition reports, dataset/model downloads, notebook execution, submissions, and badge collection. Works with Claude Code, Gemini CLI, Cursor, Codex, and 35+ agents via skills.sh.
kaggle-skill
An agent skill for everything Kaggle: account setup, competition landscape reports, dataset/model downloads, notebook execution, competition submissions, badge collection, and general Kaggle questions.
Works with any AI coding agent that supports the SKILL format — including Claude Code, OpenClaw, Gemini CLI, Cursor, Codex, and 35+ more agents via skills.sh.
Available On
| Platform | Link | Install Command |
|---|---|---|
| skills.sh | skills.sh/shepsci/kaggle-skill | npx skills add shepsci/kaggle-skill |
| ClawHub | clawhub.ai/skills/kaggle | clawhub install kaggle |
| Claude Code Marketplace | Kaggle Skill Plugin | /plugin install kaggle-skill |
Modules
- Registration — Account creation, API token generation, credential storage
- Competition Reports — Landscape reports with API + Playwright scraping
- Kaggle Interaction (kllm) — kagglehub, kaggle-cli, MCP Server, UI workflows
- Badge Collector — Systematic badge earning across 5 phases (~38 automatable)
Installation
Via skills.sh (all agents)
Installs to Claude Code, OpenClaw, Codex, Cursor, Gemini CLI, and 35+ other agents:
npx skills add shepsci/kaggle-skillVia ClawHub (OpenClaw)
clawhub install kaggleVia Claude Code Plugin Marketplace
/plugin install kaggle-skillOr load directly from a local clone:
claude --plugin-dir /path/to/kaggle-skillManual
git clone https://github.com/shepsci/kaggle-skill.git
pip install kagglehub kaggle python-dotenv requestsThen copy skills/kaggle/ into your agent's skills directory.
Prerequisites
- Python 3.9+
pip install kagglehub kaggle python-dotenv requests- Kaggle API token (the skill walks you through setup)
- Optional: Playwright for browser badges and competition report scraping
Credential Setup
- Go to kaggle.com/settings
- Under API Tokens (Recommended), click Generate New Token
- Save the token:
mkdir -p ~/.kaggle
echo 'YOUR_TOKEN' > ~/.kaggle/access_token
chmod 600 ~/.kaggle/access_tokenOr set the environment variable:
export KAGGLE_API_TOKEN=YOUR_TOKENLegacy credentials (~/.kaggle/kaggle.json) are also supported. Run the credential checker for details:
python3 shared/check_all_credentials.pyUsage
Once installed, your agent automatically detects the skill when you mention anything Kaggle-related:
- "Set up my Kaggle credentials"
- "Generate a Kaggle competition report"
- "Download the Titanic dataset"
- "Earn Kaggle badges"
- "Enter a Kaggle competition"
- "What competitions are running right now?"
Bundled MCP Server (Claude Code)
When installed as a Claude Code plugin, this skill includes a .mcp.json that configures the official Kaggle MCP server, giving direct access to 40+ Kaggle tools:
- Searching and listing competitions, datasets, models, notebooks
- Downloading competition data and datasets
- Submitting predictions to competitions
- Pushing and executing notebooks on Kaggle Kernels
- Publishing datasets and models
The MCP server requires KAGGLE_API_TOKEN to be set.
Security
- No automatic persistence: No cron jobs or launchd plists are auto-installed
- No dynamic code execution: All imports are explicit and static (no
__import__(),eval(),exec()) - Untrusted content handling: Scraped content is wrapped in
<untrusted-content>boundary markers - Credentials stored in
~/.kaggle/access_token(chmod 600) — never logged or echoed
Project Structure
kaggle-skill/
├── .claude-plugin/plugin.json # Claude Code plugin manifest
├── .mcp.json # Bundled Kaggle MCP server (Claude Code)
├── PRIVACY.md # Privacy policy
├── skills/kaggle/
│ ├── SKILL.md # Main skill definition (all agents)
│ ├── shared/ # Unified credential checker
│ └── modules/
│ ├── registration/ # Account & credential setup
│ ├── comp-report/ # Competition landscape reports
│ ├── kllm/ # Core Kaggle interaction
│ └── badge-collector/ # Badge earning automation
└── README.md
Compatibility
| Platform | Status |
|---|---|
| Claude Code (CLI, VS Code, JetBrains, Desktop) | Tested |
| OpenClaw | Tested |
| Codex | Compatible |
| Gemini CLI | Compatible |
| Cursor | Compatible |
| GitHub Copilot | Compatible |
| Cline | Compatible |
| Amp | Compatible |
| 35+ agents via skills.sh | Compatible |
Network requirements: outbound HTTPS to api.kaggle.com, www.kaggle.com, and storage.googleapis.com.
License
MIT — see LICENSE
Privacy
See PRIVACY.md — this skill collects no data. All credentials and processing remain local.