/rikyu:rikyu-demofrom rikyu
Walks through an interactive demo of RikyuAgent on the RIKEN Rikyu supercomputer: facility info, live cluster status, documentation search, filesystem operations, and job submission.
Ships in rikyu. 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.
Run each step in order. Present results as a readable narrative — not raw JSON dumps. Use markdown headers and tables to make it scannable. Pause after each step and show output before moving on.
Call get_facility. Present the key facts as a short table:
gpu partition — GPU count drives placement, not partition choice)Lead with one sentence: "The Rikyu supercomputer at RIKEN is an NVIDIA GB200 NVL4 cluster running nodes."
Call get_resources. Show a mini utilization bar for the gpu partition:
gpu ████████░░ 320/400 nodes busy
(Use █ for allocated, ░ for idle, scaled to ~10 chars. Add the idle count in plain text.)
Note how many idle nodes there are right now — that's roughly how much headroom exists for a job to start immediately.
Call search_docs with "how does the Grace Hopper architecture split memory between CPU and GPU, and what does that mean for data placement?"
This surfaces something genuinely GB200-specific: the NVLink-C2C unified memory model is unlike any x86+discrete-GPU cluster, and getting data placement wrong is a common performance mistake on Rikyu.
Show the top result: the breadcrumb and a short excerpt — no URL, this searches a guide bundled with the agent, not a live site. Then note whether the result came from vector search or BM25 keyword fallback (the method field) — if vector, say: "Semantic search is active — results are ranked by meaning, not just keyword matches." If BM25, say so plainly rather than implying a link exists to follow up.
Call fs_ls(".") to list the user's home directory. Show the listing cleanly (just names, sizes, dates — no raw flag noise). Highlight anything interesting: job scripts in agent/jobs/, scratch symlinks, project directories.
Then demonstrate the new filesystem tools:
fs_cp("agent/jobs/<most recent script>", "agent/demo-copy.sh") — copy the most recent job scriptfs_checksum("agent/demo-copy.sh") — show the SHA-256fs_mv("agent/demo-copy.sh", "agent/demo-renamed.sh") — rename it, note this is destructivefs_checksum("agent/demo-renamed.sh") — confirm the checksum matches (same file)Present this as: "Copy, checksum, move — the full filesystem toolkit."
Call get_job_statuses([]) (empty list = last 2 days).
If there are jobs, show them as a table: job ID | name | state | partition | elapsed. Highlight any FAILED jobs and offer to investigate.
If there are no recent jobs, say so and move straight to Step 6.
Tell the user: "Let's submit a quick 5-minute test job to verify end-to-end submission and output."
Submit via submit_job with this spec:
{
"name": "rikyu-demo",
"executable": "hostname && echo '---' && nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv,noheader",
"resources": {"gpus": 1, "processes_per_node": 1},
"attributes": {"duration": 300, "queue_name": "gpu"}
}
Show the user the rendered job ID and script path. Then call get_job_status(<job_id>) immediately and report the initial state + queue reason if present.
Poll get_job_status once every ~15 seconds (use run_command_on_cluster("sleep 15") as the wait). Stop when state is completed or failed (or after 5 polls — tell the user to check back with get_job_status if it's still queued).
Once completed, call fs_tail(<workdir>/slurm-<job_id>.out) and show the output. It should contain the node hostname and GPU info — confirm the GPU model matches what get_facility reported.
Tell the user: "Now let's run the same job inside a Singularity container — this is how you bring your own software environment to the cluster."
Check whether $HOME/ubuntu-22.04.sif exists with fs_stat("~/ubuntu-22.04.sif"). If it doesn't, skip this step and note that a .sif file is needed first (pull with singularity pull).
If it exists, submit via submit_job:
{
"name": "rikyu-demo-container",
"executable": "cat /etc/os-release && uname -m",
"resources": {"gpus": 1},
"attributes": {"duration": 300, "queue_name": "gpu"},
"container": {
"image": "$HOME/ubuntu-22.04.sif"
}
}
Poll to completion, then fs_tail the output. Point out:
aarch64 — the container runs natively on Grace--nv) was added automatically because the job requested GPUsSay: "The same spec works with any Singularity-compatible image — docker:// URIs, NGC containers, or a .sif you built yourself."
Summarize what just happened in 5 bullet points:
Then say: "From here you can submit real workloads with /rikyu-submitting-jobs, monitor them with /rikyu-monitoring-jobs, or ask anything about the cluster."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/rikyu-configuringUse when the user wants to set up, configure, or troubleshoot RikyuAgent — SSH access to the Rikyu cluster, the embedding endpoint for docs search (RAG), or the ~/.hpc-agent/rikyu.json file. Also use when rikyu tools fail with connection or embedding errors./rikyu-monitoring-jobsUse when the user asks about the status, progress, output, history, or failure of jobs on the Rikyu supercomputer, or about queue and node availability./rikyu-referenceUse when answering any question about Rikyu supercomputer specifics — login, accounts, partitions, modules, storage, policies — or when unsure about a cluster detail. Search the bundled guide instead of guessing.Other plugins' skills for the same job
npx claudepluginhub riken-rccs/rikyu-agent --plugin rikyu