agentsclimarketplace

Alterlab remote compute

Skill AlterLab-IEU/AlterLab-Academic-Skills/skills/domain-specific/alterlab-remote-compute

239 evaluated academic Claude/agent skills across 17 research domains (bioinformatics, data science, clinical, social-science methods, Turkish academia & more). Executable eval per skill, deterministic citation verifier, research→write→review→publish pipeline, and a skill-finder front door. Claude Code, Cursor, Codex, Gemini CLI & Copilot.

Install
npx -y skills add AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-remote-compute

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Dispatch long-running GPU/CPU jobs to remote compute with a provider-agnostic submit → poll → harvest pattern across SLURM/HPC (sbatch, squeue, sacct) and managed APIs (Modal, RunPod, GCP Batch / Vertex AI). Use when submitting a batch job to a cluster, polling job status, retrieving result artifacts from a scheduler or cloud GPU provider, or writing a portable job-submission wrapper; the foundation-model skills (alterlab-alphafold, alterlab-boltz, alterlab-rfdiffusion, and siblings) dispatch their GPU work through this pattern. For Modal-specific serverless container deployment and autoscaling prefer alterlab-modal instead. Part of the AlterLab Academic Skills suite.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

7.5 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it

Remote Compute

Overview

Foundation-model workloads (protein folding, backbone diffusion, single-cell models) need a GPU and can run for minutes to hours — too long to sit in a synchronous call. This skill is the provider-agnostic dispatch layer the GPU skills build on: a single submit → poll → harvest contract that works the same whether the backend is a SLURM cluster, Modal, RunPod, or GCP. You describe the job once; the dispatcher submits it, returns a handle, polls status to a terminal state, and harvests the output artifacts.

It does not wrap any single model — each model skill (alterlab-alphafold, alterlab-boltz, alterlab-proteinmpnn, …) describes what to run; this skill describes where and how to run it.

When to Use This Skill

Use this skill when the user wants to:

  • Submit a batch job to a SLURM/HPC cluster and track it to completion (sbatchsacct).
  • Run a GPU job on a managed provider (Modal, RunPod, GCP Batch / Vertex AI) and retrieve results.
  • Write a portable job wrapper that runs the same payload across more than one backend.
  • Poll a long-running remote job's status and harvest its output files/artifacts.

Does NOT Trigger

ScenarioUse instead
Deploy a serverless container / autoscaling API specifically on Modalalterlab-modal
Actually fold a structure, design a sequence, or run a specific modelthe model's own skill (alterlab-alphafold, alterlab-boltz, alterlab-proteinmpnn, …)
Local single-machine data analysis with no remote dispatchthe relevant analysis skill (alterlab-scanpy, alterlab-rdkit, …)
Query a database over HTTPthe database connector skill (alterlab-pdb, alterlab-uniprot, …)

The submit → poll → harvest contract

Every backend implements three verbs. Keeping the payload backend-independent is what makes a model skill portable across an HPC allocation and a cloud GPU:

  1. submit(spec) → handle — enqueue the job; return an opaque handle (SLURM job id, Modal call id, RunPod job id, GCP operation name).
  2. poll(handle) → status — map the backend's states to a common vocabulary: PENDING | RUNNING | SUCCEEDED | FAILED | CANCELLED | UNKNOWN. Poll on a backoff; never busy-loop.
  3. harvest(handle) → artifacts — copy the declared output files back to a local out/ directory (scp/rsync from HPC scratch; object-store download for cloud).

scripts/dispatch.py implements this contract for the SLURM and a generic REST backend, and defines the status vocabulary so model skills can depend on it. Provider-specific command and API detail lives in references/providers.md (loaded on demand).

Core Capabilities

1. SLURM / HPC clusters

The classic scheduler path. Submit a job script with resource directives, then poll with sacct (authoritative for terminal state) rather than only squeue (which drops finished jobs from its default view):

# Submit; capture the numeric job id from "Submitted batch job <id>"
JOBID=$(sbatch --parsable run.slurm)

# Poll to a terminal state (COMPLETED / FAILED / CANCELLED / TIMEOUT)
sacct -j "$JOBID" --format=State,ExitCode,Elapsed --noheader --parsable2

A minimal GPU job script (run.slurm) — one GPU, an 8-hour wall clock, results on scratch:

