/hpc-octopus:octopus-reproducingfrom hpc-octopus
Use when the user asks to make a result on Octopus (RIKEN R-CCS) 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.
Ships in hpc-octopus. 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.
Build a linear Jupyter notebook that reproduces what you and the user just
did, by calling the same MCP tool surface you've been using, via
hpc_agent_core.client.
get_resources,
submit_job, fs_download, ...) — use these normally for the task
itself, exactly as always.hpc_agent_core.client. This is the only place that code runs.from hpc_agent_core.client import connect_sync, pinned_params
CACHE_DIR = "./.hpc_cache/<short-name-for-this-notebook>"
hpc = connect_sync(
pinned_params(
"https://github.com/william-dawson/hpc-rookery.git",
"hpc-mcp",
ref="main",
),
mode="lazy",
cache_dir=CACHE_DIR,
)
There is no subdirectory= argument — this repo's Python project lives at
its own root.
facility="octopus" explicitlyjob = hpc.submit_job(facility="octopus", spec={...}) # whatever the real spec was
status = hpc.wait_for_job(job["job_id"], facility="octopus")
result = hpc.fs_download(facility="octopus", remote_path="...", local_path="./downloads/result.json")
hpc.close()
No await, no async with anywhere — connect_sync gives plain blocking
calls. wait_for_job and fs_download already cache correctly on their
own (terminal poll result only; real downloaded bytes) — call them exactly
like this, no extra logic needed around them.
| mode | behavior | use it for |
|---|---|---|
live | always hits the real cluster | the first real run, to validate |
lazy | cache hit if present, else live | iterating on later cells |
replay | cache only, zero SSH | sharing the finished notebook |
Record the first real workflow with mode="record" only when Octopus is
reachable, then replay the completed cache offline. Include the chosen GPU
vendor, partition, GRES count, modules or container, rendered script, job
status, and output. State that the hub port was built without live Octopus
access until a fresh recording proves otherwise.
The user's own project directory, or wherever they say. It is a new file for their work — not something written into any plugin installation or repository.
mode="live" from an empty CACHE_DIR (see the
billing note above before doing this). Then copy that resulting cache
directory to sit next to the notebook file, and tell the user to commit
both together if they're versioning this.get_resources(facility="octopus") and pick from that — don't guess.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub william-dawson/hpc-rookery --plugin hpc-octopusOther plugins' skills for the same job
7 skills in this plugin
/octopus-configuringUse when the user wants to set up, configure, or troubleshoot Octopus (RIKEN R-CCS) — SSH access, the embedding endpoint for docs search (RAG), or the ~/.hpc-agent/octopus.json file. Also use when octopus tools fail with connection or embedding errors./octopus-demoInteractive demo of Octopus (RIKEN R-CCS) — walks through configuration, facility info, live cluster status, docs search, filesystem access, and a real job end to end./octopus-monitoring-jobsUse when the user asks about the status, progress, output, history, or failure of jobs on Octopus (RIKEN R-CCS), 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.