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,113 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.5 $0.00028 $0.00430
Sonnet 5.5 $0.00014 $0.00215
Haiku 4.5 $0.00007 $0.00107

Measured 3mo ago against content hash da418581270f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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,113 stars, last pushed 4mo ago), licensed MIT. It adds 69 tokens to every session and 1,074 once invoked, about $0.0003 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

antibody-structure-prediction-tfold compared with skills from other repositories

antibody-structure-prediction-tfold next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
antibody-structure-prediction-tfoldPharMolix/OpenBioMedSkill1.1k4mo agoMITA69Claude Code, Codex
germinaladaptyvbio/protein-design-skillsSkill1755mo agoMITA105Claude Code, Codex
iggmBioTender-max/ProteinClawSkill119mo agononeA127Claude Code, Codex
mberBioTender-max/ProteinClawSkill119mo agononeA128Claude Code, Codex
chaiBioTender-max/awesome-bio-agent-skillsSkill230yesterdaynoneA107Claude Code, Codex
alphafold2-multimerBioTender-max/awesome-bio-agent-skillsSkill230yesterdaynoneA117Claude Code, Codex
boltz-structure-predictionBioTender-max/awesome-bio-agent-skillsSkill230yesterdaynoneA121Claude Code, Codex