adaptyvbio/protein-design-skills/rfdiffusion
Claude Code and agent skill by adaptyvbio/protein-design-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install adaptyvbio/protein-design-skills/rfdiffusionSKILL.md
RFdiffusion Backbone Generation
Prerequisites
| Requirement | Minimum | Recommended | |
|---|---|---|---|
| Python | 3.9+ | 3.10 | |
| CUDA | 11.7+ | 12.0+ | |
| GPU VRAM | 16GB | 24GB (A10G) | |
| RAM | 16GB | 32GB |
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)
A RosettaCommons-maintained Docker image is also available from the repo README. After backbone generation, design sequences with proteinmpnn.
Config Schema (Hydra)
Contigmap Syntax
Hotspot Specification
Common mistakes
Contig Syntax
✅ Correct:
Single-quote the whole argument so the shell does not split on the space inside the brackets.
❌ Wrong:
Hotspot Residues
✅ Correct:
❌ Wrong:
Complete Parameter Reference
Core Parameters
| Parameter | Default | Range | Description | |
|---|---|---|---|---|
inference.num_designs | 10 | 1-10000 | Number of designs to generate | |
inference.input_pdb | - | path | Target structure file | |
inference.output_prefix | output | string | Output filename prefix | |
diffuser.T | 50 | 20-200 | Diffusion timesteps | |
denoiser.noise_scale_ca | 1.0 | 0.0-2.0 | CA atom noise (0.5-0.8 = conservative) | |
denoiser.noise_scale_frame | 1.0 | 0.0-2.0 | Frame noise | |
inference.ckpt_override_path | - | path | Model checkpoint | |
potentials.guide_scale | 1.0 | 0.1-10 | Guidance strength | |
potentials.guide_decay | constant | string | Decay type |
Advanced Parameters
| Parameter | Default | Description | |
|---|---|---|---|
diffuser.partial_T | None | Start diffusion from timestep T (partial diffusion) | |
contigmap.inpaint_str | None | Sequence positions to inpaint | |
scaffoldguided.scaffoldguided | false | Enable scaffold-guided generation | |
scaffoldguided.target_pdb | None | Scaffold template PDB | |
ppi.binderlen | None | Specify exact binder length |
Symmetry Parameters
| Parameter | Default | Description | |
|---|---|---|---|
symmetry.symmetry | None | Symmetry type (C2, C3, C4, D2, etc.) | |
symmetry.recenter | true | Recenter symmetric assembly | |
symmetry.radius | None | Radius constraint for symmetric assembly |
Fold Conditioning
| Parameter | Default | Description | |
|---|---|---|---|
contigmap.provide_seq | None | Provide sequence for fold conditioning | |
contigmap.inpaint_seq | None | Positions for sequence inpainting |
Model Checkpoints
| Checkpoint | Use Case | |
|---|---|---|
Complex_base_ckpt.pt | Binder design (default) | |
Base_ckpt.pt | De novo monomers | |
ActiveSite_ckpt.pt | Active site scaffolding | |
InpaintSeq_ckpt.pt | Sequence inpainting |
Common workflows
Binder Design
- Prepare target PDB (trim to binding region + 10A buffer)
- Identify 3-6 hotspot residues (exposed, conserved)
- Generate 100-500 backbones
- Pass to proteinmpnn for sequence design
Motif Scaffolding
- Extract motif coordinates
- Use
/0to fix motif in contigmap - Generate surrounding scaffold
- Validate motif preservation (RMSD < 1.5A)
Symmetric Oligomers
Partial Diffusion (Refinement)
Output format
Each PDB contains polyalanine backbone - use proteinmpnn for sequence.
Sample output
Successful run
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
Typical performance
| Campaign Size | Time (A10G) | Cost (Modal) | Notes | |
|---|---|---|---|---|
| 100 backbones | 20-30 min | ~$3 | Quick exploration | |
| 500 backbones | 1.5-2h | ~$12 | Standard campaign | |
| 1000 backbones | 3-4h | ~$25 | Large 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
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
| Error | Cause | Fix | |||
|---|---|---|---|---|---|
RuntimeError: CUDA out of memory | GPU VRAM exceeded | Use A100 or reduce designs per batch | |||
KeyError: 'A' | Chain not found in PDB | Check chain IDs with `grep ^ATOM target.pdb \ | cut -c22 \ | sort -u` | |
ValueError: invalid contig | Syntax error in contigs | Check for spaces, quotes, commas (see Common Mistakes) | |||
FileNotFoundError: ckpt | Missing model weights | Download from IPD website |
Next: proteinmpnn for sequence design → structure prediction for validation → protein-qc for filtering.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rfdiffusion/SKILL.md
Popularity
- Repository stars
- 110
- Repository forks
- 11
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adaptyvbio/protein-design-skills/rfdiffusion)