camilool8/harness-engineering-templates/pin-seeds-and-lockfile

Claude Code and agent skill by camilool8/harness-engineering-templates

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Pin every seed (random, numpy, torch, jax, transformers, PYTHONHASHSEED) and freeze the lockfile (uv) before a training run. The training-implementer agent applies this.

Install

npx vskill@latest install camilool8/harness-engineering-templates/pin-seeds-and-lockfile

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as camilool8/harness-engineering-templates/pin-seeds-and-lockfile.

When to use

Top of every train.py and any eval that involves stochastic ops. Before every committed deps update.

How — seeds

python
import os, random
import numpy as np
SEED = 42
os.environ["PYTHONHASHSEED"] = str(SEED)
random.seed(SEED)
np.random.seed(SEED)
try:
import torch
torch.manual_seed(SEED)
torch.cuda.manual_seed_all(SEED)
torch.use_deterministic_algorithms(True) # requires CUBLAS env config
except ImportError:
pass
try:
import jax
jax_key = jax.random.PRNGKey(SEED)
except ImportError:
pass
try:
from transformers import set_seed as hf_set_seed
hf_set_seed(SEED)
except ImportError:
pass

How — lockfile

bash
uv lock --frozen # refuse to update; fail loud if drift exists
uv sync --frozen # install from lockfile only

For a planned deps update:

bash
uv add <pkg> # updates pyproject.toml + uv.lock atomically
uv lock # explicit re-lock when adding from pyproject.toml manually

Anti-patterns this skill prevents

  • "It was reproducible on my machine" — a single missed seed

(torch.cuda.manual_seed_all, PYTHONHASHSEED) defeats reproducibility.

  • Silent lockfile drift via pip install. The uv addon's

lockfile-frozen.sh hook blocks pip install outside a deps-update mode.

  • Non-deterministic CUDA kernels — use_deterministic_algorithms(True)

surfaces the issue rather than letting it lurk.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/camilool8/harness-engineering-templates/pin-seeds-and-lockfile/badge)](https://verified-skill.com/skills/camilool8/harness-engineering-templates/pin-seeds-and-lockfile)

Something wrong with this skill or its page? Tell us.