reproducible-training-runs

reproducible-training-runs is a skill for Claude Code from yeaight7/agent-powerups. It costs 44 tokens per session (446 once invoked), scanned A, original, Apache-2.0.

A review guide for making machine-learning training runs reproducible, meaning they can produce the same result or reconstruct an earlier result. It checks random seeds, deterministic processing, data loading, settings, software versions, and data hashes.

In plain words
What is it for?
Use it to inspect or modify a Python training script, check deterministic behavior in PyTorch or TensorFlow, and list missing safeguards before rewriting code.
Why use it?
It helps explain why runs with the same settings differ and records the details needed to recreate a past result.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the machine-learning-ops plugin — 7 skills, 4 commands, 3 agents shipped together

Good fit Use it to inspect or modify a Python training script, check deterministic behavior in PyTorch or TensorFlow, and list missing safeguards before rewriting code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/reproducible-training-runs
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 yeaight7/agent-powerups --skill reproducible-training-runs
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install machine-learning-ops, the plugin that ships this one along with the rest of its 7 skills, 4 commands, 3 agents.

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-training-runs

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/reproducible-training-runs/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/reproducible-training-runs)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/reproducible-training-runs"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/reproducible-training-runs/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-training-runs

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/reproducible-training-runs"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/reproducible-training-runs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 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.00044 $0.00446
Opus 5.5 $0.00018 $0.00178
Sonnet 5.5 $0.00009 $0.00089
Haiku 4.5 $0.00004 $0.00045

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

Security

Grade A, and why

reproducible-training-runs 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 1mo 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.

plugins/machine-learning-ops/skills/reproducible-training-runs/SKILL.md · 45 lines

What it actually says

Purpose

Enforce seed setting, deterministic operations, and environment tracking so a training run can be reproduced exactly.

When to Use

  • Reviewing or modifying a training script that must be deterministic
  • Two runs with the "same" configuration produced different results
  • A past result needs to be reconstructed exactly

Inputs

  • A target Python training script

Workflow

  1. Global seed initialization: ensure a single function sets seeds for all relevant libraries (random, numpy, torch, tensorflow).
  2. Deterministic algorithms: for PyTorch or TensorFlow, check that deterministic algorithms are enabled (e.g., torch.use_deterministic_algorithms(True)).
  3. Data loading: verify data loaders use deterministic shuffling and that worker processes are seeded correctly to avoid identical augmentations.
  4. Environment & config tracking: ensure the script logs the exact configuration, dependency versions, and data hashes.
  5. Review first: point out missing reproducibility guards before rewriting the script. Provide the exact seed-initialization snippet — do not hide side effects.

Output

  • A list of missing reproducibility guards with the exact code snippets to add, plus any performance trade-off warnings

Verification

  • All library seeds set from one place
  • Deterministic-algorithm flags enabled (or the gap explicitly accepted)
  • Loader shuffling and worker seeding deterministic
  • Configuration, dependency versions, and data hashes logged
  • User warned if determinism flags significantly slow training

Failure Modes

  • Partial seeding — seeding random but not the framework or loader workers still yields nondeterminism.
  • Silent slowdown — enabling deterministic algorithms can cost real training speed; surface the trade-off instead of hiding it.
  • Rewriting before reviewing — changing the script without first listing the gaps loses the audit trail.
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. 1mo ago First seen · 45 lines · 44 tokens per session scan A 06e1c09aea6c

Subscribe to this mod's changes

reproducible-training-runs is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 19d ago), licensed Apache-2.0. It adds 44 tokens to every session and 446 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-09-14.