agentleFS
fmindfmind/dotfiles/skills/kaggle/SKILL.md

kaggle

Skill13 starsChanged 4 days agoMITView on GitHub

Operate Kaggle competitions, datasets, kernels, and submissions.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use kaggle for competition, dataset, kernel, and model operations from the shell.

    line 15
  2. Very specific:

    Read before writing: use bounded list/file commands and kaggle competitions submission-limits <slug> --json to inspect available data and …

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Kaggle CLI

Use kaggle for competition, dataset, kernel, and model operations from the shell. The official Kaggle skills document every command and metadata file; this skill owns authentication, download scope, and the authority boundary around submissions and publications.

Workflow

  1. Resolve the account: kaggle auth login (OAuth) or KAGGLE_API_TOKEN in the environment; the legacy ~/.kaggle/kaggle.json still works. Never run kaggle auth print-access-token during ordinary work.
  2. Read before writing: use bounded list/file commands and kaggle competitions submission-limits <slug> --json to inspect available data and submission limits. Read the competition's current rules separately with kaggle competitions pages list list <slug> --content --page-name rules (the repeated list is required by the CLI parser); these calls do not authorize accepting them.
  3. Download into an ignored directory: accept the competition rules on the website first (the CLI returns 403 otherwise).

    kaggle competitions download <slug> -p data/ --unzip
    kaggle datasets download <owner>/<name> -p data/ --unzip
  4. Track the timeline: after accepting rules, list the page names with kaggle competitions pages list list <slug>, then read the deadlines with --page-name timeline (or description when no timeline page exists). Offer, or schedule when requested, Google Calendar reminders with gws: one week before the entry and team merger deadline, and on the final submission day.
  5. Inspect kernels before pushing: kaggle kernels init -p <dir> writes kernel-metadata.json. Before an authorized kaggle kernels push -p <dir>, inspect the upload directory, target ID, data sources, is_private, accelerator, internet access, and run timeout (--accelerator overrides the metadata's GPU/TPU settings, -t sets the run timeout): pushing uploads code and starts remote execution unless --no-run saves the version without running it. Keep is_private: true unless public release was explicitly requested, and inspect kaggle quota before accelerator use. Verify with kaggle kernels status <owner>/<slug> and retrieve artifacts with kaggle kernels output <owner>/<slug> -p out/.
  6. Submit with authority: a submission counts against the daily limit and shows on the leaderboard, so confirm the competition, file, and message first. --wait <seconds> polls until scoring finishes and exits non-zero on a scoring error or timeout, though the submission still counts; otherwise look up the printed ref with kaggle competitions submission <ref>.

    kaggle competitions submit <slug> -f submission.csv -m "<message>" --wait 900
    kaggle competitions submissions <slug> --format json --page-size 5
  7. Publish with authority: kaggle datasets create -p <dir> creates a private dataset unless --public is explicitly authorized. kaggle datasets version -p <dir> -m "<message>" updates an existing dataset and retains its visibility; it has no --public flag, and its -d/--delete-old-versions deletes the dataset's history, so pass it only when that deletion was requested. Verify the target dataset's current visibility before uploading a version, and confirm the license and intended audience before either operation.

Gotchas

  • Use uv run for pinned versions: in a project that pins kaggle, call uv run kaggle so the pinned version runs instead of the global shim.
  • Version warnings can reach stdout: -W applies only after import-time authentication, which can already print the out-of-date warning; keep kaggle current and drop leading Warning: lines before parsing JSON.

Official Skills

Upstream: Kaggle/kaggle-cli for command guidance and Kaggle/kaggle-skills for hackathon judging, agent exams, and Kaggle Benchmarks authoring. Follow the shared vendor-skill policy and install only the source relevant to the task.

Documentation

  • Kaggle CLI · Kaggle API
  • Releases: Kaggle CLI
  • Companion skills: gws (calendar reminders), python-stack (project layout), duckdb (inspect downloads), hf (Hub models and datasets), colab (rented accelerators).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.