agentleFS
LiorZLiorZ/protein-design-skills/skills/boltz/SKILL.md

boltz

Skill8 starsChanged 6 months agoMITView on GitHub

Run Boltz-1 / Boltz-2, MIT-licensed open foundation models for biomolecular structure and binding-affinity prediction. Use this skill when: (1) Predicting structures of protein monomers, multimers, and protein-protein complexes, (2) Predicting protein-ligand complexes (ligands as SMILES or CCD codes), (3) Predicting protein-DNA, protein-RNA, or mixed nucleic-acid complexes, (4) Predicting binding affinity (probability of binding and log10(IC50)) between a small molecule and a protein target — Boltz-2 only, (5) Validating designed binders / antibodies against a target (alternative to AlphaFold2 / Chai-1 with comparable or better accuracy on complexes, and 1000x faster than physics-based FEP for affinity), (6) Folding with pocket / contact / covalent-bond / template restraints, (7) Modeling cyclic peptides, modified residues (CCD), and non-canonical covalent bonds, (8) Running batched inference across one or many GPUs from a directory of YAML inputs.

  • Installs packages

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use esmfold2, fair-esm2 and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JimLiuSkill

    esmfold2

    Biohub ESMFold2 / ESMFold2-Fast all-atom co-folding (Candido et al. 2026, github.com/Biohub/esm). Single-sequence and MSA modes; protein, DNA, RNA, ligand (CCD/SMILES), modified residues. FoldBench Ab-Ag 50-55%, PPI 70-77% DockQ-pass. Also covers the ESMC-{300M,600M,6B} protein language models from the same release: masked-LM logits, hidden states, mutation scoring, contact prediction, and the SAE interpretability head. MIT-licensed weights on HuggingFace org `biohub`. Use this skill when: (1) Predicting complex structures with single-sequence input, (2) Validating designed binders with ESMFold2-Fast, (3) Running ESMFold2 with MSA input, (4) Getting ESMC embeddings or per-residue mutation scores, (5) Choosing kernel backend and sampling-step settings for paper-faithful throughput.

    Also in 3 projects that use this

  • JimLiuSkill

    fair-esm2

    Embed proteins with Meta AI's ESM-2 (`fair-esm` package). Use this skill when: (1) Extracting per-residue or per-sequence embeddings for downstream ML, (2) Masked-LM likelihood / mutation effect scoring, (3) Contact prediction from a sequence.

    Also in 3 projects that use this

  • +10 more from JimLiu

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If Boltz is not the right tool, the alternatives are:

    line 239
  2. Distinctive:

    Step scale: Default differs between models (1.638 Boltz-1, 1.5 Boltz-2).

    line 258
  3. Very specific:

    Old NVIDIA cards: If you see a cuequivariance import / runtime error, add --no_kernels — slight perf hit but it works.

    line 259
  4. Very specific:

    After that, an agent can invoke it via Skill(skill="boltz").

    line 273

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Boltz-1 / Boltz-2 — Open Biomolecular Structure & Affinity Prediction

What this is

Boltz is a family of MIT-licensed (code + weights) biomolecular foundation models from the Barzilay / Jaakkola groups at MIT:

ModelReleasedHighlights
Boltz-1Nov 2024First fully open model to approach AlphaFold-3 accuracy on the PDB benchmark. Structure only.
Boltz-2Jun 2025New foundation model. Beats AF3 / Boltz-1 on structure and jointly predicts binding affinity (log10(IC50) + binder probability). Approaches FEP accuracy at ~1000x lower cost. Adds templates, multi-pocket constraints, contact constraints.

Boltz-2 is the default (--model boltz2); Boltz-1 is retained for parity with the original Boltz-1 paper (pass --model boltz1).

One model handles all of the following entities, declared in a YAML schema:

EntityYAML keywordWhat you provide
Proteinprotein1-letter sequence (+ optional msa, modifications, cyclic)
DNAdnaACGT sequence
RNArnaACGU sequence
LigandligandSMILES string or 3-letter CCD code (exclusive)

Output: by default one mmCIF per diffusion sample ranked by an aggregate confidence score, plus a per-sample confidence JSON (pTM / ipTM / pLDDT breakdown, per-chain and per-chain-pair) and per-token PAE / PDE / pLDDT NPZ files. If properties.affinity is set, an affinity_*.json is also written.

