<< All versions

Skill v1.0.1

currentAutomated scan100/100
cameronbracken/waterology-research/capture-environment

+4 new

──Details
PublishedOctober 24, 2026 at 08:28 PM
Content Hashsha256:619fb382dc5bf950...
Git SHAbd425a80a0dd
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 4.1 KB)
SKILL.md4.1 KBactive
SKILL.md · 94 lines · 4.1 KB

version: "1.0.1" name: capture-environment description: > Capture software, packages, compilers, flags, seeds, and platform details for an R, Python, Fortran, or mixed research workflow. Use before archival, handoff, replication, or a reproducibility audit. metadata: claude-command: name: capture-environment argument-hint: <project directory> [--verify]


Capture Environment

Record the environment that produced a result without changing dependencies. For Waterology runs, the sealed archive stores environment.yaml and the derived RO-Crate links that file to the run action; keep both consistent. Use project-conventions to select the existing package manager. Never replace Pixi with pip, add renv to a project that uses another declared R workflow, or upgrade packages while capturing them.

Mode

Run waterology config context capture-environment and follow its reproducibility mode as defined in project-conventions.

In light mode, confirm that the lockfile is committed and current and that a README or task documents how to run the canonical entry point. Add or update a short environment section in the README with the language versions, lockfile, seed, and run command. Skip --verify, the separate requirements report, and archive or RO-Crate links unless the user asks.

In strict mode, follow the full capture below.

Detect the stack

Inspect project guidance and files, then run every applicable path:

  • R: .R, .Rmd, DESCRIPTION, renv.lock, or rv.lock;
  • Python: .py, notebooks, pyproject.toml, pixi.toml, uv.lock, or requirements files;
  • Fortran: .f90, .F90, .f95, .f, Makefile, meson.build, or compiler tasks.

If no stack is found, report the inspected paths and stop. A mixed project gets one capture for each language plus a combined requirements report.

Capture

R

  • Preserve the declared lock approach. For renv, inspect renv::status() and record the existing lock hash by default. Run renv::snapshot() only with explicit authorization because it mutates renv.lock; review its diff before accepting it. Record rv.lock when rv is declared.
  • Write sessionInfo.txt from sessionInfo() to the project's evidence or output directory.
  • Record R version, package sources, locale, RNGkind(), and every set.seed() used by canonical scripts.

Python

  • Preserve pixi.lock, uv.lock, or a pinned requirements file according to the current project.
  • Record the Python implementation and version plus the selected environment command.
  • Record default_rng, SeedSequence, library seeds, and relevant deterministic settings.

Fortran

  • Record compiler identity and full version, such as gfortran --version.
  • Record compile and link flags from Pixi tasks, Makefiles, Meson, CMake, or build logs.
  • Record linked numerical libraries, OpenMP or MPI versions, preprocessing flags, default integer and real kind choices, and platform architecture.
  • Preserve a command that rebuilds from clean source and a small qualification case when one exists.

Verification

With --verify, use a throwaway environment or build directory. Restore the declared locks, compile applicable Fortran targets, and run the smallest documented smoke test. Do not overwrite the working environment. A missing runtime, network restriction, licensed dependency, or restricted input is UNVERIFIED, not PASS.

Output

Write quality_reports/computational-requirements.md unless project guidance sets another evidence location. Include:

  • operating system and architecture;
  • R, Python, and Fortran versions that apply;
  • lockfiles and package sources;
  • compiler and linker flags;
  • seeds and RNG kind;
  • canonical entry command and expected runtime;
  • verification command, exit status, and date;
  • sealed run IDs and RO-Crate export paths when the capture supports an archive;
  • unavailable checks and restricted inputs.

Reference detailed machine output, including sessionInfo.txt, rather than copying hundreds of package lines into the report. Never claim byte identity unless a clean reconstruction was executed and compared.

← v1.0.0All versions