duke-cluster

duke-cluster is a skill for Claude Code, Codex from TianchenGuan/duke-cs-cluster-skill. It costs 64 tokens per session (3,923 once invoked), scanned A, original, MIT.

A set of instructions for submitting and troubleshooting jobs on Duke University's Slurm computing cluster, a shared system for running workloads on remote machines.

In plain words
What is it for?
Use it before submitting Slurm jobs, when a job cannot be scheduled, or when selecting compute resources on the Duke CS cluster.
Why use it?
It helps choose suitable partitions, GPUs, memory, time limits, storage locations, and environment settings so jobs can run and be scheduled correctly.

Skill for Claude CodeCodex

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

Good fit Use it before submitting Slurm jobs, when a job cannot be scheduled, or when selecting compute resources on the Duke CS cluster.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tianchenguan/duke-cs-cluster-skill/duke-cluster
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 TianchenGuan/duke-cs-cluster-skill --skill duke-cluster
Clone the repo
git clone --depth 1 https://github.com/TianchenGuan/duke-cs-cluster-skill

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 duke-cluster

README.md
[![agentmods](https://agentmods.dev/badge/skills/tianchenguan/duke-cs-cluster-skill/duke-cluster/github.svg)](https://agentmods.dev/skills/tianchenguan/duke-cs-cluster-skill/duke-cluster)
Your own site
<a href="https://agentmods.dev/skills/tianchenguan/duke-cs-cluster-skill/duke-cluster"><img src="https://agentmods.dev/badge/skills/tianchenguan/duke-cs-cluster-skill/duke-cluster/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 duke-cluster

Your own site · 80×15
<a href="https://agentmods.dev/skills/tianchenguan/duke-cs-cluster-skill/duke-cluster"><img src="https://agentmods.dev/badge/skills/tianchenguan/duke-cs-cluster-skill/duke-cluster.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,923 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.00064 $0.03923
Opus 5 $0.00032 $0.01962
Sonnet 5 $0.00013 $0.00785
Haiku 4.5 $0.00006 $0.00392

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

Security

Grade A, and why

duke-cluster 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 11d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/check_cluster_load.sh, scripts/check_gpu_contention.sh, scripts/check_my_jobs.sh, …), 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.

duke-cluster/SKILL.md · 250 lines

How it starts

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

Duke CS Compute Cluster

Skill version: 3 Applies to: Duke Computer Science Slurm cluster (login.cs.duke.edu) Last verified: 2026-04-13 via sinfo, scontrol show partition, sacctmgr, module avail, 12 smoke jobs. Regenerate with: bash scripts/verify_skill.sh and update tables. Docs: https://computing.cs.duke.edu — subpages: Compute/{cluster, slurm, gpu-computing}, Storage/disk_usage, Software/{environment-modules, apptainer}.


Pre-Flight Checklist

Every job script should do all of the following. Copy from templates/ — don't reconstruct from memory.

  1. set -euo pipefail — fail fast on errors, undefined vars, broken pipes.
  2. Set cache dirs explicitly (never rely on inheritance):
    export HF_HOME=/usr/xtmp/$USER/.cache/huggingface
    export TORCH_HOME=/usr/xtmp/$USER/.cache/torch
    export PIP_CACHE_DIR=/usr/xtmp/$USER/.cache/pip
    
  3. Always specify --mem — the default is 4.5 GB, too low for any real work.
  4. Always specify --time — the default is 4 days, which blocks scheduling.
  5. Point --output/--error to /usr/xtmp/%u/... or $HOME — never /tmp (node-local, invisible from login node).
  6. Log GPU info: nvidia-smi -L 2>/dev/null || echo 'none'

Partitions

Only compsci and compsci-gpu are generally accessible. Other partitions (grisman, wiseman, nlplab, nlplab-core, bhuwan, rudin, skynet, wills) are lab-specific — submit with -A PARTITIONNAME -p PARTITIONNAME.

Partition Purpose Default time Max time Nodes Total CPUs GPUs? Default mem
compsci CPU work 4 days 90 days 48 2,448 No 4.5 GB
compsci-gpu* GPU work 4 days 90 days 62 3,192 Yes (217 total) 4.5 GB

* compsci-gpu is the default partition. No debug partition exists — use --time=00:05:00 for quick smoke tests. No preemption (PreemptMode=OFF).

Read the full file on GitHub · 250 lines

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. 11d ago First seen · 250 lines · 64 tokens per session scan A 18b74d32f04d

Subscribe to this mod's changes

duke-cluster is a skill published in the GitHub repository TianchenGuan/duke-cs-cluster-skill (6 stars, last pushed 5mo ago), licensed MIT. It adds 64 tokens to every session and 3,923 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

latchbio-integration

Build, register, debug, and operate bioinformatics workflows on Latch using the Python SDK, CLI, Latch Data and Registry, Nextflow, Snakemake, programmatic execution, and Latch MCP. Use when authoring or deploying Latch workflows, configuring resources or interfaces, moving data, integrating Registry, or launching and…

K-Dense-AI/scientific-agent-skills · 76 tokens

remote-compute-ssh

Evaluate and use SSH Remote Compute before choosing where to run GPU, high-memory, parallel, batch, model-inference, bioinformatics, or other long-running scientific work; supports short remote commands and asynchronous jobs with automatic harvest and analysis.

aipoch/open-science · 53 tokens

modal-compute

Run explicitly chosen research benchmark or replication jobs on Modal's serverless infrastructure. Use when a Feynman research workflow needs burst remote GPU compute and the Modal CLI is available.

companion-inc/feynman · 39 tokens

dnanexus-integration

DNAnexus cloud genomics platform. Build apps/applets, manage data (upload/download), dxpy Python SDK, run workflows, FASTQ/BAM/VCF, for genomics pipeline development and execution.

synthetic-sciences/openscience · 49 tokens

latchbio-integration

Latch platform for bioinformatics workflows. Build pipelines with Latch SDK, @workflow/@task decorators, deploy serverless workflows, LatchFile/LatchDir, Nextflow/Snakemake integration.

synthetic-sciences/openscience · 45 tokens

modal-serverless-gpu

Run approved CPU or GPU work through OpenScience computejob on the user's configured Modal account. Use for isolated scientific scripts, dependency provisioning, durable outputs, logs, status, cancellation, and recovery. Never invoke the Modal SDK or CLI directly.

synthetic-sciences/openscience · 54 tokens