Prerequisites

RequirementRecommendedNotes
OSLinuxmacOS works on CPU only
Python3.10 — 3.12requires-python = ">=3.10,<3.13"
GPUNVIDIA, CUDA 12.x, bfloat16RTX 4090 / A10 / A30 fine for small complexes; A100 / H100 / L40S for big ones. cuEquivariance kernels accelerate recent NVIDIA cards. Old GPUs: pass --no_kernels.
Disk~5 GB cacheWeights + CCD auto-download into ~/.boltz (or $BOLTZ_CACHE).
NetworkNeeded for first weight download, and for --use_msa_server (ColabFold MMseqs2)

Boltz can run on CPU (no [cuda] extras), but is significantly slower — treat that as a fallback for unit testing only. TPU is also accepted (--accelerator tpu) but seldom used.

Three-step quick start

1) Install

# Recommended (PyPI, with CUDA extras):
pip install -U "boltz[cuda]"

# Or development build:
git clone https://github.com/jwohlwend/boltz.git
cd boltz && pip install -e ".[cuda]"

# CPU-only (slow):
pip install -U boltz

A boltz console script is installed. On first run it auto-downloads:

  • boltz2_conf.ckpt (structure model) and boltz2_aff.ckpt (affinity head)
  • mols.tar → mols/ (per-residue / per-ligand reference structures for Boltz-2)
  • ccd.pkl (Boltz-1 CCD dictionary, if you also use Boltz-1)

into ~/.boltz (override with --cache /path or env BOLTZ_CACHE=/abs/path).

2) Write a YAML and predict

# /tmp/example.yaml
version: 1
sequences:
  - protein:
      id: A
      sequence: MVTPEGNVSLVDESLLVGVTDEDRAVRSAHQFYERLIGLWAPAVMEAAHELG
  - ligand:
      id: B
      smiles: 'N[C@@H](Cc1ccc(O)cc1)C(=O)O'
properties:
  - affinity:
      binder: B          # Boltz-2 only
boltz predict /tmp/example.yaml --use_msa_server --out_dir /tmp/boltz_out

--use_msa_server is essentially mandatory for protein chains unless you supply a local .a3m (msa: path/to.a3m) or explicitly opt out (msa: empty, which is single-sequence mode and degrades accuracy).

3) Inspect outputs

/tmp/boltz_out/
└── boltz_results_example/
    ├── predictions/
    │   └── example/
    │       ├── example_model_0.cif                 # best (highest confidence_score)
    │       ├── confidence_example_model_0.json     # ptm, iptm, plddt, per-chain, per-pair
    │       ├── pae_example_model_0.npz             # if --write_full_pae
    │       ├── pde_example_model_0.npz             # if --write_full_pde
    │       ├── plddt_example_model_0.npz
    │       ├── affinity_example.json               # if properties.affinity was set
    │       └── ...                                 # one set per diffusion sample
    ├── processed/                                  # preprocessed inputs (caches between runs)
    └── lightning_logs/

The candidate with the highest confidence_score (≈ 0.8 * complex_plddt + 0.2 * iptm) is the recommended pick. See references/outputs.md for the full schema.

CLI at a glance

CommandPurpose
boltz predict INPUT [OPTIONS]Predict structure (+ affinity) for one YAML, one FASTA, or a directory of either.

INPUT can be:

  • a single .yaml / .fasta file, or
  • a directory; every .yaml and .fasta inside is predicted.

The most important flags (full list in references/cli.md):

