/clio-hpc-skills:cluster-runfrom clio-hpc-skills
Resolves Spack software packages and configures JARVIS pipelines for cluster execution. Handles package-backed workloads through scheduler-aware pipeline runs.
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.
Use this when a workload needs software from Spack and has to run somewhere other than the current shell. It spans two servers, and the handoff between them is the part that goes wrong.
The Spack server deliberately refuses to load anything into an environment,
because a load performed inside a tool call dies with that call. JARVIS owns the
runtime environment instead — spack://capabilities says so directly:
stateful_load_exposed: false, runtime_owner: jarvis_run.
There are two ways work reaches a cluster, and they are alternatives, not steps:
clio-jarvis:jarvis_run takes execution intent (local, cluster, hostfile)
and resolves the scheduler itself. This is the path below.clio-slurm:slurm_submit, which returns
a scheduler-native job ID.Do not submit a JARVIS pipeline with clio-slurm:slurm_submit. Pass the cluster
intent to clio-jarvis:jarvis_run and let it own the scheduler.
1. Size the request against the machine.
Use clio-slurm:slurm_cluster to inspect target partitions and bounded node
records. clio-node-hardware:get_cpu_info and get_gpu_info describe the MCP
host, which may be a login node rather than a compute node. Verify scheduler
limits and the workload's rank/thread requirements before setting resources.
2. Find out whether the package is already installed.
Call clio-spack:spack_find with the constraint. No matches is a successful
result with count=0, not an error — do not retry it as if the call failed.
If it returns nothing, clio-spack:spack_search answers a different question:
whether a recipe exists at all, in which repo, and whether it is already
installed. Reach for it before concluding the software is unavailable.
3. Install only if it is missing.
Call clio-spack:spack_install with an explicit concretization choice. Skip this
entirely when step 2 already found a match — installing is slow and runs
synchronously, and reinstalling a package that is present wastes the wait.
4. Resolve the exact spec.
Call clio-spack:spack_locate. Its output.load_spec is the value the run needs.
Copy
spack_locate.output.load_specunchanged. Do not build a path from the returned prefix, do not append/bin/<binary>, do not simplify the spec string. The hash in it is what makes the environment reproducible, and a derived path silently drops it.
5. Create the pipeline.
Call clio-jarvis:jarvis_create_pipeline with a pipeline_id you choose. Pass
execution intent here when the workload needs a cluster rather than the local
host.
6. Inspect the package before configuring it.
Call clio-jarvis:jarvis_describe with target='package' for the package you
intend to add. The keys it returns are the canonical configuration names.
Guessing key names is the most common way the next step fails.
7. Add the step.
Call clio-jarvis:jarvis_add_step with the pipeline_id, the package, and a
config built from the keys step 6 returned.
8. Run it, passing the Spack spec.
Call clio-jarvis:jarvis_run with the pipeline_id, putting the load_spec
string from step 4 into one element of the top-level spack_specs argument. JARVIS persists that
runtime environment for the execution.
clio-jarvis:jarvis_run returns a durable execution handle and does not wait
for the workload to finish.
9. Follow the execution.
Call clio-jarvis:jarvis_get_execution with the pipeline_id and the handle.
Poll it. The run is finished when the lifecycle record says so, not when
jarvis_run returned.
spack_load tool. There isn't one, on purpose.clio-spack:spack_find returning zero packages as a failure.spack_specs expects a load spec.clio-jarvis:jarvis_describe and guess configuration keys.clio-jarvis:jarvis_run
succeeded — it returns a handle, not a result.software-environment.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.
Record pipeline ID, package/configuration, exact Spack load specs, execution handle and final lifecycle state. Poll with a bounded interval and deadline; if still running, report the handle and latest state. Confirm exit status and expected artifacts before claiming scientific success.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/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./software-environmentUse when checking installed Spack packages and available or saved module environments. Triggers on "module avail", "which MPI", "is this installed". Not for executing a workload; use cluster-run.npx claudepluginhub iowarp/clio-kit --plugin clio-hpc-skillsOther plugins' skills for the same job