Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/naity/FM4Lifenpx agentmods add skills/naity/fm4life/rnafmWrote 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.
[](https://agentmods.dev/skills/naity/fm4life/rnafm)<a href="https://agentmods.dev/skills/naity/fm4life/rnafm"><img src="https://agentmods.dev/badge/skills/naity/fm4life/rnafm.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00086 | $0.01712 |
| Opus 5 | $0.00043 | $0.00856 |
| Sonnet 5 | $0.00017 | $0.00342 |
| Haiku 4.5 | $0.00009 | $0.00171 |
Grade A, and why
rnafm 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RNA-FM: Foundation Model for Non-Coding RNA
Overview
RNA-FM is a BERT-style transformer pretrained on 23 million non-coding RNA (ncRNA) sequences via masked language modeling. It generates contextual nucleotide embeddings that capture RNA structure and function without labeled data.
Model variants:
- RNA-FM — trained on ncRNA sequences (23M); embedding dim = 640; tokenizes individual nucleotides
- mRNA-FM — trained on 45M mRNA coding sequences (CDS); embedding dim = 1280; tokenizes 3-mers (codons)
Capabilities:
- Sequence embeddings — per-token or pooled representations for any downstream task
- Secondary structure prediction — base-pair contact maps (outperforms LinearFold/SPOT-RNA)
- RNA family clustering — zero-shot separation of RNA families in embedding space
- Functional prediction — UTR function, gene expression, RNA-protein binding
API note: RNA-FM's Python API mirrors ESM2 — (model, alphabet) pair, batch_converter, repr_layers. If you know ESM2, RNA-FM will feel familiar.
Installation
pip install rna-fm
Requirements: Python ≥ 3.8, PyTorch ≥ 1.9. GPU with CUDA 11.1+ recommended.
Model weights download automatically on first use (~1.2 GB for RNA-FM, ~957 MB for mRNA-FM).
Model Checkpoints
| Checkpoint | Training data | Embed dim | Tokenization | Best for |
|---|---|---|---|---|
rna_fm_t12 |
23M ncRNA sequences | 640 | Single nucleotide | ncRNA, structural RNA, general RNA |
mrna_fm_t12 |
45M mRNA CDS sequences | 1280 | 3-mer (codon) | mRNA analysis, codon usage, translation |
Core Usage
Load model
import fm
# ncRNA model (default)
model, alphabet = fm.pretrained.rna_fm_t12()
# mRNA model
model, alphabet = fm.pretrained.mrna_fm_t12()
model.eval()
Extract embeddings
import torch
import fm
model, alphabet = fm.pretrained.rna_fm_t12()
model.eval()
batch_converter = alphabet.get_batch_converter()
# Input: list of (label, sequence) tuples
sequences = [
("rna1", "GGGUGCGAUCAUACCAGCACUAAUGCCCUCCUGGGAAGUCCUCGUGUUGCACCCCU"),
("rna2", "AUGUAAGGCCUUGUAACGCUCUAAACUUCCCCCGCGACGUUUUU"),
]
batch_labels, batch_strs, batch_tokens = batch_converter(sequences)
with torch.no_grad():
results = model(batch_tokens, repr_layers=[12])
# Per-token embeddings from last layer: (batch, seq_len, 640)
token_embeddings = results["representations"][12]
# Per-sequence mean pooling (exclude BOS/EOS/PAD)
padding_idx = alphabet.padding_idx
for i, label in enumerate(batch_labels):
mask = (batch_tokens[i] != padding_idx).float()
seq_emb = (token_embeddings[i] * mask.unsqueeze(-1)).sum(0) / mask.sum()
print(f"{label}: {seq_emb.shape}") # (640,)
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 7d ago First seen · 190 lines · 86 tokens per session scan A d29419be0b7d
rnafm is a skill published in the GitHub repository naity/FM4Life (2 stars, last pushed 5mo ago), licensed MIT. It adds 86 tokens to every session and 1,712 once invoked, about $0.0004 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-31.
Other skills, from other repositories
estimate-immune-score-analysis
Use this skill to compute ESTIMATE immune-related microenvironment scores from a bulk expression matrix, generate an ESTIMATE score heatmap, and optionally generate group-wise ESTIMATE score boxplots plus significance tables when a sample group file is supplied. Trigger keywords: ESTIMATE, immune score, stromal score…
external-model-validation
Use when validating an existing prognostic risk signature on an external bulk expression cohort with survival outcomes, producing risk scores, Kaplan-Meier curves, risk distribution plots, heatmap, and time-dependent ROC curves. NOT for: model training, feature selection, nomogram construction, calibration analysis…
gsva-analysis-and-visualization
Use this skill to run GSVA or ssGSEA pathway-level differential analysis from a bulk expression matrix and a sample group file, then generate a heatmap from the saved GSVA result object. Trigger keywords: GSVA, ssGSEA, pathway enrichment, KEGG pathway analysis, MSigDB. NOT for: gene-level differential expression…
medical-research-literature-reader-pro
A medical-research-native literature reading skill for users with clinical, bioinformatics, translational, and basic experimental backgrounds. Use this skill whenever a user wants to read, analyze, critique, or interpret a medical or scientific paper — whether they provide a PDF, abstract, DOI, PMID, or just a title.…
adverse-event-narrative
Generates CIOMS I-compliant ICSR narratives from adverse event case data for FDA and EMA regulatory submission. Includes temporal analysis, MedDRA coding, causality assessment using WHO-UMC or Naranjo criteria, and multi-format output.
anatomy-quiz-master
Generate interactive anatomy quizzes for medical education with multiple.