slurm-job

Generate Slurm sbatch scripts with partition, account, GPU, and validation directives.

16|4|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/umich-foreseer/lab-claude-config --skill slurm-job
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slurm-job
Source: https://github.com/umich-foreseer/lab-claude-config/tree/main/shared/skills/slurm-job
Command: npx skills add https://github.com/umich-foreseer/lab-claude-config --skill slurm-job

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automate the creation and correction of Slurm sbatch scripts to ensure correct partitions, accounts, GPU resources, and safe defaults for the active HPC cluster.

Core Features & Use Cases

  • Generate or modify sbatch directives for partition, account, GPUs, CPUs, memory, and time to align with cluster policies.
  • Apply best-practice defaults (logging, output paths, environment activation hints) and validate directives for common HPC jobs such as training, simulations, and data processing.

Quick Start

Provide your job details (name, partition, GPUs, walltime, and environment) and the tool will generate a ready-to-submit sbatch script.

Frequently Asked Questions about slurm-job

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an sbatch script with correct GPU and partition settings for an HPC cluster?

An sbatch script for HPC jobs should include correct partition, account, GPU requests, and best-practice defaults. This skill generates a ready-to-submit script with proper SBATCH directives, logging, output paths, and environment activation hints validated against cluster rules.

What is the best way to automate Slurm job script creation for training and simulations?

Automating Slurm job script creation involves applying best-practice defaults for logging, output paths, and environment activation. This skill validates directives for common HPC workloads like training, simulations, and data processing to ensure safe defaults for the active cluster.

Does this sbatch generator support multi-node jobs and varying GPU types?

Yes, this sbatch generator supports HPC jobs with varying GPU types and multi-node needs. It aligns GPU requests, CPUs, memory, and time directives with the active cluster's policies to output a ready-to-submit script for training, simulations, or data processing workloads.

How do I validate sbatch directives against cluster rules before submitting a Slurm job?

Validating sbatch directives requires checking partition, account, and GPU requests against cluster policies. This skill creates or modifies your job script while applying robust validation to ensure correct resource allocation and safe defaults for the current HPC environment.

What should I include in an sbatch script for HPC data processing jobs?

An sbatch script for data processing should include proper SBATCH directives for partition and account, GPU requests, logging, output paths, and environment activation hints. This skill generates a ready-to-submit script incorporating these best-practice defaults automatically.