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.5 $0.00005 $0.00161
Sonnet 5.5 $0.00003 $0.00080
Haiku 4.5 $0.00001 $0.00040

Measured 2mo ago against content hash 464ff0c3ecd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (17 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 402 once invoked, about $0.0001 per session on Opus 5.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

esm compared with skills from other repositories

esm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
esmomar-A-hassan/medsci-agentSkill172mo agoMITA13OpenCode
tooluniverse-single-cellmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A146Claude Code
tooluniverse-protein-structure-predictionmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A71Claude Code
tooluniverse-protein-sae-variant-interpretationmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A144Claude Code
tooluniverse-proteomics-analysismims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A76Claude Code
tooluniverse-spatial-omics-analysismims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A97Claude Code
tooluniverse-enzyme-designmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A85Claude Code