antibody-structure-prediction-tfold

antibody-structure-prediction-tfold is a skill for Claude Code, Codex from PharMolix/OpenBioMed. It costs 69 tokens per session (1,074 once invoked), scanned A, original, MIT.

A tool for predicting the three-dimensional structure of antibodies and nanobodies from their amino-acid sequences, including antibody–antigen complexes. It uses the tFold model and is intended to run with local computing resources.

In plain words
What is it for?
Use it to predict an antibody or nanobody structure, predict an antigen–antibody complex, and save the predicted structure for further analysis.
Why use it?
It lets researchers generate a predicted structure before laboratory or downstream computational work. Running it requires substantial hardware, including a CUDA-capable GPU with at least 24 GB of memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to predict an antibody or nanobody structure, predict an antigen–antibody complex, and save the predicted structure for further analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pharmolix/openbiomed/antibody-structure-prediction-tfold
About the project

OpenBioMed is an agent platform and toolkit collection for biomedical research and drug discovery, covering areas such as molecular design, protein analysis, and single-cell data analysis. It is intended for researchers and provides the biomedical skills listed in the catalogue as workflows for Claude Code.

PharMolix/OpenBioMed · 1,105 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PharMolix/OpenBioMed --skill antibody-structure-prediction-tfold
Clone the repo
git clone --depth 1 https://github.com/PharMolix/OpenBioMed

Made for: Claude Code, Codex.

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 antibody-structure-prediction-tfold

