medsci-agent: Skill for OpenCode

.opencode/skills/esm/SKILL.md

esm is a skill for OpenCode from omar-A-hassan/medsci-agent. It costs 13 tokens per session (402 once invoked), scanned A, original, MIT.

A set of Meta AI protein language models that turn amino-acid sequences into numerical representations or predict a protein’s three-dimensional structure.

In plain words
What is it for?
It is for generating per-protein or per-residue embeddings with ESM-2 and predicting a single protein structure from its sequence with ESMFold.
Why use it?
It helps analyse protein sequences and estimate structure when experimental data or a multiple-sequence alignment is unavailable.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is omar-A-hassan/medsci-agent's own configuration. It tells OpenCode how to work on medsci-agent 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 medsci-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to omar-A-hassan/medsci-agent. 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/omar-A-hassan/medsci-agent/main/.opencode/skills/esm/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/omar-A-hassan/medsci-agent

Made for: OpenCode.

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 esm

README.md
[![agentmods](https://agentmods.dev/badge/skills/omar-a-hassan/medsci-agent/esm/github.svg)](https://agentmods.dev/skills/omar-a-hassan/medsci-agent/esm)
Your own site
<a href="https://agentmods.dev/skills/omar-a-hassan/medsci-agent/esm"><img src="https://agentmods.dev/badge/skills/omar-a-hassan/medsci-agent/esm/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 esm

Your own site · 80×15
<a href="https://agentmods.dev/skills/omar-a-hassan/medsci-agent/esm"><img src="https://agentmods.dev/badge/skills/omar-a-hassan/medsci-agent/esm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 402 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.
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.00013 $0.00402
Opus 5 $0.00006 $0.00201
Sonnet 5 $0.00003 $0.00080
Haiku 4.5 $0.00001 $0.00040

Measured 10d ago against content hash 464ff0c3ecd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

esm 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 10d 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.

.opencode/skills/esm/SKILL.md · 48 lines

What it actually says

ESM Protein Language Models

Overview

ESM (Evolutionary Scale Modeling) is Meta AI's family of protein language models trained on millions of protein sequences. ESM-2 provides per-residue and per-sequence embeddings. ESMFold predicts 3D structure from sequence alone.

Key Models

  • ESM-2: Embedding model (8M to 15B params). Use esm2_t33_650M_UR50D as default.
  • ESMFold: Single-sequence structure prediction (no MSA needed).

Usage Patterns

import torch, esm

model, alphabet = esm.pretrained.esm2_t33_650M_UR50D()
batch_converter = alphabet.get_batch_converter()
model.eval()

data = [("protein1", "MKTLLILAVL")]
batch_labels, batch_strs, batch_tokens = batch_converter(data)

with torch.no_grad():
    results = model(batch_tokens, repr_layers=[33], return_contacts=True)

embeddings = results["representations"][33]  # (batch, seq_len, 1280)
contact_map = results["contacts"]            # predicted contacts

ESMFold Structure Prediction

model = esm.pretrained.esmfold_v1()
model.eval()
with torch.no_grad():
    output = model.infer_pdb("MKTLLILAVL")
# output is a PDB-format string

Key Details

  • Input sequences use standard single-letter amino acid codes.
  • Maximum sequence length ~1024 residues for ESMFold; ESM-2 handles longer.
  • Embeddings from final layer are most informative for downstream tasks.
  • Contact prediction uses attention maps; symmetric and valid for i-j where |i-j| >= 6.
  • Install: pip install fair-esm.
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. 10d ago First seen · 48 lines · 13 tokens per session scan A 464ff0c3ecd9

Subscribe to this mod's changes

esm is a skill published in the GitHub repository omar-A-hassan/medsci-agent (18 stars, last pushed 3d ago), licensed MIT. It adds 13 tokens to every session and 402 once invoked, about $0.0001 per session on Opus 5. 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.

Related

Other skills, from other repositories

tooluniverse-single-cell

Single-cell RNA-seq analysis with scanpy/anndata — h5ad data loading, scRNA-seq quality control and QC gating (ngenesbycounts, totalcounts, mitochondrial percent / pctcountsmt, pctcountsribo, doublet detection with Scrublet/scDblFinder, ambient RNA / SoupX awareness, empty-droplet filtering, MAD-based thresholds)…

mims-harvard/ToolUniverse · 146 tokens

tooluniverse-protein-structure-prediction

Protein 3D structure prediction from sequence — ESMFold de novo prediction, AlphaFold database retrieval, experimental structures from RCSB, ProtVar variant impact assessment, ProtParam sequence properties. Use for structure prediction when no experimental structure exists, fold-confidence scoring, and…

mims-harvard/ToolUniverse · 71 tokens

tooluniverse-protein-sae-variant-interpretation

Interpret a missense variant via ESMC-6B Sparse Autoencoder (SAE) feature activations. For a given protein + variant, computes which interpretable SAE features (catalytic, ligand-binding, PTM, structural motif, domain, etc.) are lost or gained at the mutation site. Use when standard pathogenicity scores…

mims-harvard/ToolUniverse · 144 tokens

tooluniverse-proteomics-analysis

Mass-spec proteomics analysis — protein identification, quantification (LFQ, TMT, iTRAQ), differential expression (tumor vs normal, treatment vs control), PTM identification, and pathway enrichment on protein lists. Use when you have proteomics MS output, asking about protein abundance differences, or doing…

mims-harvard/ToolUniverse · 76 tokens

tooluniverse-spatial-omics-analysis

Spatial multi-omics interpretation pipeline. Transforms spatially variable genes (SVGs), domain annotations, and tissue context into biological insights via domain-by-domain characterization, cell-type composition, spatial gene expression patterns, RNA+protein+metabolite integration. Use for Visium, MERFISH, seqFISH…

mims-harvard/ToolUniverse · 97 tokens

tooluniverse-protein-therapeutic-design

AI-guided de novo protein design — RFdiffusion backbone generation, ProteinMPNN sequence design, structure validation (pLDDT, pTM, MPNN scores). Use for designing therapeutic protein binders, novel scaffolds, enzyme variants, and miniprotein/protein-interface design before experimental validation.

mims-harvard/ToolUniverse · 75 tokens