ma-compbio-lab/skillfoundry/slurm-job-debug-template

Claude Code and agent skill by ma-compbio-lab/skillfoundry

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill to render, submit, and inspect a minimal Slurm smoke job before submitting heavier workloads on a real cluster.

Install

npx vskill@latest install ma-compbio-lab/skillfoundry/slurm-job-debug-template

SKILL.md

The same SKILL.md was published earlier as ma-compbio-lab/skillfoundry/slurm-job-debug-template.

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

  • You need a tiny Slurm smoke job.
  • You want a reusable starting point for queue, environment, and log validation.

When not to use

  • You need multi-node or GPU tuning guidance beyond a first smoke job.

Inputs

  • Command string
  • Optional job name, partition, runtime, memory, and output path

Outputs

  • Rendered sbatch script
  • JSON submission and sacct summary

Requirements

  • Python 3.13+
  • sbatch, squeue, and sacct
  • A real Slurm cluster

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

  • Renderer exits successfully.
  • Output contains #SBATCH directives and the command body.
  • Submitted smoke job reaches State=COMPLETED.
  • ExitCode is 0:0.

Failure modes and fixes

  • Missing partition/account information: add them before submission.
  • Output paths wrong: switch to cluster-appropriate scratch or log paths.
  • sacct lags briefly after completion: retry once accounting catches up.

Safety and limits

  • Keep resource requests small for initial smoke jobs.
  • Use a CPU partition and a short walltime for smoke checks.

Examples

  • python3 .../render_sbatch.py --command "python analysis.py" --partition short --time 00:10:00 --mem 2G
  • python3 .../submit_smoke_job.py --partition cpu --job-name slurm-smoke --sleep 1

Provenance

  • Slurm quick start: https://slurm.schedmd.com/quickstart.html
  • Slurm sbatch reference: https://slurm.schedmd.com/sbatch.html
  • sacct reference: https://slurm.schedmd.com/sacct.html

Related skills

  • snakemake-toy-workflow-starter

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
42
Repository forks
5
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template/badge)](https://verified-skill.com/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template)

Something wrong with this skill or its page? Tell us.