compute-env-setup
Agent skill fromaipoch/open-science
Prepare reproducible setup instructions and validate a user-managed named software environment on an Open-Science SSH Compute Host, including direct SSH and Slurm hosts. Use when a remote job needs packages, modules, cache variables, or a repeatable activation that the host does not already provide.
How to install compute-env-setup
install compute-env-setup
# install the open-science pack with the skills CLI
npx skills add aipoch/open-science# or add only this skill to Claude Code: copy the folder
resources/skills/compute-env-setup/
# into
~/.claude/skills/compute-env-setup/ (all projects)
.claude/skills/compute-env-setup/ (one project)
1# Compute environment setup23Prepare one reproducible environment definition and instructions for one small user-managed host4activation file. Open-Science resolves `submitJob(..., { environment: '<name>' })` by sourcing5`~/.open-science/environments/<name>.sh` before the workload. Existing `~/.openscience/environments/<name>.sh` definitions remain readable in place. Before creating an activation, check both names: update the existing definition at its exact location; if both exist, ask the user which to retain. Never create a second activation just to rename the brand. The file contains activation only; it6does not install packages when a job starts.78Software environment setup and Slurm accounting service configuration are separate concerns.9An unavailable `sacct` service is not evidence that Python, Conda, modules, or the named activation10file are missing. Use the Remote Compute Skill's Slurm troubleshooting reference for scheduler11status and cancellation problems; do not make enabling accounting the only recovery path or assume12the user has administrator privileges.1314The environment, package caches, images, and activation file are user-managed durable resources,15not Open-Science-owned components. This Skill may inspect them and prepare exact setup/removal16commands, but must not execute commands that create, replace, or remove those resources. The user17or host administrator runs those commands outside Open-Science and owns their lifecycle. Do not18…
Excerpt shown under the repository's Apache-2.0 license.
