--- name: nvidia-kaggle-skill description: "Use for Kaggle competition overview fetches, writeups, discussion/kernel research, submissions, and dataset uploads. Not for unrelated ML code." license: MIT permissions: - "shell: run the bundled scripts/, the Kaggle CLI (kaggle), basic file utilities (mkdir, cd, cp), and install runtime Python packages" - "network: HTTPS to Kaggle APIs (kaggle.com, api.kaggle.com) and PyPI" - "env: read environment variables, including KAGGLE_API_TOKEN, and load a project .env file" - "file_read: read the project .env, inputs under the skill workspace, and user-specified paths" - "file_write: write reports, caches, and downloads under the skill workspace and user-specified paths" metadata: short-description: "Kaggle competition workflows" author: "nvidia-kaggle maintainers" tags: - kaggle - competition - data-science - kernels --- # NVIDIA Kaggle Skill ## Purpose Use this skill for Kaggle competition work: context gathering, writeups, discussions, kernels, local reproduction, submission, and dataset upload. Do not use it for unrelated ML training, generic notebook editing, general data analysis, or non-Kaggle dataset management unless the user explicitly ties the task to Kaggle. ## Inputs | Input | Required | Description | |---|---|---| | Kaggle slug, URL, writeup URL, kernel ref, or local folder | Depends on task | Primary target for the requested Kaggle action. | | `KAGGLE_API_TOKEN` | Required for API/CLI-backed workflows | KGAT token string for Kaggle API, CLI, and SDK calls. | | Disk space | Required for kernel setup | Must fit input datasets, competition data, models, and extracted archives. | ## Prerequisites - Run commands from this skill directory unless a referenced workflow says otherwise. - Install only the runtime packages needed for the requested workflow. - Set `KAGGLE_API_TOKEN` before API, CLI, kernel, discussion, dataset, or submission workflows. - Confirm local disk space before downloading competition data, kernel inputs, or extracted archives. - Require explicit user confirmation before sensitive, externally visible actions: competition submissions (each can consume a daily slot), dataset uploads, and creating a public dataset. Treat `KAGGLE_API_TOKEN` as a secret — never print, log, or echo it. ## Runtime Dependencies Install only the packages needed for the requested task into the current environment, then run scripts with `python`. Kaggle API, CLI, kernels, discussions, datasets, competition pages, and writeups: ```bash if command -v uv >/dev/null 2>&1; then uv pip install httpx kaggle kagglesdk nbformat pydantic python-dotenv rich else python -m pip install httpx kaggle kagglesdk nbformat pydantic python-dotenv rich fi ``` For API/CLI tasks, verify credentials before calling Kaggle: ```bash : "${KAGGLE_API_TOKEN:?ERROR: KAGGLE_API_TOKEN environment variable is not set}" ``` ## Workflows Use this workflow catalog to choose the right path. Run the direct script commands for quick tasks. For workflows that point to another markdown file, read that file only when the request needs that workflow. Prefer the runtime's `run_script` helper when it exists, for example `run_script("scripts/fetch_competition_info.py", args=["titanic"])`. Otherwise run the equivalent `python ./scripts/