Laitangtang-lab-workflows

Openfoam Cluster Ops — Data skill for Claude Code

Data community

Run OpenFOAM on SLURM HPC clusters without losing cases or data: sbatch deployment packs, queue inspection, harvesting finished runs back to the Windows canonical copy, storage quota management, slow.

How to install Openfoam Cluster Ops

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Laitangtang-lab-workflows/openfoam-cluster-ops and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Openfoam Cluster Ops does

Run OpenFOAM on SLURM HPC clusters without losing cases or data: sbatch deployment packs, queue inspection, harvesting finished runs back to the Windows canonical copy, storage quota management, slow-node and failed-job triage. Agent skill (SKILL.md). AI-maintained. CC0.

Alternatives in Data

  • Portaljs Architect — Recommend a data-portal architecture (storage, compute, catalog, access, hosting, metadata) from your needs, t 2.3k ★
  • Motion Skills — 50 open-source skills that teach your AI coding agent to make motion graphics, animation & video — kinetic typ 477 ★
  • Check Daily — Check the daily pipeline's state — last run, today's report files, Sonnet quota, recent failures 355 ★

README

openfoam-cluster-ops

**Run OpenFOAM on a SLURM HPC cluster without losing cases or data: deployment, patrol, harvest, quota management and troubleshooting — the full lifecycle from bundle upload to results back home.**

[!NOTE] This repository is **written and maintained entirely by AI agents** under human direction — see [AI-maintained](#ai-maintained). Documentation is English-first; a Chinese README is available ([README.zh-CN.md](README.zh-CN.md)), and a Chinese SKILL companion ([SKILL.zh-CN.md](SKILL.zh-CN.md)).

Why

HPC clusters punish improvisation: array jobs race each other unpacking bundles, running jobs cannot get their time limit extended, quota fills up mid-batch, scp silently delivers 0-byte files, and one careless `rm` erases the only true mesh. This handbook is the codified scar tissue of real incidents — every iron rule traces to a confirmed failure — plus five operational scripts that carry the discipline for you:

  • Deployment — pre-extract bundles on the login node; sbatch templates for clean rerun and true resume (progress-preserving).
  • Patrol — one read-only command for queue, per-case progress and capacity.
  • Harvest — a strict five-step pipeline (detect End → reconstruct segment ends → pack with constant/ → rsync back → verify) where transfer and deletion are always separate steps and deletion only ever runs against a fixed whitelist.
  • Capacity — segment-end + sliding-window pruning so N cases fit a finite quota without losing anything scientifically needed.
  • Diagnosis — the three-step slow-case diagnosis (same-family comparison → CPU occupancy → iteration health) and a troubleshooting table covering ABI mismatches, PETSc link errors, scotch-vs-geometric decomposition and more.

The skill format

The core of this repository is a **`SKILL.md` agent skill** (the convention used by Claude Code, DeepSeek Harness and other agent harnesses). Drop the repo into your harness's skill directory and an AI sessi