slurm

Write, debug, and optimize SLURM job scripts for HPC clusters.

11|1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/michaelrizvi/claude-config --skill slurm-michaelrizvi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slurm
Source: https://github.com/michaelrizvi/claude-config/tree/main/skills/slurm
Command: npx skills add https://github.com/michaelrizvi/claude-config --skill slurm-michaelrizvi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps researchers and engineers write, debug, and optimize SLURM job scripts for HPC clusters, reducing time-to-submit and minimizing common resource-related errors.

Core Features & Use Cases

  • Job script guidelines and directive best practices for sbatch, salloc, and squeue workflows.
  • Resource planning and validation, including CPU/GPU/RAM requests and fair-share considerations.
  • Use Case: prepare and submit a multi-step training job on a SLURM cluster with proper dependencies and failure handling.

Quick Start

Create a simple sbatch script that requests 1 GPU for 4 hours and explain how to submit it to the cluster.

Frequently Asked Questions about slurm

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

FAQPage Schema
How do I write a SLURM job script for GPU training on an HPC cluster?

To write a SLURM job script for GPU training, you define job directives and resource requests like CPUs, GPUs, and RAM in an sbatch script. This ensures proper resource allocation and includes safety checks for your HPC cluster submission.

Can I set up dependencies between multiple SLURM sbatch jobs?

Yes, you can set up dependencies between multiple SLURM sbatch jobs to manage multi-step training workflows. This involves configuring job directives within your scripts to handle execution order and manage failure handling across the cluster.

How does resource allocation work for SLURM salloc and squeue workflows?

Resource allocation for SLURM salloc and squeue workflows involves specifying CPU, GPU, and RAM requests while considering fair-share guidelines. Proper validation prevents common resource-related errors and streamlines job execution on HPC clusters.

Why does my SLURM job fail to submit with resource-related errors?

SLURM job submission often fails due to misconfigured resource requests or missing safety checks in your job scripts. Debugging with commands like sacct and nvidia-smi helps identify allocation issues and minimize these errors on HPC clusters.

What is the best way to debug a failed SLURM job script?

The best way to debug a failed SLURM job script is to use built-in debugging commands like sacct to check job accounting data and nvidia-smi for GPU status. This identifies resource bottlenecks and optimizes your HPC cluster workflows.