agentleFS
lacerbilacerbi/dotclaude/skills/hpc/SKILL.md

hpc

Skill2 starsChanged 2 months agoMITView on GitHub

Launch and manage jobs on the HPC cluster (INVOKE ONLY when the user explicitly runs /hpc or asks to use this skill).

  • Reads credentials

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look for its path in the user's global ~/.claude/CLAUDE.md, under an ## hpc-launcher location heading.

    line 14
  2. Very specific:

    If it isn't there, discover it: run command -v hpc with the Bash tool (Git Bash) and take the directory of that path.

    line 16
  3. Very specific:

    Keep <path> ~-relative when it's under home — that file is public, so a machine-specific absolute won't travel (and needlessly shows the …

    line 26
  4. Very specific:

    Read the live files. Do not rely on remembered defaults (partitions, modules, torch module/wheel, walltimes) — they live in the cluster's …

    line 45

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/hpc — launch work on the HPC cluster

You run the hpc launcher yourself to put the user's work on the cluster. That is the point of the tool — do not hand commands to the user to run, unless asked.

1. Find the launcher

  1. Look for its path in the user's global ~/.claude/CLAUDE.md, under an ## hpc-launcher location heading.
  2. If it isn't there, discover it: run command -v hpc with the Bash tool (Git Bash) and take the directory of that path. If that fails, ask the user where the hpc-launcher folder is.
  3. Record it so later calls skip discovery — append to ~/.claude/CLAUDE.md:

    ## hpc-launcher location
    The `hpc` launcher (for the /hpc skill) is at: `<path>`

    Keep <path> ~-relative when it's under home — that file is public, so a machine-specific absolute won't travel (and needlessly shows the username).

2. Read the launcher's own docs

  • <path>/README.md — what it does, setup, every command. Always.
  • <path>/clusters/<HPC_CLUSTER>.md — facts for the cluster this repo targets (HPC_CLUSTER in .hpc.env; hpc clusters lists them). Read it when running or configuring a job — partitions, filesystem, gotchas (e.g. Roihu's split login hosts + 24 h SSH cert).
  • A cluster can have notes without a launcher profile: a clusters/<name>.md with no <name>.env beside it, for a cluster hpc does not drive. For work on such a cluster, read its notes and follow them (how to connect, the rules for using it, what to check) instead of running hpc. List <path>/clusters/ to see which clusters have notes. Those notes hold private details: never copy them into a public repository.
  • <path>/AGENTS.md, DESIGN.md, TODO.md — only when you need rationale, limitations, or current status.

Read the live files. Do not rely on remembered defaults (partitions, modules, torch module/wheel, walltimes) — they live in the cluster's clusters/<name>.env profile and hpc-env.example, not in your memory.

3. Run it yourself

  • hpc is bash; use the Bash tool (Git Bash / MSYS), not PowerShell.
  • Execute the commands directly — hpc run, hpc test, hpc status, hpc logs, hpc collect, hpc upload, hpc wait, hpc init, etc. Don't delegate them to the user. (For unattended/scripted use, hpc wait blocks until a job is done and exits its rc, and hpc status --json / hpc logs --once are non-interactive — see the README.)
  • Auth: the user's ssh-agent holds the cluster key. If an hpc call fails on SSH auth, ask the user to load it once (ssh-add their key), then keep running the commands yourself.
  • A project needs a .hpc.env (run hpc init) before hpc run / hpc test.
  • hpc cancel refuses to kill a RUNNING job unless you pass --force. If you were only cancelling because the job was stuck in the queue, the refusal means it has now started — so the reason to cancel is gone; let it run. Only --force if you'd kill it regardless of queue state (bugged code, wrong config, superseded run).

4. Carry out the user's request, following the docs you just read.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.