compute-env-setup
What it does
This skill teaches an agent how to prepare an activation file for a remote compute host, so jobs load the right packages. It writes setup steps and checks the environment, and it leaves creating or removing resources to the user.
When to use it
- ✓When a remote job needs packages, modules, or cache settings the host does not already provide.
- ✓When a user needs a repeatable environment activation for an Open Science compute host.
- ✓When a remote job fails because a package or module is missing on the host.
Skill link
https://github.com/aipoch/open-science/blob/main/resources/skills/compute-env-setup/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My remote job on the compute host needs a specific Python package set. Prepare the setup steps and an activation file for it.”
5 new skills a week. 1 minute to read.
How it works
The agent checks the existing environment definitions, writes an activation file with the needed settings, and gives exact setup commands. It does not run commands that create or remove the user's resources on its own.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Compute environment setup
Prepare one reproducible environment definition and instructions for one small user-managed host
activation file. Open-Science resolves submitJob(..., { environment: '<name>' }) by sourcing
~/.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; it
does not install packages when a job starts.
Software environment setup and Slurm accounting service configuration are separate concerns.
An unavailable sacct service is not evidence that Python, Conda, modules, or the named activation
file are missing. Use the Remote Compute Skill's Slurm troubleshooting reference for scheduler
status and cancellation problems; do not make enabling accounting the only recovery path or assume
the user has administrator privileges.
The environment, package caches, images, and activation file are user-managed durable resources,
not Open-Science-owned components. This Skill may inspect them and prepare exact setup/removal
commands, but must not execute commands that create, replace, or remove those resources. The user
or host administrator runs those commands outside Open-Science and owns their lifecycle. Do not
interpret the ~/.openscience path as app ownership.
Use host.compute only in repl_execute JavaScript. Python and R data kernels do not expose it.
Start from the Session catalog and do not guess a provider id:
const hosts = await host.compute.listHosts()
const selected = hosts.filter((candidate) => candidate.role === 'selected')
const candidates = selected.length > 0 ? selected : hosts
Choose the requested host, or a suitable candidate when the user left the target open. Read its knowledge and probe snapshot before changing it:
const providerId = candidates[0].provider_id
const executionMode = candidates[0].execution_mode
const details = await host.compute.details(providerId, { mode: 'read' })
const compute = host.compute.create(providerId)
If no eligible host exists, or the selected host is unsuitable, explain the concrete blocker. Do not install locally as a substitute for a requested remote environment.
Define the environment
Keep the reproducible source in the user's project: an environment.yml, requirements or lock
file, container definition, or a short setup script appropriate to the stack. When installation
must run on a compute node, include exact user- or administrator-run staging and scheduler commands
in the plan; do not submit that installation through Open-Science. Do not store project package
lists or secrets in the host knowledge document.
Use a logical name containing 1–64 letters, numbers, periods, underscores, or hyphens, starting with a letter or number. Its host activation file is:
~/.open-science/environments/<name>.sh
The activation file itself and every path it references must be visible at the same path on the execution node. A shared home directory satisfies this. If login and compute nodes have separate homes, copy the activation file to the compute-node home at the same path and use shared software and data paths inside it; if the host offers no durable way to do that, explain the limitation.
Prefer the host's existing environment system:
- Conda or micromamba: create the environment from the project definition, then source the shell hook and activate it in the activation file.
- Modules: load the exact module versions in the activation file. Combine modules with a venv or conda environment when Python packages are also needed.
- Apptainer or Singularity: installation and image creation are cluster-specific. Use an existing
shared image when possible. Do not claim that
environmentwraps an arbitrary command in a container; the activation contract only sources shell setup.
Set cache paths and bounded thread variables in the activation file when the workload needs them.
Keep credentials out of it. Avoid sudo, system package changes, shell-profile edits, and
unrequested changes to other named environments.
Before installing, use one batched, read-only probe to identify the scheduler, available environment tools, relevant modules, quotas, and shared scratch. A typica
FAQ
Does the activation file install packages?
No. The skill says it contains activation only and does not install packages when a job starts.
What if the accounting service is down?
The skill says that does not mean the environment is missing, and it points to the scheduler troubleshooting reference.
Who manages the environment?
The user or host administrator manages it, and the skill only prepares commands.
Details
Original description by the author
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.
repo: aipoch/open-science
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14853
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
alphafold2
5.4kHelps your agent predict a protein's 3D structure from its sequence, including protein complexes, using AlphaFold2 through the ColabFold runner.
boltz
5.4kHelps your agent predict the structure of protein, DNA, RNA, and small-molecule complexes using the open-source Boltz-2 model, with optional binding affinity estimates.
borzoi
5.4kHelps your agent predict genome-wide activity tracks, such as expression and accessibility, from DNA sequence, and compare variants by their predicted effect.
chai1
5.4kHelps your agent predict the structure of protein, nucleic acid, and ligand complexes from one FASTA file, using the Apache-licensed Chai-1 model.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.