Skip to content
Development
Skill

/reproducible-training-runs

Use when reviewing or modifying ML training scripts that must produce identical results across runs or machines -- runs with the "same" config differ, or a past result must be reconstructed exactly.

From plugin
agent-powerups
6113 skills46 agents54 commands
Install
$ npx -y skills add yeaight7/agent-powerups --skill reproducible-training-runs --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/reproducible-training-runs

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when reviewing or modifying ML training scripts that must produce identical results across runs or machines -- runs with the "same" config differ, or a past result must be reconstructed exactly.

SKILL.md

reproducible-training-runs.SKILL.md
name: reproducible-training-runs
description: Use when reviewing or modifying ML training scripts that must produce identical results across runs or machines -- runs with the "same" config differ, or a past result must be reconstructed exactly.

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.
Read more
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

Get the whole plugin

Other skills on agent-powerups.