/hpc-crux:crux-submitting-jobsfrom hpc-crux
Use 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.
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.
Every tool call in this skill uses facility="crux".
Crux runs PBS Professional and allocates whole nodes — each one with 128 physical cores (256 hardware threads) and 256 GB, no GPUs anywhere.
Three things are mandatory on every job and the backend fills or checks them
all: the project (#PBS -A, from the user's configured default or
spec.attributes.account), the walltime, and the -l filesystems directive
(default home:eagle; set custom_attributes.filesystems to "home" or
"eagle" alone when the job touches only one — a job waits while any
filesystem it names is down). The select line is rendered for you as
select=<node_count>:system=crux with place=scatter; don't try to request
partial nodes, memory slices, or GPUs — there is nothing smaller than a
node here, and GPU fields are rejected with an error.
Queue choice (from the bundled guide's table):
debug — 1–4 nodes, up to 2 h; the right place for short tests, but only
one running job per user.workq-route — the production default (1–176 nodes, up to 24 h) when you
leave queue_name blank.preemptable — up to 72 h and 10 nodes, but any job here can be killed
without warning whenever demand work needs the nodes. The backend renders
#PBS -r y automatically so a killed job reruns — still, never put work
here that can't survive a restart from scratch.demand — only after ALCF grants the user access (email support).pbs_rstat first, via the remote-command skill) as
attributes.reservation_id, not queue_name.Two Crux-specific traps the offline validation exists for: a job whose node
count or walltime doesn't fit its queue is accepted by the routing queue
and then silently dropped — you get a job id that never shows up in qstat.
And OMP_NUM_THREADS starts at 256 on compute nodes, so any threaded code
must set it explicitly (e.g. in spec.environment).
Parallelism is decided by the launcher, not the scheduler: with N nodes,
rank placement comes from your mpiexec line (-n total ranks, --ppn
per node, --depth + --cpu-bind for pinning, --env for variables) —
put it in launcher or write it into executable. PBS doesn't read the
spec's process fields, so say what you want mpiexec to do, not what you want
PBS to do.
Working directory and output: the backend submits from ~/agent/jobs, so a
job with no spec.directory runs there and its stdout/stderr land beside
its script as <name>.o<seq> / <name>.e<seq> (the site forces streamed
output). For real work, stage inputs/outputs under
/eagle/projects/<project>/... — heavy I/O doesn't belong in the 50 GB
home area — or under ~/agent/work/<name>/ for small things. Containers
aren't supported on Crux yet (Apptainer is planned, not present); build
natively with the PrgEnv-* modules and cc/CC/ftn wrappers, or a
python3 -m venv. Outbound internet needs the site proxy
(http://proxy.alcf.anl.gov:3128) exported in the job.
submit_job(facility="crux", spec=spec) — show the user the spec
(or a plain-language description of it) before submitting, unless
they've explicitly said to just run it. No exceptions for this call.{"job_id": ..., "script_path": ...} — the rendered script
is kept on the cluster; fs_view(facility="crux", path=script_path)
to inspect exactly what was submitted.get_resources(facility="crux") (live occupancy) and
get_facility(facility="crux") (static limits) — don't guess.~/agent/work/<descriptive-name>/, never in the
home-directory root. ~/agent/ is the agent's visible scratch area —
~/agent/jobs already holds every submitted script — and the home
root stays the user's own.spec.directory with fs_mkdir before submission.
Schedulers enter that directory before the script body and pre_launch
runs, so a mkdir in pre_launch is too late.search_docs(facility="crux", query=...) on the hpc-docs
server. It searches a bundled guide, not a live site — never invent a URL
to send the user to.cancel_job without confirming with the user first.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-configuringUse 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./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.