slurm-job-debug-template

slurm-job-debug-template is a skill for Claude Code, Codex from ma-compbio-lab/SkillFoundry. It costs 31 tokens per session (592 once invoked), scanned A, original, Apache-2.0.

A workflow for creating and checking a small Slurm batch job on a real computing cluster. Slurm is software that schedules jobs and records their resource use.

In plain words
What is it for?
Use it to render an sbatch script, submit a smoke test, and inspect its job ID, logs, and final accounting.
Why use it?
It catches problems with the queue, environment, command, and logs before a heavier job is submitted. The returned accounting record confirms whether the cluster run completed as expected.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to render an sbatch script, submit a smoke test, and inspect its job ID, logs, and final accounting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ma-compbio-lab/SkillFoundry --skill slurm-job-debug-template
Clone the repo
git clone --depth 1 https://github.com/ma-compbio-lab/SkillFoundry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slurm-job-debug-template

README.md
[![agentmods](https://agentmods.dev/badge/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template/github.svg)](https://agentmods.dev/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template)
Your own site
<a href="https://agentmods.dev/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template"><img src="https://agentmods.dev/badge/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for slurm-job-debug-template

Your own site · 80×15
<a href="https://agentmods.dev/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template"><img src="https://agentmods.dev/badge/skills/ma-compbio-lab/skillfoundry/slurm-job-debug-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 592 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00592
Opus 5 $0.00015 $0.00296
Sonnet 5 $0.00006 $0.00118
Haiku 4.5 $0.00003 $0.00059

Measured 5d ago against content hash e2ab17070189, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

slurm-job-debug-template scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/render_sbatch.py, scripts/submit_smoke_job.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hpc/slurm-job-debug-template/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 61 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 61 lines · 31 tokens per session scan A e2ab17070189

Subscribe to this mod's changes

slurm-job-debug-template is a skill published in the GitHub repository ma-compbio-lab/SkillFoundry (38 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 592 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

academic-email

Professional academic email workflow (≤200 words). Invokes AcademicEmailAgent to draft a concise email with subject line and follow-up action for one of five standard email types: collaboration, question, interview, recommendation, or application. Output carries HUMAN REVIEW REQUIRED; no auto-send (§16.3).

TaewoooPark/MagLab · 62 tokens

arxiv-search

Skill "arxiv-search" from TaewoooPark/MagLab, covering category scoping, query families (3–6 per topic), version and doi resolution, tier classification and output contract.

TaewoooPark/MagLab · 68 tokens

cover-letter

Journal submission cover letter workflow (≤250 words). Invokes CoverLetterAgent to draft a concise novelty-focused cover letter from the author's key results. Output carries HUMAN REVIEW REQUIRED; no auto-send. All personal/institutional fields are marked [FILL] for the author to complete (§16.3).

TaewoooPark/MagLab · 64 tokens

revision-letter

Point-by-point peer-review response letter workflow for journal resubmission. Invokes RevisionLetterAgent to quote each reviewer comment verbatim, draft a response, and add a change-location marker. Outputs carry HUMAN REVIEW REQUIRED; no auto-send. A DOI or manuscript location is required for every factual response…

TaewoooPark/MagLab · 68 tokens

literature-review

Systematic literature review workflow — search → screening → quality assessment → topic-centred synthesis. Includes local-gap analysis. A DOI citation is required for every factual claim (§14.7). Activated by the maglab lit search command and the synthesis-editor agent.

TaewoooPark/MagLab · 55 tokens

literature-search

Broad literature search for magnetism & spintronics — OpenAlex REST query strategy, query family generation, tier classification, and evidencematrix construction (§14.3·§14.7). Activated by the maglab lit search command and the research orchestration search-scout agent.

TaewoooPark/MagLab · 60 tokens