slurm-job-script-generator
Generate SLURM `sbatch` job scripts and sanity-check HPC resource requests (nodes, tasks, CPUs, memory, GPUs) for simulation runs. Use when preparing submission scripts, deciding MPI vs MPI+OpenMP layouts, standardizing `#SBATCH` directives, or debugging job launch configuration (`sbatch`/`srun`).
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill slurm-job-script-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# SLURM Job Script Generator ## Goal Generate a correct, copy-pasteable SLURM job script (`.sbatch`) for running a simulation, and surface common configuration mistakes (bad walltime format, conflicting memory flags, oversubscription hints). ## Requirements - Python 3.8+ - No external dependencies (Python standard library only) - Works on Linux, macOS, and Windows (script generation only) ## Inputs to Gather | Input | Description | Example | |-------|-------------|---------| | Job name | Short identifier for the job | `phasefield-strong-scaling` | | Walltime | SLURM time limit | `00:30:00` | | Partition | Cluster partition/queue (if required) | `compute` | | Account | Project/account (if required) | `matsim` | | Nodes | Number of nodes to allocate | `2` | | MPI tasks | Total tasks, or tasks per node | `128` or `64` per node | | Threads | CPUs per task (OpenMP threads) | `2` | | Memory | `--mem` or `--mem-per-cpu` (cluster policy dependent) | `32G` | | GPUs | GPUs per node (optional) | `4` | | Working directory | Where the run should execute | `$SLURM_SUBMIT_DIR` | | Modules | Environment modules to load (optional) | `gcc/12`, `openmpi/4.1` | | Run command | The command to launch un
- Goal
- Requirements
- Inputs to Gather
- Decision Guidance
- MPI vs MPI+OpenMP layout
- Memory flag selection
- Script Outputs (JSON Fields)
- Workflow
- CLI Examples
- Conversational Workflow Example
- Error Handling
- Limitations
- References
- Version History
Preview a job script (prints to stdout) python3 skills/hpc-deployment/slurm-job-script-generator/scripts/slurm_script_generator.py \ Write to a file and also emit structured JSON python3 scripts/slurm_script_generator.py --job-name run --time 02:00:00 --nodes 2 --ntasks-per-node 64 --cpus-per-task 2 -- -- ./simulate
What does the slurm-job-script-generator skill do?
Generate SLURM `sbatch` job scripts and sanity-check HPC resource requests (nodes, tasks, CPUs, memory, GPUs) for simulation runs. Use when preparing submission scripts, deciding MPI vs MPI+OpenMP layouts, standardizing `#SBATCH` directives, or debugging job launch configuration (`sbatch`/`srun`).
How do I install it?
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill slurm-job-script-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
