/hpc-crux:crux-configuringfrom hpc-crux
Use when the user wants to set up, configure, or troubleshoot Crux (ALCF) — SSH access, the embedding endpoint for docs search (RAG), or the ~/.hpc-agent/crux.json file. Also use when crux tools fail with connection or embedding errors.
Ships in hpc-crux. 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.
None: SKILL.md is the whole skill.
Settings live in ~/.hpc-agent/crux.json (the common directory
shared by every facility this plugin serves — one file per facility). Env
vars CRUX_HOST and CRUX_EMBED_API_KEY override the
file; the embedding key also falls back to a shared RCCS_EMBED_API_KEY
env var if several facilities share the same endpoint.
The file this facility needs (add "embedding": {"api_key": "..."} too if
docs search should use vector rather than keyword matching):
{
"ssh": {
"host": "crux"
},
"defaults": {
"account": "<your-ALCF-project>"
}
}
ALCF login asks for a one-time passcode from MobilePASS+ or a
hardware token, which non-interactive SSH cannot answer. Use
OpenSSH connection multiplexing: add a 'crux' block to
~/.ssh/config with HostName crux.alcf.anl.gov, your User, and
ControlMaster auto, ControlPath ~/.ssh/controlmasters/%C,
ControlPersist 30m (mkdir -p that directory, chmod 700), open the
master once with ssh -MNf crux entering your passcode, then set
ssh.host to that SAME alias — a bare hostname selects a different
control socket and re-prompts.
Running on a Crux access node instead? Use ssh.host=localhost.
Set defaults.account to one of your ALCF projects (see
sbank-list-allocations -r crux): every job needs #PBS -A. Never
copy a project from another user. CRUX_ACCOUNT overrides the
configured default.
Read the existing ~/.hpc-agent/crux.json first and only ask
about what's missing or being changed.
SSH — ask how they reach this facility's login node:
The recommended setup is a multiplexed SSH alias. ALCF asks for a
one-time passcode (MobilePASS+ app or hardware token) at every login,
which a non-interactive SSH call can never answer — so the user
authenticates once, interactively, and every later ssh/rsync reuses
that connection.
Have the user add a block to ~/.ssh/config (substituting their ALCF
username):
Host crux
HostName crux.alcf.anl.gov
User <their-ALCF-username>
ControlMaster auto
ControlPath ~/.ssh/controlmasters/%C
ControlPersist 30m
then, after mkdir -p ~/.ssh/controlmasters && chmod 700 ~/.ssh/controlmasters, open the master once:
ssh -MNf crux # they type their one-time passcode here
ssh -O check crux # Master running (pid=…)
Set "host" to that same alias. A bare hostname, or a different
user or port, selects a different control socket and re-prompts.
Running on a Crux access node instead? Use "host": "localhost"
(direct local execution, no SSH at all).
Never ask the user for their one-time passcode, and never try to script or automate entering one. The whole arrangement depends on the passcode being typed by the person, once, in their own terminal.
Also set defaults.account — every job is billed to an ALCF project
(#PBS -A is mandatory), and submit_job refuses without one. Find the
user's projects with get_projects(facility="crux") once the connection
works, or ask them to run sbank-list-allocations -r crux. CRUX_ACCOUNT
overrides the file. Never reuse a project from an example or from another
user.
"host": "localhost" instead — no SSH key needed. Skip the
verification step below for this case; there's nothing to probe.ssh -o BatchMode=yes <host> 'echo ok' (BatchMode
matters — the server cannot answer a password prompt; key-based auth
is required). Not applicable for "host": "localhost".~/.ssh/config without overwriting any
unrelated entries:
Host <alias>
ControlMaster auto
ControlPath ~/.ssh/controlmasters/%C
ControlPersist 30m
Create ~/.ssh/controlmasters with mode 0700, then open the initial
master in the user's own terminal with ssh -MNf <alias>. Set
ssh.host to that same alias. ControlMaster no is an intentional
opt-out; do not add or change multiplexing settings when it is present.embedding.api_key.~/.hpc-agent/crux.json (mkdir -p ~/.hpc-agent first if needed), then chmod 600 it — it may hold an API
key. Never commit it or echo the key back in conversation.uv tool run --quiet --from git+https://github.com/william-dawson/hpc-rookery.git@main hpc-doctor crux
(From a checkout of this repo: .venv/bin/python -m hpc_mcp.doctor crux also works.)uv tool run --quiet --from git+https://github.com/william-dawson/hpc-rookery.git@main python -m hpc_mcp.ingest crux
Then run the doctor again — it should report "chunks with embeddings".ssh.host to/from "localhost") applies
immediately — no server restart needed. A rebuilt docs index still needs
the hpc-docs server restarted to be picked up.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub william-dawson/hpc-rookery --plugin hpc-crux7 skills in this plugin
/crux-demoInteractive demo of Crux (ALCF) — walks through configuration, facility info, live cluster status, docs search, filesystem access, and a real job end to end./crux-monitoring-jobsUse when the user asks about the status, progress, output, history, or failure of jobs on Crux (ALCF), or about queue and node availability. Also use this any time you (the agent) need to check on or wait for a job you submitted, even without a fresh user request./crux-referenceUse to answer questions about Crux (ALCF) itself — hardware, partitions, storage, software, policies, or where to get help. Ground answers in the bundled guide and live tool output rather than prior knowledge./crux-remote-commandUse when the user wants to run one or more shell commands on Crux (ALCF)'s login node, or when another workflow needs run_command_on_cluster for a live check not covered by a safer typed tool. Requires an exact command preview and explicit user permission before execution./crux-reproducingUse when the user asks to make a result on Crux (ALCF) reproducible, shareable, or turned into a notebook/script — or proactively suggest it after a chunk of exploratory job/file work that produced something worth preserving. Builds a Jupyter notebook that replays the real workflow via hpc_agent_core.client, not a hand-copied SSH script./crux-submitting-jobsUse when the user wants to run, submit, or launch a job on Crux (ALCF). Covers partition/queue selection, JobSpec construction, submission, and known gotchas specific to this facility.