FlagMeaning
--out_dir PATHWhere to save the predictions (default ./). A boltz_results_<input_stem>/ directory is created inside.
--cache PATHWhere to download / look up model weights and CCD (default ~/.boltz, or $BOLTZ_CACHE).
--use_msa_serverAuto-generate MSAs via ColabFold MMseqs2 (https://api.colabfold.com).
--msa_server_url URLSelf-hosted ColabFold endpoint.
--msa_pairing_strategy greedy|completeMSA pairing for multimers (default greedy).
--use_potentialsInference-time potentials for better physical plausibility (slower but cleaner poses).
--model boltz1|boltz2Which checkpoint (default boltz2).
--method NAMECondition the prediction on a structural-determination method (e.g. x-ray diffraction, electron microscopy, md, afdb, boltz-1). Boltz-2 only.
--recycling_steps NTrunk recycles (default 3; AF3-style is 10).
--sampling_steps NDiffusion sampling steps (default 200).
--diffusion_samples NNumber of candidate structures (default 1; AF3-style is 25).
--max_parallel_samples NParallel diffusion batch (default 5).
--step_scale FLOATDiffusion temperature; default 1.5 (Boltz-2) / 1.638 (Boltz-1). Lower → more diverse.
--output_format mmcif|pdbOutput format (default mmcif).
--devices NGPUs to use; >1 enables DDP.
--accelerator gpu|cpu|tpuDefault gpu.
--seed NRNG seed.
--overrideRe-run instead of reusing cached processed/ and existing predictions.
--write_full_pae / --write_full_pdeDump per-token PAE / PDE NPZ.
--write_embeddingsDump s and z embeddings as NPZ.
--no_kernelsDisable cuEquivariance kernels (use this on old NVIDIA cards).
--num_workers NDataLoader workers (default 2).
--preprocessing-threads NThreads for preprocessing (default = cpu count).
--max_msa_seqs NCap MSA depth (default 8192).
--subsample_msa / --num_subsampled_msa NSubsample MSA at runtime.

Affinity (Boltz-2 only — see references/affinity.md):

FlagMeaning
--sampling_steps_affinity NDefault 200.
--diffusion_samples_affinity NDefault 5.
--affinity_mw_correctionAdd the molecular-weight correction to the affinity head.
--affinity_checkpoint PATHCustom affinity checkpoint.

MSA server auth — see references/msas.md.

Choosing the right reference doc

You want to…Read
Install, manage downloads, use the Docker image, configure cachereferences/installation.md
See every CLI flag with examplesreferences/cli.md
Author the YAML input (sequences, ligands, modifications, cyclic)references/inputs.md
Add MSAs (ColabFold server, local .a3m, paired CSV, auth)references/msas.md
Supply structural templates (CIF / PDB)references/templates.md
Use pocket / contact / covalent-bond constraintsreferences/constraints.md
Predict binding affinity with Boltz-2references/affinity.md
Read the CIF / JSON / NPZ outputsreferences/outputs.md
Validate a designed binder / antibodyreferences/binder-validation.md
Run hundreds of YAMLs across GPUsreferences/batch.md
Train / retrain on your own datareferences/training.md
Diagnose OOM, kernel, MSA, weight-download failuresreferences/troubleshooting.md
Boltz-1 vs Boltz-2 feature matrix and migration notesreferences/boltz1-vs-boltz2.md

Quick decision tree

  • You just have sequences and want a structure → 1-chain YAML, boltz predict in.yaml --use_msa_server. Defaults are fine.
  • You want AF3-level sampling (5 samples × 10 recycles) → --diffusion_samples 5 --recycling_steps 10. ~10x slower.
  • You designed a binder and want to validate it → 2-chain YAML (binder + target), --use_msa_server. Score with ipTM and (better) ipSAE; see the ipsae and protein-qc skills.
  • You want a binding-affinity number for a small molecule → Boltz-2 YAML with properties.affinity.binder: <ligand_id>. Output is affinity_pred_value (log10(IC50_µM), lower = stronger binder) and affinity_probability_binary (probability the ligand binds at all). See references/affinity.md.
  • You know the binding pocket / specific contacts → add a pocket or contact constraint to your YAML; set force: true to enforce it via a potential.
  • Cyclic peptide → cyclic: true on the protein entry.
  • Modified residue with a CCD code → modifications: [{position: 5, ccd: MSE}] on the polymer.
  • Glycoprotein or covalently-bound ligand → declare the ligand and the polymer separately, then add a bond constraint linking the relevant atoms.
  • Many YAMLs, several GPUs → put them in a directory, boltz predict dir/ --devices 4. Predictions are sharded via DDP.
  • You want the easiest UI → no official web server; use the CLI or the Slack community for help.

If Boltz is not the right tool, the alternatives are:

  • Chai-1 (chai-lab skill) — similar foundation-model architecture, open weights, FASTA-like input, strong on glycans and explicit covalent bonds.
  • AlphaFold 2 / 3 (alphafold skill) — AF2 is the long-standing baseline; AF3 is closed-source (web only).
  • ESMFold — single-sequence, monomers only; fastest, lower accuracy on complexes.

Hard rules / gotchas

  1. The output directory is reused across runs. Boltz keeps processed/ and skips inputs whose predictions already exist. Pass --override to redo from scratch when you change parameters but reuse the same --out_dir.
  2. One affinity ligand per YAML. properties.affinity.binder must be a single ligand chain ID (not a list, not a polymer). Boltz-2 only.
  3. Affinity ligand size caps. Hard limit: ≤ 128 heavy atoms (counted after RDKit RemoveHs). Training cap was 56: ligands larger than that produce a WARNING and unreliable values.
  4. Affinity vs. protein only. Running affinity on an RNA/DNA/cofactor target will not crash but the output is unreliable — Boltz-2 was trained only on small-molecule × protein.
  5. Pocket distance. max_distance in pocket / contact constraints accepts 4–20 Å (default 6 Å). For Boltz-1, only 6 Å is supported, and at most one pocket constraint per YAML; Boltz-2 lifts both limits.
  6. Templates and contact constraints are Boltz-2 only — they raise on Boltz-1.
  7. --use_msa_server and a local MSA can be mixed: chains with msa: path/to.a3m use the local file; chains without msa: go to the server. msa: empty forces single-sequence (not recommended).
  8. Paired multimer MSAs require CSV (sequence,key) not .a3m, with matching keys across chains.
  9. Names / chain IDs. Polymer and ligand ids must be unique. Use a list ([A, B]) for identical entities — Boltz handles symmetry / pairing automatically.
  10. Atom-name precision matters for bonds. bond.atom1: [chain, residue_idx, ATOM_NAME] uses CCD-standard atom names (case-sensitive). Verify against the RCSB CCD entry for that residue.
  11. 1-indexed residues. position, RES_IDX, and contact / bond / pocket residue indices all start at 1.
  12. Step scale. Default differs between models (1.638 Boltz-1, 1.5 Boltz-2). Lower → more diverse samples; recommended range 1–2.
  13. Old NVIDIA cards. If you see a cuequivariance import / runtime error, add --no_kernels — slight perf hit but it works.
  14. FASTA input is deprecated. It cannot express modifications, covalent bonds, pocket conditioning, templates, or affinity. Always prefer YAML.

Installing this skill

# Symlink (recommended — picks up edits live)
mkdir -p ~/.claude/skills
ln -s "$(pwd)" ~/.claude/skills/boltz

# Or copy:
cp -R . ~/.claude/skills/boltz

After that, an agent can invoke it via Skill(skill="boltz").

Citation

@article{passaro2025boltz2,
  author  = {Passaro, Saro and Corso, Gabriele and Wohlwend, Jeremy and Reveiz, Mateo and Thaler, Stephan and Somnath, Vignesh Ram and Getz, Noah and Portnoi, Tally and Roy, Julien and Stark, Hannes and Kwabi-Addo, David and Beaini, Dominique and Jaakkola, Tommi and Barzilay, Regina},
  title   = {Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction},
  year    = {2025},
  doi     = {10.1101/2025.06.14.659707},
  journal = {bioRxiv}
}

@article{wohlwend2024boltz1,
  author  = {Wohlwend, Jeremy and Corso, Gabriele and Passaro, Saro and Getz, Noah and Reveiz, Mateo and Leidal, Ken and Swiderski, Wojtek and Atkinson, Liam and Portnoi, Tally and Chinn, Itamar and Silterra, Jacob and Jaakkola, Tommi and Barzilay, Regina},
  title   = {Boltz-1: Democratizing Biomolecular Interaction Modeling},
  year    = {2024},
  doi     = {10.1101/2024.11.19.624167},
  journal = {bioRxiv}
}

@article{mirdita2022colabfold,
  title   = {ColabFold: making protein folding accessible to all},
  author  = {Mirdita, Milot and Sch{\"u}tze, Konstantin and Moriwaki, Yoshitaka and Heo, Lim and Ovchinnikov, Sergey and Steinegger, Martin},
  journal = {Nature methods},
  year    = {2022}
}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.