/hpc-fugaku:fugaku-monitoring-jobsfrom hpc-fugaku
Monitors job status, progress, output, history, and failures on the Fugaku supercomputer. Also checks queue and node availability.
Ships in hpc-fugaku. 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="fugaku".
Use these tools even when you're checking in on your own initiative — don't
fall back to run_command_on_cluster with raw squeue/sacct just
because there's no new user message prompting it; the tools below return
the same information normalized, plus any facility-specific lag/quirk
handling noted below.
get_job_status(facility="fugaku", job_id=...) — state
is normalized (queued/active/completed/failed/canceled/held/
unknown); meta_data.native_state is the scheduler's own. A queued
job's message explains the wait.get_job_statuses(facility="fugaku", job_ids=[])
for roughly the last two days, or pass specific IDs.get_resources(facility="fugaku") —
per-partition allocated/idle/other/total node counts. Idle nodes can
start jobs immediately.slurm-<job_id>.out inside the
directory the job ran in. Get that directory from the job's own status
record (meta_data.workdir) rather than assuming $HOME — a job whose
spec set directory writes its output there, not in the home directory.
Then read it with fs_tail(facility="fugaku", path=...) for a running
job, or fs_view once it has finished.ACC/QUE → queued · HLD/SPD/SPP → held ·
RNP/RUN/RNA/RNE/RNO/RSM → active · EXT → completed ·
CCL → canceled · ERR/RJT → failed. The raw code is in
meta_data.native_state.
EXT only means the scheduler finished with the job — PJM's live
status table has no exit-code column at all, so a failed program still
shows as completed. Always read the job's output before telling the
user it worked.
PJM writes <name>.<job_id>.out/.err into the submission directory
(~/agent/jobs/ by default). But Fujitsu MPI intercepts per-rank stdout
and writes it somewhere else entirely:
output.<jobid>/<rank_path>/stdout.<step>.<rank> inside the job's working
directory. The PJM .out file is then often empty or holds only the
scheduler wrapper.
So for an MPI job, find the real output with:
find . -path "*output.<jobid>*" -name "stdout*" | sort
($PJM_JOBID holds the current job ID inside a running job.) Run that via
run_command_on_cluster(facility="fugaku", ...), then read what it finds
with fs_view/fs_tail.
A shell redirect on mpiexec (mpiexec -n 48 ./app > app.out) captures
nothing from the ranks. To put rank output somewhere predictable, use
Fujitsu MPI's own options:
mpiexec -n 48 -stdout-proc run.rankout -stderr-proc run.rankerr ./app
cat run.rankout.*.0 > run.out # files are <prefix>.<seq>.<rank>
An A64FX node has 32 GiB of HBM2 shared by all its ranks. A run that dies with return code 137 (SIGKILL), with no error message from the program, was most likely killed for exceeding it. Pure-MPI layouts (48 ranks per node) duplicate per-rank data the most and hit this first. Check the per-rank memory estimate before blaming the code, and fall back to fewer ranks with more threads (e.g. 4×12).
ERR before the job ever startsA job that goes to ERR with no output file and no start date was
rejected by the pre-execution gate check, not by your program. Get the
reason with:
pjstat -s <job_id>
and read its REASON line. The known cause of GATE CHECK here is a
comma-separated PJM_LLIO_GFSCACHE value — see
fugaku-submitting-jobs; submit_job now rejects that before
submitting. Note RESOURCE GROUP may show a sub-group like small-s5
rather than the small you asked for; that is normal and not a
problem — healthy jobs run in it too. pjstat --history returns nothing
on this deployment, so pjstat -s is the only tool that answers this.
run_command_on_cluster(facility="fugaku", command="pjstat --limit") —
concurrent-job and node/core quotas.run_command_on_cluster(facility="fugaku", command="pjacl --rg <name>") —
a resource group's node/elapse limits for this account, which is what
actually governs whether a submission is accepted.It returns raw pjstat --rsc/pjshowrsc output. Those commands did not
return usable per-partition occupancy during this port's live testing, so
treat it as text, not structured data — the resource-group node/time limits
in get_facility are the more reliable static reference.
update_job can only change the elapse limit (via pjalter), and only
while the job is still queued or held. Everything else — resource group,
node count, project group — means cancel and resubmit.
cancel_job(facility="fugaku", job_id=...) — confirm with the user
before calling this.update_job(facility="fugaku", job_id=..., spec={...}) — pass a
JobSpec containing only what should change, e.g.
{"attributes": {"duration": "02:00:00"}}. Only fields a scheduler can
change after submission are applied (job name, wall time, partition,
account, reservation, node count); anything else you set is reported back
as not applied. Only affects jobs still queued or running.Interactively, just call get_job_status again after a pause. If you're
writing a reproducible notebook instead (see fugaku-reproducing), use
hpc_agent_core.client's wait_for_job(job_id, facility="fugaku")
rather than a hand-rolled polling loop.
Don't guess facility-specific failure modes beyond what's noted above — use
search_docs(facility="fugaku", query=...) on the hpc-docs server.
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-fugaku8 skills in this plugin
/fugaku-buildUse when building, compiling, or linking software on Fugaku — choosing a compiler toolchain (Fujitsu vs LLVM vs GCC), MPI, BLAS/LAPACK, cross-compilation for A64FX, and verifying a build actually produces working parallel code./fugaku-configuringUse when the user wants to set up, configure, or troubleshoot Fugaku — SSH access, the embedding endpoint for docs search (RAG), or the ~/.hpc-agent/fugaku.json file. Also use when fugaku tools fail with connection or embedding errors./fugaku-demoInteractive demo of Fugaku — walks through configuration, facility info, live cluster status, docs search, filesystem access, and a real job end to end./fugaku-referenceUse to answer questions about Fugaku 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./fugaku-remote-commandUse when the user wants to run one or more shell commands on Fugaku'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./fugaku-reproducingUse when the user asks to make a result on Fugaku 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.2 plugins ship this exact skill · first indexed Nov 12, 2026