agentleFS
gjbexgjbex/scientific-computing-skills/skills/scientific-reproducibility/SKILL.md

scientific-reproducibility

Skill1 starsChanged 6 months agoApache-2.0View on GitHub

Improve reproducibility for scientific-computing and HPC workflows,

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when editing or reviewing scientific, numerical, or parallel software where results must be reproducible across reruns, …

    line 11
  2. Distinctive:

    Use this skill when:

    line 28
  3. Distinctive:

    Do not use this skill as a substitute for correctness testing or for deep environment packaging work beyond the repository's actual needs.

    line 36
  4. Distinctive:

    When this skill applies:

    line 41
  5. Distinctive:

    Read the repository AGENTS.md first, if present.

    line 43
  6. Distinctive:

    Prefer explicit inputs, configuration, and seeds over hidden defaults.

    line 45
  7. Distinctive:

    Prefer lightweight, repository-native mechanisms before introducing heavier experiment-management infrastructure.

    line 50
  8. Distinctive:

    If multiple random streams exist, record all seed sources, not just one.

    line 71
  9. Distinctive:

    Prefer exposing seed control through CLI flags or config rather than hidden constants.

    line 72
  10. Distinctive:

    When strict determinism is impossible or too expensive, document the expected variability and acceptance criteria.

    line 74
  11. Distinctive:

    Do not claim reproducibility if the workflow still depends on unrecorded randomness or scheduling-sensitive behavior.

    line 77
  12. Distinctive:

    Keep configuration in explicit files or structured arguments when practical.

    line 96
  13. Distinctive:

    Prefer stable, human-readable metadata formats unless the repository already uses something else.

    line 97
  14. Distinctive:

    Keep generated artifacts organized by run or experiment identifier.

    line 99
  15. Distinctive:

    Avoid overwriting prior outputs without a clear reason.

    line 100
  16. Distinctive:

    If a run consumes external data, record where that data came from and which version or snapshot was used.

    line 103
  17. Distinctive:

    Add a run manifest, metadata file, or structured log for key experiments.

    line 119
  18. Distinctive:

    Prefer deterministic test fixtures and small reproducible benchmark inputs.

    line 123
  19. Distinctive:

    Keep one obvious command path for rerunning a published example or regression.

    line 124
  20. Distinctive:

    Verify that the recorded command and configuration are sufficient to rerun it.

    line 138
  21. Distinctive:

    Check that required files live in stable locations or are described clearly.

    line 139
  22. Distinctive:

    If deterministic reruns are not expected, validate the allowed variation.

    line 141
  23. Distinctive:

    When using this skill, briefly note:

    line 145

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

Scientific Reproducibility

Use this skill when editing or reviewing scientific, numerical, or parallel software where results must be reproducible across reruns, machines, or collaborators.

Repository AGENTS.md instructions take precedence over this skill.

Purpose

Apply a pragmatic default for:

  • capturing the information needed to reproduce a run;
  • separating scientific outputs from run metadata and environment details;
  • reducing accidental nondeterminism in experiments and validation workflows;
  • reporting what was controlled, what was recorded, and what still varies.

When To Use

Use this skill when:

  • the user asks to make experiments or validation runs reproducible;
  • benchmark or profiling results should be traceable to exact inputs and builds;
  • random seeds, configuration files, or solver settings affect results;
  • outputs depend on toolchain, libraries, hardware, or runtime placement;
  • the repository lacks a consistent run-recording convention.

Do not use this skill as a substitute for correctness testing or for deep environment packaging work beyond the repository's actual needs.

Working Approach

When this skill applies:

  1. Read the repository AGENTS.md first, if present.
  2. Identify the smallest set of metadata required to reproduce the result.
  3. Prefer explicit inputs, configuration, and seeds over hidden defaults.
  4. Separate immutable artifacts from transient logs and scratch files.
  5. Record environment and toolchain facts that materially affect outcomes.
  6. State clearly what is reproducible, to what level, and under what assumptions.

Prefer lightweight, repository-native mechanisms before introducing heavier experiment-management infrastructure.

What To Capture

At minimum, consider recording:

  • command line and subcommands used;
  • input file names or dataset identifiers;
  • configuration files and relevant parameter values;
  • random seeds or deterministic-mode settings;
  • code version such as commit hash or dirty-tree status;
  • compiler, interpreter, or toolchain version when it affects behavior;
  • key runtime environment variables;
  • output locations and artifact names.

Capture only what materially affects rerunning or interpreting the result.

Determinism and Seeds

  • Fix random seeds when exact reruns matter.
  • If multiple random streams exist, record all seed sources, not just one.
  • Prefer exposing seed control through CLI flags or config rather than hidden constants.
  • When strict determinism is impossible or too expensive, document the expected variability and acceptance criteria.

Do not claim reproducibility if the workflow still depends on unrecorded randomness or scheduling-sensitive behavior.

Environment and Toolchain

  • Record compiler, MPI, BLAS, Python, or other major dependency versions when they materially affect outputs or performance.
  • Note machine or node characteristics when hardware changes interpretation, especially for benchmarking and profiling.
  • Record important runtime settings such as OMP_NUM_THREADS, OMP_PROC_BIND, affinity, rank counts, or precision modes.
  • Distinguish environment facts that affect correctness from those that affect only performance.

For HPC workflows, expect cluster modules, scheduler settings, and launcher arguments to matter.

Inputs, Config, and Artifacts

  • Keep configuration in explicit files or structured arguments when practical.
  • Prefer stable, human-readable metadata formats unless the repository already uses something else.
  • Keep generated artifacts organized by run or experiment identifier.
  • Avoid overwriting prior outputs without a clear reason.
  • Store summaries or hashes when full outputs are too large for routine review.

If a run consumes external data, record where that data came from and which version or snapshot was used.

Benchmarking and Performance Context

  • Tie runtime results to the exact build, input, placement, and environment.
  • Record thread counts, rank counts, and affinity settings with every reported timing.
  • Separate scientific-result reproducibility from performance reproducibility.
  • Expect low-level timing variation even when the command and environment match.

For performance work, reproducible setup is often more realistic than identical wall-clock numbers.

Practical Patterns

  • Add a run manifest, metadata file, or structured log for key experiments.
  • Stamp outputs with version and parameter metadata when that does not create clutter.
  • Expose configuration through checked-in config files for important workflows.
  • Prefer deterministic test fixtures and small reproducible benchmark inputs.
  • Keep one obvious command path for rerunning a published example or regression.

Anti-Patterns

  • undocumented default parameters;
  • results reported without command lines or input provenance;
  • hidden machine-local paths inside scripts or configs;
  • claiming exact reproducibility when only approximate reproducibility exists;
  • overwriting artifacts in place without preserving run context;
  • mixing scratch data and important outputs in the same opaque directory.

Validation Defaults

  • Rerun at least one representative workflow from recorded inputs and metadata.
  • Verify that the recorded command and configuration are sufficient to rerun it.
  • Check that required files live in stable locations or are described clearly.
  • State explicitly what could not be reproduced in the current environment.
  • If deterministic reruns are not expected, validate the allowed variation.

Output Expectations

When using this skill, briefly note:

  • what metadata or manifesting mechanism was added or updated;
  • which inputs, seeds, versions, and environment details are now captured;
  • whether reproducibility is exact, bounded, or approximate;
  • which rerun or validation steps were executed;
  • which external dependencies or environment assumptions remain.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.