Dispatches long-running GPU/CPU jobs to remote compute using a provider-agnostic submit → poll → harvest pattern across SLURM/HPC and managed APIs (Modal, RunPod, GCP Batch/Vertex AI). Use when submitting batch jobs, polling status, or retrieving artifacts from a scheduler or cloud GPU provider.
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.
Use this skill when the user wants to:
sbatch → sacct).| Scenario | Use instead |
|---|---|
| Deploy a serverless container / autoscaling API specifically on Modal | alterlab-modal |
| Actually fold a structure, design a sequence, or run a specific model | the model's own skill (alterlab-alphafold, alterlab-boltz, alterlab-proteinmpnn, …) |
| Local single-machine data analysis with no remote dispatch | the relevant analysis skill (alterlab-scanpy, alterlab-rdkit, …) |
| Query a database over HTTP | the database connector skill (alterlab-pdb, alterlab-uniprot, …) |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-modal) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Before sending a job to a cluster or a cloud GPU — which costs money and needs an account —
run it on this machine to confirm the payload works. scripts/dispatch.py has a keyless
local backend (--backend local; --backend is required on every call, there is no
default) that executes your job script and records its status through the same
submit → poll contract, so the dry run looks exactly like the real dispatch:
# Write a small, CPU-sized runner (reduced input) for the payload you will later scale up:
cat > run_local.sh <<'SH'
#!/bin/bash
python3 run_model.py --in sample.fasta --out out/ --max-samples 2 # tiny, CPU
SH
# KEYLESS: runs here, no account, no token, no GPU.
H=$(python scripts/dispatch.py submit --backend local --script run_local.sh)
python scripts/dispatch.py poll --backend local --handle "$H" # SUCCEEDED / FAILED
cat .remote-compute-local/$H/stdout.log
Only once the logic is validated do you switch --backend slurm (an HPC login node) or
--backend rest (a cloud GPU endpoint) for the full-size run. The cloud/rest backend
refuses to run without a credential rather than silently using another backend. Keep the
cost cautions below in mind on the first real dispatch.
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:
PENDING | RUNNING | SUCCEEDED | FAILED | CANCELLED | UNKNOWN. Poll on a backoff; never
busy-loop.out/
directory (scp/rsync from HPC scratch; object-store download for cloud).scripts/dispatch.py implements submit and poll (plus cancel for SLURM) for the SLURM and a
generic REST backend, and defines the status vocabulary so model skills can depend on it;
harvest is a copy step (rsync/scp or object-store download) shown in references/providers.md. Provider-specific command and
API detail lives in references/providers.md (loaded on demand).
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.
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.
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 and sent as a bearer token. Endpoint/run/status
paths and the pod vs. serverless trade-off are in references/providers.md.
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.
scripts/dispatch.py is a stdlib-only CLI that runs the same job spec across backends.
Every call names its backend with --backend local|slurm|rest — it is required, so a
cluster batch script is never run on the login node by accident; local is the keyless
choice for validating a job on this machine first:
# Keyless local validation (--backend local) — no account
python scripts/dispatch.py submit --backend local --script run_local.sh
# 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 runs the script locally for the keyless local backend, shells out to sbatch/sacct
for SLURM, and uses urllib for the REST backend — no third-party dependencies, so it runs
anywhere Python does.
squeue may
have finished or failed — resolve terminal state with sacct/exit code, not absence.COMPLETED
while the payload wrote no artifacts. Harvest, then verify the expected files exist.RUNPOD_API_KEY, GCP ADC, and cluster hosts from the
environment; the dispatcher refuses to run if a required secret is unset.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/cancel CLI; keyless local backend
(--backend local) for on-machine validation, plus SLURM and generic REST (cloud) backends.Part of the AlterLab Academic Skills suite.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.Other plugins' skills for the same job