agentleFS
subarnasaikiasubarnasaikia/kaggle-skills/.claude/skills/run-local-eval/SKILL.md

run-local-eval

Skill2 starsChanged 6 months agoMITView on GitHub

Run the local kaggle-environments evaluation harness for a simulation/agent competition. Use when the user says "local eval", "test agent", "run simulation", "self-play", or before submitting an agent.

  • Installs packages

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any agent submission.

    line 10
  2. Very specific:

    Locate competition folder: Must have agents/ directory and be a kaggle-environments-compatible competition.

    line 14
  3. Very specific:

    Identify agents under test: Default: latest versioned agent in agents/, pitted against agents/baseline/agent.py if present, else self-play.

    line 15
  4. Very specific:

    Install kaggle-environments: if missing in the competition's venv:

    line 16
  5. Distinctive:

    Do not skip local eval before submission.

    line 54
  6. Distinctive:

    Do not claim "passed" based on a single match — noise dominates in few-match samples.

    line 55
  7. Distinctive:

    Do not run matches without capturing replays.

    line 56
  8. Very specific:

    Do not run eval in the workspace root.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

Running Local Evaluation for Agent Competitions

When to use

Before any agent submission. Catches timeouts, invalid moves, crashes, and regressions that would waste a daily submission slot.

Steps

  1. Locate competition folder. Must have agents/ directory and be a kaggle-environments-compatible competition.
  2. Identify agents under test. Default: latest versioned agent in agents/, pitted against agents/baseline/agent.py if present, else self-play.
  3. Install kaggle-environments if missing in the competition's venv:
    uv pip install kaggle-environments
  4. Run match:
    from kaggle_environments import make
    env = make('<slug>', debug=True)
    result = env.run(['agents/<a>/agent.py', 'agents/<b>/agent.py'])
  5. Capture metrics:
    • Winner (2-player) or ranking (multi-player)
    • Turn count
    • Max per-turn time (ms) for each agent
    • Any error messages in the replay
  6. Validate against competition constraints (read from competitions/<slug>/CLAUDE.md):
    • Per-turn time budget — flag any turn > 80% of budget.
    • Action space — log invalid actions.
    • Agent stdout/stderr spam — flag anything printed (kaggle-environments may capture or discard it).
  7. Save replay to competitions/<slug>/replays/<timestamp>_<a>_vs_<b>.json for post-mortem.
  8. Run N matches for statistical signal (default N=10 unless user overrides):
    • Report win rate, mean turn count, max turn time distribution.
  9. Report a compact summary to user.

Output format

Local Eval: <a> vs <b>
  Matches: 10
  Wins: 7 / 3
  Avg turns: 124
  Max move time: 340ms (budget 500ms) — OK
  Invalid moves: 0
  Errors: 0

Do NOT

  • Do not skip local eval before submission.
  • Do not claim "passed" based on a single match — noise dominates in few-match samples.
  • Do not run matches without capturing replays; debugging later needs them.
  • Do not run eval in the workspace root; always activate the competition's .venv first.

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.

Reviews can't be read right now.

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.