viral-ngs: Skill for Claude Code

.agents/skills/dsub-batch-jobs/SKILL.md

dsub-batch-jobs is a skill for Claude Code, Codex from broadinstitute/viral-ngs. It costs 0 tokens per session (1,260 once invoked), scanned A, original, MIT.

A way to run one-off or parallel compute jobs on Google Cloud using dsub, including jobs that use a specified Docker image. Google Cloud is a hosted computing service, and Docker images package software and its dependencies for a job.

In plain words
What is it for?
Use it for memory-heavy analyses, many independent batch tasks, or workloads requiring a particular Docker image, with results and logs stored in Google Cloud.
Why use it?
It lets analyses use more memory, computing capacity, or specialised software than is practical on the local machine. It can also process data stored in Google Cloud Storage close to where it lives.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is broadinstitute/viral-ngs's own configuration. It tells Claude Code and Codex how to work on viral-ngs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything viral-ngs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to broadinstitute/viral-ngs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/broadinstitute/viral-ngs/main/.agents/skills/dsub-batch-jobs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/broadinstitute/viral-ngs

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 dsub-batch-jobs

README.md
[![agentmods](https://agentmods.dev/badge/skills/broadinstitute/viral-ngs/dsub-batch-jobs/github.svg)](https://agentmods.dev/skills/broadinstitute/viral-ngs/dsub-batch-jobs)
Your own site
<a href="https://agentmods.dev/skills/broadinstitute/viral-ngs/dsub-batch-jobs"><img src="https://agentmods.dev/badge/skills/broadinstitute/viral-ngs/dsub-batch-jobs/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 dsub-batch-jobs

Your own site · 80×15
<a href="https://agentmods.dev/skills/broadinstitute/viral-ngs/dsub-batch-jobs"><img src="https://agentmods.dev/badge/skills/broadinstitute/viral-ngs/dsub-batch-jobs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,260 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.01260
Opus 5 $0.00000 $0.00630
Sonnet 5 $0.00000 $0.00252
Haiku 4.5 $0.00000 $0.00126

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

Security

Grade A, and why

dsub-batch-jobs 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 12d ago.

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.

.agents/skills/dsub-batch-jobs/SKILL.md · 127 lines

How it starts

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

Running Batch Jobs on GCP via dsub

Use dsub to run one-off compute jobs on Google Cloud when your analysis requires more compute/memory than the local environment, or needs specific Docker images that are impractical to run locally.

When to Use

  • Analysis tools need >8GB RAM (e.g., VADR, BLAST, assembly)
  • Need to run many independent jobs in parallel (batch processing)
  • Need a specific Docker image with pre-installed tools
  • Data lives in GCS and is most efficiently processed in-cloud

Prerequisites

  • dsub installed (ask the user where their dsub installation or venv is located)
  • gcloud CLI authenticated with a GCP project that has Batch API enabled
  • GCS bucket accessible by the project's default service account

Generic Invocation

dsub --provider google-cls-v2 \
  --project <gcp-project> \
  --regions <region> \
  --image <docker-image> \
  --machine-type <machine-type> \
  --script <script.sh> \
  --tasks <tasks.tsv> \
  --logging gs://<bucket>/logs/<job-name>/

Key Parameters

Parameter Description
--provider google-cls-v2 Use Google Cloud Batch (recommended over Life Sciences)
--project GCP project with Batch API enabled
--regions Compute region (e.g., us-central1)
--image Docker image to run (e.g., staphb/vadr:1.6.4)
--machine-type VM type (e.g., n1-highmem-4 for 26GB RAM)
--script Local shell script to execute inside the container
--tasks TSV file defining one row per job (batch mode)
--logging GCS path for stdout/stderr logs

Task TSV Format

The tasks TSV defines inputs, outputs, and environment variables for each job. Header row uses column prefixes to declare types:

--env VAR1	--env VAR2	--input FASTA	--output RESULT	--output LOG
value1	value2	gs://bucket/input.fasta	gs://bucket/output.txt	gs://bucket/log.txt
  • --env NAME -- environment variable passed to the script
  • --input NAME -- GCS file downloaded to a local path; the env var is set to the local path
  • --output NAME -- local path; after the script finishes, the file is uploaded to GCS

Read the full file on GitHub · 127 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. 12d ago First seen · 127 lines · 0 tokens per session scan A 25a04113ba5c

Subscribe to this mod's changes

dsub-batch-jobs is a skill published in the GitHub repository broadinstitute/viral-ngs (197 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,260 tokens. 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-30.