README.md
[![agentmods](https://agentmods.dev/badge/skills/pharmolix/openbiomed/antibody-structure-prediction-tfold/github.svg)](https://agentmods.dev/skills/pharmolix/openbiomed/antibody-structure-prediction-tfold)
Your own site
<a href="https://agentmods.dev/skills/pharmolix/openbiomed/antibody-structure-prediction-tfold"><img src="https://agentmods.dev/badge/skills/pharmolix/openbiomed/antibody-structure-prediction-tfold/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 antibody-structure-prediction-tfold

Your own site · 80×15
<a href="https://agentmods.dev/skills/pharmolix/openbiomed/antibody-structure-prediction-tfold"><img src="https://agentmods.dev/badge/skills/pharmolix/openbiomed/antibody-structure-prediction-tfold.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00069 $0.01074
Opus 5 $0.00034 $0.00537
Sonnet 5 $0.00014 $0.00215
Haiku 4.5 $0.00007 $0.00107

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

Security

Grade A, and why

antibody-structure-prediction-tfold 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 12d 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.

skills/antibody-structure-prediction-tfold/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prerequisites

Requirement Minimum Recommended
Python 3.8+ 3.8
CUDA 11.7+ 11.8
GPU VRAM 24GB 80GB (A800)
RAM 32GB 64GB

How to run

Local installation

git clone https://github.com/TencentAI4S/tfold.git
cd tfold

pip install torch==2.4.0 --index-url https://download.pytorch.org/whl/cu118

pip install deepspeed==0.12.3 termcolor==2.3.0 biopython==1.79 ml-collections==0.1.1 dm-tree==0.1.8 numpy==1.21.2 modelcif==0.9 scipy requests

Predict structure of an antibody

import torch
import tfold

def pred_antibody_structure(heavy_chain_sequence, light_chain_sequence, output_path):
    """
    :param heavy_chain_sequence: sequence of the heavy chain
    :param light_chain_sequence: sequence of the light chain
    :param output_path: path to the antibody structure prediction
    """

    # Download the pre-trained model
    ppi_model_path = tfold.model.esm_ppi_650m_ab()
    tfold_model_path = tfold.model.tfold_ab_trunk()

    # Load the model
    model = tfold.deploy.PLMComplexPredictor.restore_from_module(ppi_model_path, tfold_model_path)

    # Prepare antibody sequences (can be single or multiple sequences)
    data =[
            {
              "sequence": heavy_chain_sequence, # Heavy chain
              "id": 'H'
              },
            {
              "sequence": light_chain_sequence, # Light chain
              "id": 'L'
              }]

    model.infer_pdb(data, output_path)

Predict the structure of antigen-antibody complex

import torch
import tfold
from projects.tfold_ag.gen_msa import generate_msa

def pred_antigen_antibody_structure(antigen_sequence, heavy_chain_sequence, light_chain_sequence, output_path):
    """
    :param antigen_sequence: sequence of the antigen
    :param heavy_chain_sequence: sequence of the heavy chain
    :param light_chain_sequence: sequence of the light chain
    :param output_path: path to the antibody structure prediction
    """

    # Download the pre-trained model of ESM-PPI
    ppi_model_path = tfold.model.esm_ppi_650m_ab()
    # Download the pre-trained model of alphaFold
    alphafold_path  = tfold.model.alpha_fold_4_ptm()
    # Download base model for tFold-Ag
    tfold_model_path = tfold.model.tfold_ag_base()

    # Load the model
    model = tfold.deploy.AgPredictor(ppi_model_path, alphafold_path, tfold_model_path)

    # generate msa information
    with open('antigen.fasta', 'w') as f:
      f.write(f'>antigen\n{antigen_sequence}')
    generate_msa('antigen.fasta', output_dir='./')
    with open('./antigen.a3m') as f:
      msa, deletion_matrix = tfold.protein.parser.parse_a3m(f.read())

    # prepare input
    data = [
            {
                "id": "H",
                "sequence": heavy_chain_sequence
            },
            {
                "id": "L",
                "sequence": light_chain_sequence
            },
            {
                "id": "A",
                "sequence": antigen_sequence,
                "msa": msa,
                "deletion_matrix": deletion_matrix
            }
            ]

    model.infer_pdb(data, output_path)

Read the full file on GitHub · 136 lines

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. 12d ago First seen · 136 lines · 69 tokens per session scan A da418581270f

Subscribe to this mod's changes

antibody-structure-prediction-tfold is a skill published in the GitHub repository PharMolix/OpenBioMed (1,105 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 1,074 once invoked, about $0.0003 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

germinal

De novo antibody and nanobody (VHH) design with Germinal. Use this skill when: (1) Designing epitope-targeted nanobodies or scFvs, (2) Needing CDR design on a fixed framework, (3) Working on antibody-format binders rather than miniproteins. For miniprotein binders, use binder-design (BoltzGen, BindCraft, RFdiffusion…

adaptyvbio/protein-design-skills · 105 tokens

mber

VHH nanobody design using mBER (Manifold Binder Engineering and Refinement). Use this skill when: (1) Designing VHH nanobody CDRs against a target protein, (2) Have an existing VHH scaffold and want to redesign CDR1/CDR2/CDR3, (3) Optimizing a known VHH binder, (4) Targeting specific hotspot residues on the antigen…

BioTender-max/ProteinClaw · 128 tokens

iggm

Antibody and nanobody CDR design using IgGM (generative model by TencentAI4S). Use this skill when: (1) Designing nanobody (VHH) CDR loops against a target, (2) Designing full antibody (heavy + light chain) CDRs, (3) Redesigning existing antibody CDRs, (4) Need antigen-conditioned antibody generation, (5) Generating…

BioTender-max/ProteinClaw · 127 tokens

esm

ESM protein language models for embeddings, sequence scoring, structure prediction, and binder design. Use this skill when: (1) Computing pseudo-log-likelihood (PLL) or mutation-effect scores, (2) Getting protein embeddings for clustering or filtering, (3) Predicting complex structures with ESMFold2, (4) Designing…

adaptyvbio/protein-design-skills · 121 tokens

chai

Structure prediction using Chai-1, a foundation model for molecular structure. Use this skill when: (1) Predicting protein-protein complex structures, (2) Validating designed binders, (3) Predicting protein-ligand complexes, (4) Using the Chai API for high-throughput prediction, (5) Need an alternative to AlphaFold2.…

adaptyvbio/protein-design-skills · 107 tokens

alphafold

Validate protein designs using AlphaFold2 structure prediction. Use this skill when: (1) Validating designed sequences fold correctly, (2) Predicting binder-target complex structures, (3) Calculating confidence metrics (pLDDT, pTM, ipTM), (4) Self-consistency validation of designs, (5) Multi-chain complex prediction…

adaptyvbio/protein-design-skills · 100 tokens