Agent skill

Rfdiffusion

by adaptyvbio in adaptyvbio/protein-design-skills

Generate protein backbones using RFdiffusion, a diffusion-based generative model for de novo protein structure generation.

MITAuto-check passedResearch & Science

Install Rfdiffusion

skills CLI
$ npx skills add adaptyvbio/protein-design-skills --skill rfdiffusion -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install adaptyvbio/protein-design-skills rfdiffusion --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/adaptyvbio/protein-design-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rfdiffusion .claude/skills/rfdiffusion && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rfdiffusion
GitHub stars
163
Used in
4 other repos
Token cost
~2.3k tokens
SKILL.md length
541 words
Files
4 (incl. references)
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Generate protein backbones using RFdiffusion, a diffusion-based generative model for de novo protein structure generation.

  • Works in 4 steps: Prepare target PDB (trim to binding… → Identify 3-6 hotspot residues (exposed,… → Generate 100-500 backbones → …
  • Designing binder scaffolds for a target protein
  • SKILL.md covers Prerequisites, How to run, Config Schema (Hydra) and Common mistakes, plus 7 more sections
  • Calls python, conda and pip; reaches github.com and files.ipd.uw.edu

What it does

Rfdiffusion is an agent skill from adaptyvbio/protein-design-skills. Generate protein backbones using RFdiffusion, a diffusion-based generative model for de novo protein structure generation. Use this skill when: (1) Designing binder scaffolds for a target protein, (2) Generating novel protein backbones from scratch, (3) Scaffolding functional motifs into new proteins, (4) Specifying hotspot residues for interface design, (5) Creating symmetric oligomers. For sequence design after backbone generation, use proteinmpnn. For structure validation, use alphafold or chai. For QC…

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `examples/binder-walkthrough.md`, `references/hotspot-selection.md` and `references/parameters.md`).

It sits in Research & Science, covering Protein structure and design and Project scaffolding. It works with AlphaFold. The repository describes itself as: Claude Code skills for protein design. The licence is MIT.

When your agent uses it

  • Designing binder scaffolds for a target protein
  • Generating novel protein backbones from scratch
  • Scaffolding functional motifs into new proteins
  • Specifying hotspot residues for interface design

Example prompts

  • “/rfdiffusion”

Requirements

  • Python 3
  • Docker

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Prepare target PDB (trim to binding region + 10A buffer)
  2. Identify 3-6 hotspot residues (exposed, conserved)
  3. Generate 100-500 backbones
  4. Pass to proteinmpnn for sequence design

What it can do on your machine

Read from SKILL.md and the folder at commit 59dd633. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • conda
    • pip
    • git
    • wget

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com
    • files.ipd.uw.edu

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rfdiffusion loads about 2.3k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 138 tokens; SKILL.md has 541 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~138
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from adaptyvbio/protein-design-skills at commit 59dd633, republished under its MIT licence (© adaptyvbio). 541 words, ~2,344 tokens.

Download SKILL.mdSave it as .claude/skills/rfdiffusion/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
rfdiffusion
description
Generate protein backbones using RFdiffusion, a diffusion-based generative model for de novo protein structure generation. Use this skill when: (1) Designing binder scaffolds for a target protein, (2) Generating novel protein backbones from scratch, (3) Scaffolding functional motifs into new proteins, (4) Specifying hotspot residues for interface design, (5) Creating symmetric oligomers. For sequence design after backbone generation, use proteinmpnn. For structure validation, use alphafold or chai. For QC thresholds, use protein-qc.
license
MIT
category
design-tools
tags
structure-design, diffusion, backbone, binder
proteinbase_slug
rfdiffusion
proteinbase_url
https://proteinbase.com/design-methods/rfdiffusion

RFdiffusion Backbone Generation

Prerequisites

RequirementMinimumRecommended
Python3.9+3.10
CUDA11.7+12.0+
GPU VRAM16GB24GB (A10G)
RAM16GB32GB

How to run

RFdiffusion is not in biomodals, so run it from the official RosettaCommons repo or its Docker image, not through Modal.

Local installation (official repo)
bash
git clone https://github.com/RosettaCommons/RFdiffusion.git
cd RFdiffusion

# Conda env including the required NVIDIA SE(3)-Transformer
conda env create -f env/SE3nv.yml
conda activate SE3nv
cd env/SE3Transformer && pip install . && cd ../..
pip install -e .

# Download weights (per-file hashed paths; see the repo README for the full list)
mkdir -p models
wget -P models http://files.ipd.uw.edu/pub/RFdiffusion/e29311f6f1bf1af907f9ef9f44b8328b/Complex_base_ckpt.pt

# Binder design run; single-quote the hydra args so the shell does not split [] or ,
./scripts/run_inference.py \
  inference.input_pdb=target.pdb \
  'contigmap.contigs=[A1-150/0 70-100]' \
  'ppi.hotspot_res=[A45,A67,A89]' \
  inference.num_designs=100

A RosettaCommons-maintained Docker image is also available from the repo README. After backbone generation, design sequences with proteinmpnn.

Config Schema (Hydra)

Contigmap Syntax
bash
# De novo single chain (50-100 residues)
contigmap.contigs=[50-100]

# Binder + target (A = target chain, fixed with /0)
contigmap.contigs=[A1-150/0 70-100]

# Motif scaffolding (preserve residues, /0 = fixed)
contigmap.contigs=[20-40/0 A10-30/0 20-40]

# Multi-chain binder
contigmap.contigs=[A1-100/0 B1-100/0 60-80]

# Variable length ranges
contigmap.contigs=[A1-150/0 50-100]  # Binder 50-100 AA
Hotspot Specification
bash
# Residues for interface (chain + resnum, no spaces)
ppi.hotspot_res=[A45,A67,A89]

Common mistakes

Contig Syntax

✅ Correct:

bash
'contigmap.contigs=[A1-150/0 70-100]'  # Target fixed (/0), binder variable

Single-quote the whole argument so the shell does not split on the space inside the brackets.

❌ Wrong:

bash
contigmap.contigs=[A1-150 70-100]     # Missing /0 - target will move!
contigmap.contigs=[A1-150/0 70-100]   # Unquoted: shell splits on the space
contigmap.contigs=[A1-150/0, 70-100]  # Extra comma changes the contig string
Hotspot Residues

✅ Correct:

bash
'ppi.hotspot_res=[A45,A67,A89]'      # Chain letter + residue number, whole arg quoted

❌ Wrong:

bash
ppi.hotspot_res=[45,67,89]           # Missing chain letter
'ppi.hotspot_res=[A45, A67, A89]'    # Spaces inside the list break parsing
Complete Parameter Reference
Core Parameters
ParameterDefaultRangeDescription
inference.num_designs101-10000Number of designs to generate
inference.input_pdb-pathTarget structure file
inference.output_prefixoutputstringOutput filename prefix
diffuser.T5020-200Diffusion timesteps
denoiser.noise_scale_ca1.00.0-2.0CA atom noise (0.5-0.8 = conservative)
denoiser.noise_scale_frame1.00.0-2.0Frame noise
inference.ckpt_override_path-pathModel checkpoint
potentials.guide_scale1.00.1-10Guidance strength
potentials.guide_decayconstantstringDecay type
Advanced Parameters
ParameterDefaultDescription
diffuser.partial_TNoneStart diffusion from timestep T (partial diffusion)
contigmap.inpaint_strNoneSequence positions to inpaint
scaffoldguided.scaffoldguidedfalseEnable scaffold-guided generation
scaffoldguided.target_pdbNoneScaffold template PDB
ppi.binderlenNoneSpecify exact binder length
Symmetry Parameters
ParameterDefaultDescription
symmetry.symmetryNoneSymmetry type (C2, C3, C4, D2, etc.)
symmetry.recentertrueRecenter symmetric assembly
symmetry.radiusNoneRadius constraint for symmetric assembly
Fold Conditioning
ParameterDefaultDescription
contigmap.provide_seqNoneProvide sequence for fold conditioning
contigmap.inpaint_seqNonePositions for sequence inpainting
Model Checkpoints
CheckpointUse Case
Complex_base_ckpt.ptBinder design (default)
Base_ckpt.ptDe novo monomers
ActiveSite_ckpt.ptActive site scaffolding
InpaintSeq_ckpt.ptSequence inpainting

Common workflows

Binder Design
  1. Prepare target PDB (trim to binding region + 10A buffer)
  2. Identify 3-6 hotspot residues (exposed, conserved)
  3. Generate 100-500 backbones
  4. Pass to proteinmpnn for sequence design
Motif Scaffolding
  1. Extract motif coordinates
  2. Use /0 to fix motif in contigmap
  3. Generate surrounding scaffold
  4. Validate motif preservation (RMSD < 1.5A)
Symmetric Oligomers
bash
# C3 symmetric trimer
python run_inference.py \
  symmetry.symmetry=C3 \
  contigmap.contigs=[100-150] \
  inference.num_designs=50

# D2 symmetric tetramer
python run_inference.py \
  symmetry.symmetry=D2 \
  contigmap.contigs=[80-120] \
  symmetry.radius=25

# Supported symmetries: C2, C3, C4, C5, C6, D2, D3, D4, tetrahedral, octahedral
Partial Diffusion (Refinement)
bash
# Start from existing structure, diffuse from timestep 10
python run_inference.py \
  inference.input_pdb=initial.pdb \
  diffuser.partial_T=10 \
  contigmap.contigs=[A1-100]
Show full SKILL.md (221 more words)Show less

Output format

output/
├── output_0.pdb       # Generated backbone
├── output_1.pdb
├── ...
└── output_99.pdb

Each PDB contains polyalanine backbone - use proteinmpnn for sequence.

Sample output

Successful run
$ python run_inference.py inference.input_pdb=target.pdb contigmap.contigs=[A1-150/0 70-100] inference.num_designs=100
[INFO] Loading model from Complex_base_ckpt.pt
[INFO] Generating design 1/100...
[INFO] Generating design 50/100...
[INFO] Generating design 100/100...
[INFO] Saved 100 designs to output/

Generated:
output/output_0.pdb (85 residues)
output/output_1.pdb (92 residues)
...

What good output looks like:

  • File size: 3-8 KB per PDB (backbone only)
  • Residue count within specified range
  • Secondary structure visible in PyMOL (helices/sheets, not random coil)

Decision tree

Should I use RFdiffusion?
│
├─ Need to generate protein backbone?
│  ├─ Yes → Continue below
│  └─ No, already have backbone → Use ProteinMPNN
│
├─ What type of design?
│  ├─ Binder for protein target → RFdiffusion ✓
│  ├─ De novo monomer → RFdiffusion ✓
│  ├─ Motif scaffolding → RFdiffusion ✓
│  └─ Symmetric assembly → RFdiffusion ✓
│
└─ Priority?
   ├─ Need highest success rate → Consider BindCraft
   ├─ Need diversity/exploration → RFdiffusion ✓
   └─ Need all-atom precision → Consider BoltzGen

Typical performance

Campaign SizeTime (A10G)Cost (Modal)Notes
100 backbones20-30 min~$3Quick exploration
500 backbones1.5-2h~$12Standard campaign
1000 backbones3-4h~$25Large campaign

Expected downstream yield: ~10-15% of backbones pass full QC after sequence design + validation.

Adaptyv's own tests of these models showed an RFdiffusion + sequence-design pipeline costing about $0.25 per accepted design, averaged across 7 targets, among the cheapest of the methods tested.


Verify

bash
ls output/*.pdb | wc -l  # Should match num_designs

Troubleshooting

Designs lack secondary structure: Decrease noise_scale to 0.5-0.8 Binder not contacting hotspots: Verify residue numbering, increase num_designs OOM errors: Reduce batch size or use A100 GPU Slow generation: Reduce diffuser.T to 25-35

Error interpretation
ErrorCauseFix
RuntimeError: CUDA out of memoryGPU VRAM exceededUse A100 or reduce designs per batch
KeyError: 'A'Chain not found in PDBCheck chain IDs with grep ^ATOM target.pdb | cut -c22 | sort -u
ValueError: invalid contigSyntax error in contigsCheck for spaces, quotes, commas (see Common Mistakes)
FileNotFoundError: ckptMissing model weightsDownload from IPD website

Next: proteinmpnn for sequence design → structure prediction for validation → protein-qc for filtering.

© adaptyvbio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/rfdiffusion of adaptyvbio/protein-design-skills.

  • SKILL.md
  • examples/binder-walkthrough.md
  • references/hotspot-selection.md
  • references/parameters.md

Open the folder on GitHubat commit 59dd633

Used in 4 other repositories

We found 6 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in adaptyvbio/protein-design-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Rfdiffusion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rfdiffusion compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rfdiffusion this skilladaptyvbio/protein-design-skills1634 repos~2.3kAutomated safety check: PassMIT
Alphafold Database Fetch And Analyzegoogle-deepmind/science-skills3.2k2 repos~1.2kAutomated safety check: PassApache-2.0
Biopipelineslocbp-uzh/biopipelines109—~2.4kAutomated safety check: PassMIT
Bio DB ToolsDrugClaw/DrugClaw125—~1.4kAutomated safety check: PassApache-2.0
Ggetdavila7/claude-code-templates32k11 repos~6.3kAutomated safety check: PassMIT
Alphafold Databasedavila7/claude-code-templates32k10 repos~4kAutomated safety check: PassMIT

Similar skills

  • Alphafold Database Fetch And Analyze

    google-deepmind/science-skills

    Retrieve and analyze AlphaFold predicted structures for a protein.

    3.2k GitHub starsUsed in 2 repos~1.2k tokens
    Research & ScienceAuto-check passed
  • Biopipelines

    locbp-uzh/biopipelines

    Design and run computational protein and ligand workflows on a GPU: binder and enzyme design, de novo backbone generation, inverse folding and sequence redesign, structure prediction, protein-ligand…

    109 GitHub stars~2.4k tokensUpdated 8 days ago
    Research & ScienceAuto-check passed
  • Bio DB Tools

    DrugClaw/DrugClaw

    Query public biology databases and APIs including UniProt, RCSB PDB, AlphaFold DB, ClinVar, dbSNP, gnomAD, Ensembl, GEO, InterPro, KEGG, OpenTargets, Reactome, and STRING.

    125 GitHub stars~1.4k tokensUpdated 6 mo ago
    Research & ScienceAuto-check passed
  • Gget

    davila7/claude-code-templates

    CLI/Python toolkit for rapid bioinformatics queries. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 11 repos~6.3k tokens
    Research & ScienceAuto-check passed
  • Alphafold Database

    davila7/claude-code-templates

    Access AlphaFold's 200M+ AI-predicted protein structures. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 10 repos~4k tokens
    Research & ScienceAuto-check passed
  • Complexa Design

    NVIDIA-BioNeMo/bionemo-agent-toolkit

    End-to-end Proteina-Complexa design pipeline driver. An agent skill from NVIDIA-BioNeMo/bionemo-agent-toolkit.

    478 GitHub stars~4.1k tokensUpdated yesterday
    Research & ScienceAuto-check: notes

More from adaptyvbio/protein-design-skills

All 24 skills in this repo
  • Alphafold

    adaptyvbio/protein-design-skills

    Validate protein designs using AlphaFold2 structure prediction.

    163 GitHub starsUsed in 4 repos~1.2k tokens
    Auto-check passed
  • Bindcraft

    adaptyvbio/protein-design-skills

    End-to-end binder design using BindCraft hallucination. An agent skill from adaptyvbio/protein-design-skills.

    163 GitHub starsUsed in 4 repos~1.3k tokens
    Auto-check passed
  • Boltzgen

    adaptyvbio/protein-design-skills

    All-atom protein design using BoltzGen diffusion model. An agent skill from adaptyvbio/protein-design-skills.

    163 GitHub starsUsed in 4 repos~2k tokens
    Auto-check passed
  • Chai

    adaptyvbio/protein-design-skills

    Structure prediction using Chai-1, a foundation model for molecular structure.

    163 GitHub starsUsed in 4 repos~1.5k tokens
    Auto-check passed
  • Protein Design Workflow

    adaptyvbio/protein-design-skills

    End-to-end guidance for protein design pipelines. An agent skill from adaptyvbio/protein-design-skills.

    163 GitHub starsUsed in 4 repos~1.2k tokens
    Auto-check passed
  • Protein Qc

    adaptyvbio/protein-design-skills

    Quality control metrics and filtering thresholds for protein design.

    163 GitHub starsUsed in 4 repos~3.2k tokens
    Auto-check passed

Works with

Questions about Rfdiffusion

What does Rfdiffusion do?

Generate protein backbones using RFdiffusion, a diffusion-based generative model for de novo protein structure generation. Rfdiffusion is an agent skill from adaptyvbio/protein-design-skills. Generate protein backbones using RFdiffusion, a diffusion-based generative model for de novo protein structure generation.

When should I use Rfdiffusion?

Rfdiffusion fits situations like: designing binder scaffolds for a target protein; generating novel protein backbones from scratch; scaffolding functional motifs into new proteins; specifying hotspot residues for interface design.

How do I install Rfdiffusion in Claude Code?

Run `npx skills add adaptyvbio/protein-design-skills --skill rfdiffusion -a claude-code`. Or copy the skill folder (skills/rfdiffusion in adaptyvbio/protein-design-skills) into .claude/skills/rfdiffusion in your project. Claude Code loads it when a task matches its description.

How do I install Rfdiffusion in Codex?

Run `npx skills add adaptyvbio/protein-design-skills --skill rfdiffusion -a codex`. Or copy the skill folder (skills/rfdiffusion in adaptyvbio/protein-design-skills) into .agents/skills/rfdiffusion in your project. Codex loads it when a task matches its description.

Can I use Rfdiffusion in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add adaptyvbio/protein-design-skills --skill rfdiffusion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rfdiffusion, .gemini/skills/rfdiffusion, .github/skills/rfdiffusion and .opencode/skills/rfdiffusion in your project.

What does Rfdiffusion need to run?

Going by SKILL.md and its folder, Rfdiffusion needs the command-line tools its instructions call (python, conda, pip, git and wget). Our summary lists: Python 3; Docker.

Does Rfdiffusion access the network?

SKILL.md names 2 domains. In commands or code: github.com and files.ipd.uw.edu; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Rfdiffusion safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rfdiffusion use?

Rfdiffusion is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rfdiffusion use?

About 2.3k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Rfdiffusion?

Skills that share tags, products or a category with Rfdiffusion: Alphafold Database Fetch And Analyze (google-deepmind/science-skills, 3.2k stars), Biopipelines (locbp-uzh/biopipelines, 109 stars), Bio DB Tools (DrugClaw/DrugClaw, 125 stars) and Gget (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rfdiffusion?

adaptyvbio (a GitHub organization) maintains it in adaptyvbio/protein-design-skills, which has 163 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on June 11, 2026.

Source: adaptyvbio/protein-design-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.