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".
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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".
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.zip for tabular
agent.py / main.py for 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 from CLAUDE.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:
# from workspace root
python3 shared/utils/submit.py <slug> <file> "<message>"
Or call the CLI directly (two forms, slug is positional in CLI ≥ 2.0.0):
Flags: -k kernel ref · -v kernel version (int) · -f name 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.