/rseng-agent-skills:rseng-reproducible-environmentsfrom rseng-agent-skills
Covers making research software environments reproducible: pinning language versions and dependencies, choosing package managers (venv/conda/poetry/uv/renv), and building containers (Docker, Apptainer) to eliminate 'works on my machine' issues.
Ships in rseng-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when software must behave the same on another machine, a cluster, a CI runner, or a reviewer's laptop as it does on the author's. Two complementary tools deliver this: a per-project virtual environment that isolates the language interpreter and its libraries, and a container that packages the code together with its entire dependency stack. Reach for the virtual environment when developing or modifying code in one language; reach for the container when the environment must travel across machines, platforms, or pipelines unchanged.
Match the tool to how far the software has to travel and what it depends on:
Decision rule: developing in one language -> virtual environment; must run identically elsewhere, has system-level dependencies, or feeds CI/CD -> container; the OS is part of the artifact -> system-level tool; a multi-step pipeline -> workflow manager.
A virtual environment gives each project its own interpreter version and its own library versions, so projects with clashing requirements coexist without interference:
You need a package manager (install/update/remove libraries) and an environment manager (create/isolate environments); some tools do both. Pick per language and stick with it - mixing ad-hoc tools is a common source of breakage:
venv + pip, or a combined tool like
Poetry or uv (uv is a fast single tool that replaces pip and venv).Tie-breakers when several tools fit: prefer what the project, team, or community already uses so help is available, then personal preference. State the chosen tool explicitly so contributors do not each reach for a different one.
Sharing a runnable description of the environment is the deliverable, not just the code:
pyproject.toml + a native lockfile from a modern manager such as uv,
environment.yml, renv.lock, Manifest.toml. A bare
requirements.txt is an export format, not a project definition.uv run script.py, which resolves and pins the declared
dependencies on the fly and replaces the loose
requirements.txt-next-to-a-script pattern entirely.Containers bundle code plus every dependency and configuration so developers, collaborators, and reviewers run the identical setup, ending dependency hell and "works on my machine" failures. Reach for a container when:
Benefits to explain when recommending one: reproducibility and portability, fast onboarding (collaborators just pull and run), version control (tag images to code versions), automation-friendliness (build images in CI/CD), and lower overhead than full virtual machines.
Standard recipe for a Python project:
python:3.10-slim, or
ubuntu:22.04 for a general Linux base - pin the tag, never rely on
latest.FROM python:3.10-slim
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
CMD ["python", "script.py"]
docker run --rm -v /path/to/data:/data my-image:1.0.0 python /data/experiment.pydocker run -p 8080:80 my-image:1.0.0docker tag my-image:1.0.0 user/my-image:1.0.0 && docker push user/my-image:1.0.0Prefer Apptainer (formerly Singularity) on clusters where users lack root access; it is built for reproducible science and large-scale workloads:
.sif file, reusing an existing Docker image when convenient:
apptainer build my_container.sif docker://python:3.10-slimapptainer exec my-container.sif python /data/experiment.pymy-container-v1.0.0.sif, and store it
in institutional or shared storage.Run tests inside the same image the software ships in, so CI reproduces the production environment. Reference the custom image as the job image and run the test suite against it; install only extra dependencies not already baked in. This keeps test and deployment steps consistent and lets image builds themselves be automated.
The generated references.md beside this file lists the source material and pointers:
Learn more (verified):
When a project runs both bare (dev) and containerized (compose, production), the two environments drift: an env var set in the shell but absent from compose, a dependency in the image but not the lockfile, different service hostnames. Declare shared configuration ONCE (.env.example consumed by both), derive the image from the same lockfile the dev environment uses, and treat "works locally, fails in compose" as an environment diff to be found (rseng-debugging reads the startup logs; rseng-testing's entry-point check catches it before handoff).
Check whether any of these applies before moving on:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
67 skills in this plugin
/rseng-agent-securityCovers operating AI coding agents securely: auditing whether the agent runs sandboxed, permission and dangerous-command configuration, containerized environments, secrets kept out of context, network egress and token privileges, prompt-injection risk, and the privacy of agent use itself. Use PROACTIVELY when permission gating is broadly disabled (skip-permissions modes), when secrets are visible to the agent's shell, or when the agent processes untrusted code, issues or web content; when a project holds personal or confidential data while a cloud agent is active (what leaves the machine, retention, training use), or when the user asks how to run coding agents safely or privately. (Supply-chain security: rseng-security; disclosing agent contributions: rseng-ai-declaration.)/rseng-ai-declarationCovers declaring AI involvement with the AI Declaration Format (https://ai-declaration.org): creating and maintaining an aidecl.yaml that records which AI tools and agents were used, what each contributed, when and how much, plus the README disclosure footnote, JSON/JSON-LD export and CI validation. Machine-readable disclosure is the practice; this format is one implementation. Use PROACTIVELY when an AI assistant or agent creates or modifies a project's content - generate aidecl.yaml if missing, update it after AI-assisted changes. Also use when the user asks about AI transparency, provenance, disclosure or EU AI Act disclosure, wants to state that NO AI was used, or mentions aidecl. For concealment requests see rseng-honesty; for the human review duty see rseng-human-verification.npx claudepluginhub fdiblen/rseng-agent-skills --plugin rseng-agent-skillsOther plugins' skills for the same job