#!/bin/bash
#SBATCH --job-name=fold
#SBATCH --gres=gpu:1
#SBATCH --time=08:00:00
#SBATCH --output=%x-%j.out
srun uv run python run_model.py --in input.fasta --out "$SCRATCH/out"

Full directive reference, array jobs, and squeue/scancel usage: see references/providers.md.

2. Modal — managed serverless GPU

For serverless containers, autoscaling, and .remote() dispatch, this skill defers to alterlab-modal, which owns the Modal SDK surface. Use Modal when you want zero cluster management and per-second GPU billing. This skill's role is only to treat a Modal call as one submit → poll → harvest backend when a workflow needs to stay provider-agnostic.

3. RunPod — on-demand GPU pods

RunPod exposes GPU pods and a serverless endpoint API. Submit to a serverless endpoint and poll the returned job id; the API key is read from RUNPOD_API_KEY. Endpoint/run/status paths and the pod vs. serverless trade-off are in references/providers.md.

4. GCP — Batch and Vertex AI

Google Cloud offers Batch (containerized batch jobs with GPU allocation) and Vertex AI custom jobs (ML-oriented, managed). Both follow submit → poll (operation/job state) → harvest (read outputs from a GCS bucket). Auth uses Application Default Credentials; the target bucket comes from an env var. Command/SDK detail: references/providers.md.

5. Portable job wrapper

scripts/dispatch.py is a stdlib-only CLI that runs the same job spec across backends:

# Submit a SLURM job and print the handle
python scripts/dispatch.py submit --backend slurm --script run.slurm

# Poll a handle to a normalized status
python scripts/dispatch.py poll --backend slurm --handle 123456

# Generic REST backend (RunPod-style): endpoint + key from env
python scripts/dispatch.py submit --backend rest \
  --endpoint "$RUNPOD_ENDPOINT" --payload spec.json

It shells out to sbatch/sacct for SLURM and uses urllib for the REST backend — no third-party dependencies, so it runs anywhere Python does.

Validation and status semantics

  • Trust the accounting record, not the queue. On SLURM, a job missing from squeue may have finished or failed — resolve terminal state with sacct/exit code, not absence.
  • Poll with backoff (e.g. 10s → 30s → 60s, capped) so you neither hammer the scheduler nor miss a fast job.
  • Always check the exit code, not just the state string; a job can report COMPLETED while the payload wrote no artifacts. Harvest, then verify the expected files exist.
  • Never hardcode credentials. Read RUNPOD_API_KEY, GCP ADC, and cluster hosts from the environment; the dispatcher refuses to run if a required secret is unset.

Resources

  • references/providers.md — per-backend command/API detail (SLURM directives, RunPod endpoints, GCP Batch/Vertex, Modal cross-link) loaded on demand.
  • scripts/dispatch.py — stdlib-only submit/poll/harvest CLI for SLURM + generic REST.

Part of the AlterLab Academic Skills suite.

What ships with it: 3 files

13.1 KB alongside SKILL.md, 1 of them executable

evals/

references/

scripts/

Gives 0 of the 12 instructions most containers cloud skills give in ~1.6k tokens

Counted across 607 of the 657 authors here whose files we hold, read 2026-08-07

  • Run containers as a non-root userin 66 of 607, across 46 files
  • Use multi-stage buildsin 53 of 607, across 44 files
  • Use Promise.all for independent operationsin 47 of 607, across 13 files
  • Import directly instead of barrel filesin 46 of 607, across 12 files
  • Use ternary instead of AND for conditionalsin 45 of 607, across 12 files
  • Use Set or Map for O(1) lookupsin 42 of 607, across 10 files
  • Create a .dockerignore filein 41 of 607, across 31 files
  • Read individual rule files for detailsin 39 of 607, across 9 files
  • Copy dependency files before source codein 36 of 607, across 23 files
  • Authenticate server actions like API routesin 35 of 607, across 7 files
  • Use next/dynamic for heavy componentsin 34 of 607, across 9 files
  • Use React.cache for per-request deduplicationin 34 of 607, across 10 files

Said here and by no other author read

  • implement submit poll harvest pattern
  • poll job status with backoff
  • check the exit code
  • verify expected output files exist
  • read credentials from the environment
  • treat modal as one backend

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.