WritingScientific Writing & PublishingFreedomIntelligence/OpenClaw-Medical-SkillsPaper Writing & Submission
SL

slurm-job-script-generator

Maintainer FreedomIntelligence · Last updated April 1, 2026

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`).

OpenClawNanoClawWritingSubmissionslurm-job-script-generator📊 data science & toolscomputational simulation & ontologygenerate

Original source

FreedomIntelligence/OpenClaw-Medical-Skills

https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/slurm-job-script-generator

Maintainer
FreedomIntelligence
License
MIT
Last updated
April 1, 2026

Skill Snapshot

Key Details From SKILL.md

2 min

Key Notes

  • 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).
  • python3 skills/hpc-deployment/slurm-job-script-generator/scripts/slurm_script_generator.py \ --job-name phasefield \ --time 00:10:00 \ --partition compute \ --nodes 1 \ --ntasks-per-node 8 \ --cpus-per-task 2 \ --mem 16G \ --module gcc/12 \ --module openmpi/4.1 \ -- \./simulate --config config.json.

Source Doc

Excerpt From SKILL.md

Requirements

  • Python 3.8+
  • No external dependencies (Python standard library only)
  • Works on Linux, macOS, and Windows (script generation only)

Inputs to Gather

InputDescriptionExample
Job nameShort identifier for the jobphasefield-strong-scaling
WalltimeSLURM time limit00:30:00
PartitionCluster partition/queue (if required)compute
AccountProject/account (if required)matsim
NodesNumber of nodes to allocate2
MPI tasksTotal tasks, or tasks per node128 or 64 per node
ThreadsCPUs per task (OpenMP threads)2
Memory--mem or --mem-per-cpu (cluster policy dependent)32G
GPUsGPUs per node (optional)4
Working directoryWhere the run should execute$SLURM_SUBMIT_DIR
ModulesEnvironment modules to load (optional)gcc/12, openmpi/4.1
Run commandThe command to launch under SLURM./simulate --config cfg.json

MPI vs MPI+OpenMP layout

Rule of thumb: if you see diminishing strong-scaling efficiency at high MPI ranks, try fewer ranks with more threads per rank (and measure).

Use cases

  • Use when preparing submission scripts, deciding MPI vs MPI+OpenMP layouts, standardizing `#SBATCH` directives, or debugging job launch configuration (`sbatch`/`srun`).

Not for

  • Do not treat this catalog entry as a substitute for the full upstream workflow.

Related skills

Related skills

Back to directory
BI
WritingScientific Writing & Publishing

bio-alignment-io

Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO. Supports Clustal, PHYLIP, Stockholm, FASTA, Nexus, a…

OpenClawNanoClawWriting
FreedomIntelligence/OpenClaw-Medical-SkillsView
DO
WritingScientific Writing & Publishing

doc-coauthoring

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical s…

OpenClawNanoClawWriting
FreedomIntelligence/OpenClaw-Medical-SkillsView
PA
WritingScientific Writing & Publishing

paper-polish-workflow

Systematic top-down workflow for polishing academic papers. Structure to logic to expression with user confirmation at each step.

Claude CodeWriting
Lylll9436/Paper-Polish-Workflow-skillView
PP
WritingScientific Writing & Publishing

ppw:abstract

Generate or optimize academic paper abstracts using the 5-sentence Farquhar formula. Supports generate-from-scratch and restructure-existing…

Claude CodeWriting
Lylll9436/Paper-Polish-Workflow-skillView