/hpc-hokusai:hokusai-monitoring-jobsfrom hpc-hokusai
Monitors job status, progress, output, history, and failures on HOKUSAI BigWaterfall2 (HBW2). Also checks queue and node availability, fair-share priority, and provides triage guidance for common failure modes.
Ships in hpc-hokusai. 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="hokusai".
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="hokusai", 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="hokusai", job_ids=[])
for roughly the last two days, or pass specific IDs.get_resources(facility="hokusai") —
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="hokusai", path=...) for a running
job, or fs_view once it has finished.HBW2 orders jobs by fair-share priority, so a job can sit queued because your project's recent usage is high, not because the cluster is full. When a job is waiting, check both:
get_projects(facility="hokusai") — your fair-share standing and raw
usage per account (read live; it moves continuously).get_resources(facility="hokusai") — live partition occupancy.get_projects(facility="hokusai"); a project's new jobs stop starting
once its allowance is spent.native_state OUT_OF_MEMORY) — raise the memory
share, or move to the lmc partition (2.7 TiB nodes).native_state TIMEOUT) — raise duration, or move
from mpc (~24 h) to mpc_l (~72 h).OMP_NUM_THREADS to match resources.cpu_cores_per_process.module purge before switching.error while loading shared libraries — the run job is
missing a module load that the build used (MKL, Intel MPI); job shells
start with a clean environment, so repeat the module loads at runtime.Read the job's output and its status.meta_data.native_state together to
tell which of these it is. The exact submitted script is kept in
~/agent/jobs/ — fs_view(facility="hokusai", path=...) it when
debugging.
cancel_job(facility="hokusai", job_id=...) — confirm with the user
before calling this.update_job(facility="hokusai", 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 hokusai-reproducing), use
hpc_agent_core.client's wait_for_job(job_id, facility="hokusai")
rather than a hand-rolled polling loop.
Don't guess facility-specific failure modes beyond what's noted above — use
search_docs(facility="hokusai", 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 riken-rccs/hpc-agentic-sdk --plugin hpc-hokusai7 skills in this plugin
/hokusai-configuringUse when the user wants to set up, configure, or troubleshoot HOKUSAI BigWaterfall2 (HBW2) — SSH access, the embedding endpoint for docs search (RAG), or the ~/.hpc-agent/hokusai.json file. Also use when hokusai tools fail with connection or embedding errors./hokusai-demoInteractive demo of HOKUSAI BigWaterfall2 (HBW2) — walks through configuration, facility info, live cluster status, docs search, filesystem access, and a real job end to end./hokusai-referenceUse to answer questions about HOKUSAI BigWaterfall2 (HBW2) 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./hokusai-remote-commandUse when the user wants to run one or more shell commands on HOKUSAI BigWaterfall2 (HBW2)'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./hokusai-reproducingUse when the user asks to make a result on HOKUSAI BigWaterfall2 (HBW2) 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./hokusai-submitting-jobsUse when the user wants to run, submit, or launch a job on HOKUSAI BigWaterfall2 (HBW2). Covers partition/queue selection, JobSpec construction, submission, and known gotchas specific to this facility.2 plugins ship this exact skill · first indexed Oct 13, 2026