Slurm job debug template

From ma-compbio-lab/SkillFoundry · View interactive version

Slurm job debug template is an AI agent skill from the GitHub repository ma-compbio-lab/SkillFoundry. Use this skill to render, submit, and inspect a minimal Slurm smoke job before submitting heavier workloads on a real cluster.

How to use this skill

Skill file

Purpose

Generate a conservative sbatch template, submit it to Slurm, and capture the accounting record needed to verify the cluster path end to end.

When to use

When not to use

Inputs

Outputs

Requirements

Procedure

  1. Run python3 skills/hpc/slurm-job-debug-template/scripts/render_sbatch.py --command "echo hello" --job-name smoke.
  2. Inspect the generated script or save it with --out.
  3. Submit a verified smoke job with python3 skills/hpc/slurm-job-debug-template/scripts/submit_smoke_job.py --partition cpu --job-name slurm-smoke --sleep 2 --out slurm/reports/slurm-smoke.json.
  4. Inspect the returned job_id, the log paths in slurm/logs/, and the accounting block from sacct.

Validation

Failure modes and fixes

Safety and limits

Examples

Provenance

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.