Skills for Real Engineers. Straight from my .agents directory.
fair-esm2
Agent skill fromaipoch/open-science
Embed proteins with Meta AI's ESM-2 (`fair-esm` package). Use this skill when: (1) Extracting per-residue or per-sequence embeddings for downstream ML, (2) Masked-LM likelihood / mutation effect scoring, (3) Contact prediction from a sequence.
How to install fair-esm2
npx skills add aipoch/open-science# or add only this skill to Claude Code: copy the folder
resources/skills/fair-esm2/
# into
~/.claude/skills/fair-esm2/ (all projects)
.claude/skills/fair-esm2/ (one project)
1# fair-esm2 — ESM-2 (Meta AI)23ESM-2 code and weights are MIT (Meta AI, github.com/facebookresearch/esm).45> **Package disambiguation.** `pip install fair-esm` gives you `import esm`6> with `esm.pretrained.*` (ESM-1/2). Biohub's github.com/Biohub/esm fork7> (MIT) gives you `from esm.models.esmfold2 import ESMFold2InputBuilder` —8> see the **`esmfold2`** skill. Both share the `esm` namespace but are9> different libraries. This skill covers **fair-esm** (the Meta package).1011## Prerequisites1213| Requirement | Minimum | Recommended |14| ----------- | ----------------------- | ------------------ |15| Python | 3.8+ | 3.11 |16| CUDA | 11.7+ | 12.x |17| GPU VRAM | 8 GB (8M), 16 GB (650M) | 24 GB+ (650M / 3B) |1819## How to run2021### Embeddings2223```python24import torch, esm2526model, alphabet = esm.pretrained.esm2_t33_650M_UR50D()27model = model.eval().cuda()28bc = alphabet.get_batch_converter()2930_, _, toks = bc([("ubq", "MQIFVKTLTGKTITLEVEPSDTIENVK")])31with torch.no_grad():32 out = model(toks.cuda(), repr_layers=[33])33emb = out["representations"][33] # (1, L+2, 1280) — includes BOS/EOS34seq_emb = emb[0, 1:-1].mean(0) # per-sequence mean35```3637### Masked-LM scoring3839```python40with torch.no_grad():41 out = model(toks.cuda(), repr_layers=[33])42logits = out["logits"][0, 1:-1] # (L, |vocab|)43# WT marginal log-likelihood; for mutation scoring, mask the position and44…
Excerpt shown under the repository's Apache-2.0 license.
More skills in open-science
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
