Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Annotate VCF variants with Ensembl VEP, ClinVar, and gnomAD. Ranks variants by impact (HIGH/MODERATE/LOW/MODIFIER) and generates a reproducible report.
.claude/skills/clawbio-vcf-annotator/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 76% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 65% | 0% |
You are VCF Annotator, a specialised ClawBio agent for genomic variant annotation and interpretation. Your role is to annotate VCF files using Ensembl VEP, ClinVar, and gnomAD, rank variants by predicted impact, and generate a structured reproducible report.
Fire this skill when the user says any of:
Do NOT fire when:
pharmgx-reporter)ancestry-pca)lit-synthesizer)Without it: A researcher must install VEP locally, configure databases, query ClinVar and gnomAD separately, manually merge results, and format a report. This takes hours and is error-prone.
With it: One command annotates a VCF against three authoritative databases, ranks variants by impact, and outputs a reproducible report in seconds.
Why ClawBio: A general LLM will hallucinate ClinVar classifications and invent gnomAD frequencies. This skill uses live API calls to real databases, so every annotation is real and verifiable.
commands.sh, environment.yml, SHA-256 checksumsThis skill annotates variants from a VCF file. It does not call variants from raw sequencing reads (use a variant caller for that) or interpret clinical significance beyond what ClinVar reports.
| Format | Extension | Required Fields | Example | |--------|-----------|-----------------|---------| | VCF v4.x | .vcf | CHROM, POS, REF, ALT | demo_variants.vcf |
Supported genome builds: GRCh38 (primary), GRCh37 (legacy)
report.md with variant table, detailed annotations, and reproducibility bundlebash# Standard usage python skills/vcf-annotator/vcf_annotator.py \ --input variants.vcf \ --output report/ # Demo mode (no network, no VCF file needed) python skills/vcf-annotator/vcf_annotator.py \ --demo --output /tmp/demo # Via ClawBio runner python clawbio.py run vcf-annotator --input variants.vcf --output report/ python clawbio.py run vcf-annotator --demo
bashpython clawbio.py run vcf-annotator --demo
Expected output: A report covering 5 clinically relevant variants (BRCA1, BRCA2, CFTR, APOE, MTHFR) with ClinVar classifications and gnomAD frequencies.
# headers, splits on tabsGET https://rest.ensembl.org/vep/human/hgvs/{hgvs} — returnsgene symbol, consequence terms, impact, SIFT, PolyPhen
esearch on clinvar database with rsID termhttps://gnomad.broadinstitute.org/api withvariant ID format {chrom}-{pos}-{ref}-{alt}
HIGH=1, MODERATE=2, LOW=3, MODIFIER=4, UNKNOWN=5Key thresholds:
# 🦖 ClawBio VCF Annotator Report
**Input**: demo_variants.vcf
**Date**: 2026-04-19 10:00 UTC
**Total variants**: 5
**HIGH impact**: 3 | **MODERATE**: 2 | **LOW**: 0
**ClinVar Pathogenic/Likely Pathogenic**: 3
## Variant Table
| # | Gene | Variant | Consequence | Impact | ClinVar | gnomAD AF |
|---|-------|---------------------|-------------------|----------|------------|-----------|
| 1 | BRCA1 | 17:43044295 G>A | missense_variant | HIGH | Pathogenic | 0.000008 |
| 2 | BRCA2 | 13:32316461 C>T | stop_gained | HIGH | Pathogenic | 0.000004 |
| 3 | CFTR | 7:117548628 CTTT>C | frameshift_variant| HIGH | Pathogenic | 0.021000 |output_directory/
├── report.md # Full annotation report
├── results.json # All variants as structured JSON
├── tables/
│ └── variants.csv # Tabular variant data
└── reproducibility/
├── commands.sh # Exact commands to reproduce
├── environment.yml # Python environment
└── checksums.sha256 # SHA-256 of all output filesRequired: Python standard library only (urllib, json, csv, hashlib)
Optional:
ensembl-vep (local install) — for offline annotation without API rate limitscyvcf2 — for faster VCF parsing on large filesThe skill enforces a 0.1s sleep. For large VCFs (>1000 variants), consider the batch endpoint or local VEP install.
{chrom}-{pos}-{ref}-{alt} withoutchr prefix. The skill strips chr automatically from VCF CHROM field.
confirms presence in ClinVar. For full classification, the skill uses demo data; live queries return presence/absence only.
handles SNVs fully; complex indels may return limited VEP results.
uses GRCh37 coordinates, VEP results may be incorrect.
public database APIs (Ensembl, NCBI, gnomAD — all accept variant queries)
not clinical diagnoses
The agent (LLM) dispatches the VCF and explains results. The skill (Python) executes all API calls and generates files. The agent must NOT invent ClinVar classifications or gnomAD frequencies.
Trigger conditions: route here when:
.vcfannotate, variants, pathogenic, clinvar, gnomad, vepChaining partners:
pharmgx-reporter: VCF annotation can precede pharmacogenomic reportingequity-scorer: Annotated VCF feeds into population equity analysislit-synthesizer: Gene names from annotation can seed literature searchOther measured skills in the registry, with their headline benchmark lift.