/clio-hpc-skills:software-environmentfrom clio-hpc-skills
Guides checking installed Spack packages and available module environments on HPC clusters. Distinguishes which tool answers questions about loaded modules, available software, Spack installations, and saved collections.
Ships in clio-hpc-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.
Two servers answer overlapping questions about available software, and they answer different ones. Reaching for the wrong one gives a confidently wrong answer rather than an error.
The lmod server discovers environments and manages saved collections. It reports what a machine has; it cannot change what is loaded.
That is deliberate rather than missing. A module load performed inside a tool
call runs in a child process with a copied environment, and the change dies when
that child exits. A tool doing it would report success while nothing was loaded
for anything that followed, which is a silently wrong answer rather than an
error anyone would see. The tools that used to do this were removed for exactly
that reason.
To get software into a run, resolve it with clio-spack:spack_locate and pass
output.load_spec to clio-jarvis:jarvis_run in the top-level spack_specs argument, which does
persist for the execution. See cluster-run.
"What is loaded right now?" — clio-lmod:module_list. Reflects the
server's own environment, which is only meaningful if something loaded it there.
"Does this machine offer X?" — clio-lmod:module_avail with a name pattern.
It searches what is currently visible in MODULEPATH.
"Really, does it offer X anywhere?" — clio-lmod:module_spider. Searches the
entire module tree, including modules hidden behind a compiler or MPI hierarchy
that module_avail cannot see until a prerequisite is loaded. When module_avail
comes back empty, this is the one that finds it.
"What does this module actually set?" — clio-lmod:module_show. Use it before
depending on a module for anything: it reveals the prerequisites and the
variables it sets.
"Is this package installed under Spack?" — clio-spack:spack_find. Only sees
what is already built. Zero matches is a successful result, not an error.
"Does a recipe for it exist at all?" — clio-spack:spack_search. Broader than
spack_find: it answers whether a recipe exists, in which repo, and whether it
happens to be installed. Use it before concluding software is unavailable.
"What versions and variants does that recipe have?" — clio-spack:spack_info.
Note that on deployments where spack info is unavailable it falls back to
parsing the recipe statically and marks the result as such — treat a
statically-parsed answer as less authoritative.
clio-lmod:module_save, module_restore and module_savelist manage named
collections on disk. Saving writes a real file and does persist. Restoring runs
in a child process like any other module verb, so a collection is a record of an
intended environment rather than a way to establish one.
module_avail alone — try
module_spider before saying no.spack_find alone — that only covers
what is already built; try spack_search.openmpi/4.1.5 and a Spack spec [email protected] are different
installations that happen to share a version number.Names such as clio-hdf5:open_file identify a server and its tool in this
guide. Your agent may expose a different prefix. Match the server and tool
against its live MCP inventory, then use the advertised name and input schema.
If a required server is unavailable, report it before attempting the workflow.
Report whether each result describes the MCP process, a module catalogue or an installed Spack package. Preserve exact versions/specs and identify which environment the eventual workload will use.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub iowarp/clio-kit --plugin clio-hpc-skills3 skills in this plugin
/cluster-runUse when resolving Spack software, configuring a JARVIS pipeline and following its execution. Triggers on "run this on the cluster", "JARVIS pipeline", "install and run". Not for handwritten batch scripts; use slurm-script./slurm-scriptUse when preparing Slurm resource requests, arrays and dependencies or diagnosing pending jobs. Triggers on "sbatch", "job array", "why is my job pending". Not for JARVIS execution; use cluster-run.Other plugins' skills for the same job