reproducible-ml

reproducible-ml is a skill for Claude Code, Codex from param087/agent-ml-skills. It costs 54 tokens per session (704 once invoked), scanned A, original, MIT.

A guide for making machine-learning experiments reproducible, meaning the same code, data, and settings can recreate the same result. It covers random seeds, software environments, and data versions across common Python and GPU tools.

In plain words
What is it for?
Use it when setting up ML projects, fixing inconsistent runs, preparing research code, or recording exact Python, CUDA, library, and dataset versions.
Why use it?
It helps explain changing results, compare experiments fairly, debug regressions, and let other people repeat research or audits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when setting up ML projects, fixing inconsistent runs, preparing research code, or recording exact Python, CUDA, library, and dataset versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/param087/agent-ml-skills/reproducible-ml
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add param087/agent-ml-skills --skill reproducible-ml
Clone the repo
git clone --depth 1 https://github.com/param087/agent-ml-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reproducible-ml

README.md
[![agentmods](https://agentmods.dev/badge/skills/param087/agent-ml-skills/reproducible-ml/github.svg)](https://agentmods.dev/skills/param087/agent-ml-skills/reproducible-ml)
Your own site
<a href="https://agentmods.dev/skills/param087/agent-ml-skills/reproducible-ml"><img src="https://agentmods.dev/badge/skills/param087/agent-ml-skills/reproducible-ml/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reproducible-ml

Your own site · 80×15
<a href="https://agentmods.dev/skills/param087/agent-ml-skills/reproducible-ml"><img src="https://agentmods.dev/badge/skills/param087/agent-ml-skills/reproducible-ml.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00704
Opus 5.5 $0.00022 $0.00282
Sonnet 5.5 $0.00011 $0.00141
Haiku 4.5 $0.00005 $0.00070

Measured 2mo ago against content hash f13c9b129b40, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reproducible-ml scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/reproducible-ml/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reproducible ML

Overview

Reproducibility means: same code + same data + same config → same result. It is a prerequisite for trusting comparisons, debugging regressions, and shipping. Three pillars: seed everything, pin everything, version the data.

When to use

  • Results vary run-to-run.
  • Setting up a new project or research codebase.
  • Preparing work others must reproduce (papers, audits, reviews).

Pillar 1 — Seed everything

import os, random, numpy as np, torch

def seed_everything(seed: int = 42):
    os.environ["PYTHONHASHSEED"] = str(seed)
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)
    torch.backends.cudnn.deterministic = True
    torch.backends.cudnn.benchmark = False  # disables nondeterministic autotuner

For DataLoaders, also set worker_init_fn and a generator so workers are deterministic.

Pillar 2 — Pin the environment

  • Pin exact versions: requirements.txt with ==, or uv.lock / poetry.lock / conda env export.
  • Record Python + CUDA + cuDNN versions in the run metadata.
  • Containerize (Docker) for cross-machine reproducibility.

Pillar 3 — Version the data

  • Hash datasets (sha256) and log the hash with every run.
  • Use DVC or dataset snapshots; never overwrite data.csv in place.
  • Treat data as immutable inputs keyed by version (data_v="2026-06-01").

Project layout that supports reproducibility

project/
├── data/            # raw (immutable) + processed, both versioned
├── src/             # importable code, no notebooks doing real work
├── configs/         # YAML/Hydra configs, one per experiment
├── scripts/         # entrypoints: train.py, evaluate.py
├── requirements.txt # or uv.lock / poetry.lock (pinned)
└── README.md        # exact commands to reproduce

Determinism gotchas

  • GPU reductions can be nondeterministic even with seeds — use torch.use_deterministic_algorithms(True) and set CUBLAS_WORKSPACE_CONFIG=:4096:8.
  • Parallel groupby/apply ordering can vary — sort before reducing.
  • set/dict ordering across processes — set PYTHONHASHSEED.
  • Non-pinned dependencies silently change behavior between installs.

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 75 lines · 54 tokens per session scan A f13c9b129b40

Subscribe to this mod's changes

reproducible-ml is a skill published in the GitHub repository param087/agent-ml-skills (13 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 704 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

reproducible-ml compared with skills from other repositories

reproducible-ml next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reproducible-mlparam087/agent-ml-skillsSkill135mo agoMITA54Claude Code, Codex
spark-training-gotchaswshobson/agentsSkill42kyesterdayMITA63Claude Code
9router-sttdecolua/9routerSkill32k9d agoMITA63Claude Code, Codex
9routerdecolua/9routerSkill32k9d agoMITA84Claude Code, Codex
9router-embeddingsdecolua/9routerSkill32k9d agoMITA66Claude Code, Codex
dashscopecalesthio/OpenMontageSkill77k3d agoAGPL-3.0A93Claude Code, Codex
ultralytics-platformfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A135Claude Code