submit-competition
Skill2 starsChanged 7 months agoMITView on GitHub
Submit a file to a Kaggle competition with pre-flight validation and post-submit logging. Use when the user says "submit", "send submission", "push to kaggle", or "make a submission".
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- capture-learningSkill
- debug-agentSkill
- eda-auditSkill
- ensemble-blendSkill
- improve-agentSkill
- leaderboard-checkSkill
- log-experimentSkill
- new-competitionSkill
- post-submission-reviewSkill
- preflight-consultSkill
- recall-learningsSkill
- retrospect-sessionSkill
- run-local-evalSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Always run the local evaluator first: if one exists for the competition.
- Distinctive: line 17
Identify submission artifact: Must be one of:
- Very specific: line 47
MCP alternative: when natural-language flow preferred: mcp_kaggle_start_competition_submission_upload → kaggle_mcp_submit_to_competition.
- Distinctive: line 91
If score improved, suggest: "commit model artifacts?
- Distinctive: line 92
If score regressed, suggest: "diff against last best submission — what changed?"
- Distinctive: line 93
Never auto-tag, auto-commit, or auto-push.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Submitting to a Kaggle Competition
Hard rules
- Never submit without explicit user confirmation. Submissions burn daily quota.
- Never submit uncommitted code unless user accepts the risk. Offer to commit first.
- Always run the local evaluator first if one exists for the competition.
Required steps
- Locate competition folder. Expect cwd to be
competitions/<slug>/or user specifies slug. - Identify submission artifact. Must be one of:
submission.csv/submission.zipfor tabularagent.py/main.pyfor simulation- Notebook slug for notebook-based competitions
- Pre-flight checks:
- File exists and non-empty.
- For CSVs: header matches
sample_submission.csv, row count sane. - For agents: imports resolve (
python3 -c "import agent"). - Git status clean (warn if dirty).
- Check daily quota:
kaggle competitions submissions <slug>and count today's submissions. Compare against known limit fromCLAUDE.md. - Confirm with user:
- Show file path, size, detected format.
- Show submission message (ask user for one; default: first line of latest git commit).
- Show today's quota usage (N of M submitted).
- Require explicit "yes" before running submit.
- Submit. Preferred: use the shared Python helper which handles archival + LOG in one call:
Or call the CLI directly (two forms, slug is positional in CLI ≥ 2.0.0):# from workspace root python3 shared/utils/submit.py <slug> <file> "<message>"- Standard (CSV/file submission):
kaggle competitions submit <slug> -f <file> -m "<message>" - Code competition (notebook-based):
Flags:kaggle competitions submit <slug> -k <username>/<notebook-slug> -v <version> -f <output-filename> -m "<message>"-kkernel ref ·-vkernel version (int) ·-fname of the file the notebook produces. - MCP alternative when natural-language flow preferred:
mcp_kaggle_start_competition_submission_upload→kaggle_mcp_submit_to_competition; for notebook-based:create_code_competition_submission.
- Standard (CSV/file submission):
- Poll status (scoring takes seconds to minutes):
kaggle competitions submissions <slug> --page-size 5 - Log to
submissions/LOG.md— append row with: date (UTC), file, message, public score, notes. - Copy the submission file into
submissions/YYYY-MM-DD_HHMM_<short-msg>.<ext>for archival. - Report public score and delta vs. previous best.
Notebook-based (code) competitions — end-to-end CLI flow
- Pull local copy of notebook:
kaggle kernels pull <username>/<notebook-slug> -m -p notebooks/<slug> - Edit the
.ipynb(or.py) andkernel-metadata.json. Ensurecompetition_sourcesreferences the competition. - Push to Kaggle and trigger a run:
Optional:kaggle kernels push -p notebooks/<slug>--accelerator NvidiaTeslaT4and--timeout <sec>. - Wait for run to finish:
Block untilkaggle kernels status <username>/<notebook-slug>complete. Abort onerror. - Inspect outputs:
kaggle kernels output <username>/<notebook-slug> -p notebooks/<slug>/out/ -o - Submit the notebook run:
kaggle competitions submit <slug> -k <username>/<notebook-slug> -v <version> -f submission.csv -m "<message>"
Failure modes
- 403 Forbidden → user hasn't accepted competition rules. Open competition page.
- Invalid submission format → compare against
sample_submission.csv; usually a column order or dtype mismatch. - Quota exceeded → stop; tell user the wait until reset (midnight UTC).
- Agent timeout → local eval should have caught this. Tighten time budget before retry.
Post-submit
- If score improved, suggest: "commit model artifacts? tag as best-so-far?"
- If score regressed, suggest: "diff against last best submission — what changed?"
- Never auto-tag, auto-commit, or auto-push. User drives.
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
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.

