Agent skill

Rfdiffusion

by PKU-YuanGroup in PKU-YuanGroup/OpenAI4S

Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies.

MITAuto-check passedResearch & Science

Install Rfdiffusion

skills CLI
$ npx skills add PKU-YuanGroup/OpenAI4S --skill rfdiffusion -a claude-code

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

GitHub CLI
$ gh skill install PKU-YuanGroup/OpenAI4S 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/PKU-YuanGroup/OpenAI4S.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
622
Token cost
~2.2k tokens
SKILL.md length
978 words
Files
3
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies.

  • Works in 5 steps: Preserve the original chain IDs and… → Audit missing residues/atoms, alternate… → For binder design, confirm proposed… → …
  • A design workflow needs reproducible RFdiffusion contigs
  • SKILL.md covers Preflight: freeze the design…, Install and invoke the…, Motif scaffolding and Batch safely and make runs…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rfdiffusion is an agent skill from PKU-YuanGroup/OpenAI4S. Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies. Use this skill when a design workflow needs reproducible RFdiffusion contigs, residue mappings, checkpoints, seeds, batch execution, and handoff to ProteinMPNN plus independent structure validation. RFdiffusion generates backbones; it does not validate folding or binding.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `README_zh.md`).

It sits in Research & Science, covering Protein structure and design and Project scaffolding. The repository describes itself as: Open-source AI agent for scientific research. Analyze data in Python/R with Claude, GPT, Gemini, and more. The licence is MIT.

When your agent uses it

  • A design workflow needs reproducible RFdiffusion contigs
  • Residue mappings
  • Batch execution
  • Handoff to ProteinMPNN plus independent structure validation

Example prompts

  • “/rfdiffusion”

Requirements

  • Python 3
  • Docker

Workflow steps

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

  1. Preserve the original chain IDs and residue numbers. Write an explicit map
  2. Audit missing residues/atoms, alternate locations, non-standard residues,
  3. For binder design, confirm proposed hotspot residues are surface-accessible
  4. Freeze the target PDB digest, RFdiffusion commit, checkpoint digest,
  5. Keep target-only coordinates separate from any withheld reference binder.

What it can do on your machine

Read from SKILL.md and the folder at commit 4a72e87. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

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

  • Network

    No URLs in SKILL.md.

    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.2k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 978 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

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 PKU-YuanGroup/OpenAI4S at commit 4a72e87, republished under its MIT licence (© PKU-YuanGroup). 978 words, ~2,216 tokens.

Download SKILL.mdSave it as .claude/skills/rfdiffusion/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
rfdiffusion
description
Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies. Use this skill when a design workflow needs reproducible RFdiffusion contigs, residue mappings, checkpoints, seeds, batch execution, and handoff to ProteinMPNN plus independent structure validation. RFdiffusion generates backbones; it does not validate folding or binding.
license
MIT
origin
openai4s
category
biomodels
requirements
gpu
metadata.display-name
RFdiffusion

RFdiffusion

Use RFdiffusion for the backbone-generation stage of a protein-design workflow. Treat its output as a structural proposal, not as evidence that a sequence folds or binds. Design sequences afterward with proteinmpnn (or ligandmpnn when non-protein atoms must be visible), then validate both the isolated design and the target–design complex with an independent predictor such as boltz, chai1, or alphafold2.

The adapted recipe is MIT-licensed. The upstream RFdiffusion code and the model weights referenced by its README are BSD-3-Clause; record the exact upstream commit and checkpoint digest used by each run.

Preflight: freeze the design contract

Before inference:

  1. Preserve the original chain IDs and residue numbers. Write an explicit map if the input is renumbered, cropped, or has insertion codes.
  2. Audit missing residues/atoms, alternate locations, non-standard residues, and biological assembly choice. Do not silently remove cofactors or chains.
  3. For binder design, confirm proposed hotspot residues are surface-accessible and belong to the intended target chain. A typical pilot uses 3–6 spatially coherent hotspots, but the biological interface determines the final set.
  4. Freeze the target PDB digest, RFdiffusion commit, checkpoint digest, contig string, hotspot list, seed policy, number of designs, and output prefix in a machine-readable manifest.
  5. Keep target-only coordinates separate from any withheld reference binder. Do not leak a reference complex into generation or validation.

Do not trim a target merely to make inference cheaper unless the retained construct is biologically justified and the residue map is preserved.

Install and invoke the official runner

RFdiffusion is a source repository rather than an OpenAI4S sidecar. Prepare a pinned GPU environment, clone a fixed revision of the official repository, install it there, and download the documented checkpoint. Verify every download before starting a campaign. Follow the upstream CUDA/PyTorch/DGL compatibility instructions for the selected revision; do not improvise a version matrix from this recipe.

Do not install RFdiffusion into OpenAI4S's shared struct environment. That environment intentionally targets portable Python 3.13 with a CPU PyTorch build, whereas upstream RFdiffusion publishes a Python 3.9, CUDA-specific PyTorch/DGL stack. Use a pinned dedicated conda environment or the official RFdiffusion Docker image pinned by digest. openai4s setup --profile full creates the shared struct environment; it does not provision RFdiffusion, GPU drivers, model weights, or a container image.

Run scripts from the RFdiffusion repository root. The official inference entry point is scripts/run_inference.py:

bash
./scripts/run_inference.py \
  inference.input_pdb=target.pdb \
  'contigmap.contigs=[A1-150/0 70-100]' \
  'ppi.hotspot_res=[A45,A67,A89]' \
  inference.output_prefix=results/backbones/design \
  inference.num_designs=48

This example fixes target chain A residues 1–150, inserts a chain break, and generates a 70–100-residue binder chain. The output is backbone-only: designed residues are represented as glycine by default. That is expected and is the handoff point to inverse folding.

Quote the entire Hydra list override, including brackets. Shell tokenization otherwise splits a contig containing spaces before Hydra sees it. Inside the contig:

  • /0 means a chain break: slash, zero, then a space.
  • / without the zero joins segments in the same output chain.
  • A10-30 selects fixed input coordinates; 20-40 requests a generated segment of variable length.
  • The order of contig segments controls the output topology. Never infer output residue identity from the PDB alone; read the mapping in the .trb.
  • Hotspots use input chain plus residue number, with no spaces between list items. Quote that whole list override too.

Common malformed variants are an unquoted contig with spaces, a comma between contig segments, a missing /0 at a desired chain break, or hotspot numbers without chain IDs.

Show full SKILL.md (423 more words)Show less

Motif scaffolding

For motif scaffolding, retain motif coordinates as an input-coordinate segment and generate flanking residues in the same chain. For example, if the input contains target chain A and a functional motif at B10–B24:

bash
./scripts/run_inference.py \
  inference.input_pdb=target_and_motif.pdb \
  'contigmap.contigs=[A1-150/0 20-40/B10-24/20-40]' \
  'ppi.hotspot_res=[A45,A67,A89]' \
  inference.output_prefix=results/motif_scaffolds/design \
  inference.num_designs=48

Confirm the exact syntax against the pinned upstream revision before spending a large GPU budget. After generation, compute motif backbone RMSD and the motif–target contact geometry using the .trb input/output residue mapping. Do not assume PDB residue numbers survived contig assembly. Preserve motif sequence positions during downstream sequence design.

Batch safely and make runs resumable

One large foreground call can exceed the OpenAI4S cell watchdog. Split a campaign into deterministic batches or use host.exec_background / remote compute. Assign each batch a disjoint output prefix and seed range. Keep an append-only manifest with, at minimum:

json
{
  "batch_id": "round1_batch03",
  "status": "completed",
  "input_pdb_sha256": "...",
  "rfdiffusion_commit": "...",
  "checkpoint_sha256": "...",
  "contigs": "[A1-150/0 70-100]",
  "hotspots": ["A45", "A67", "A89"],
  "seed_start": 2000,
  "requested": 8,
  "completed": 8,
  "output_prefix": "results/backbones/r1_b03/design"
}

Poll the job rather than repeatedly submitting it. On resume, verify completed PDB/TRB pairs and their digests before scheduling missing design indices. Do not overwrite an earlier round when contigs, hotspots, checkpoints, or target coordinates change; create a new round and record why it changed.

Preserve and interpret every upstream output

For each design, retain:

  • the final PDB backbone;
  • the .trb, which stores the sampled contig/config plus residue mappings and masks needed to audit the design;
  • the denoising trajectory files when produced, or an explicit retention rule if storage policy excludes them;
  • stdout/stderr, the resolved Hydra config, the batch manifest, and digests.

Reject or flag outputs that are incomplete, violate requested length/chain layout, lose fixed target or motif coordinates, clash severely, or cannot be mapped back to input residues. Secondary structure visible in a generated PDB is not a sufficient QC result.

Downstream scientific loop

  1. Use the .trb mapping to separate fixed target/motif positions from designable binder positions.
  2. Generate multiple sequences per accepted backbone with proteinmpnn; preserve fixed motif residues and record temperature, seeds, and model checkpoint.
  3. Fold each binder alone and compare it with the intended binder backbone.
  4. Re-predict the target–binder complex independently. For benchmark use, do not provide the designed complex as a template or initial guess; this is a stricter anti-self-validation rule than some production pipelines.
  5. Compute interface metrics on the independently predicted complex, including hotspot/epitope contacts, non-epitope contacts, buried surface area, clashes, and confidence fields appropriate to the predictor.
  6. Apply hard constraints first, then rank and diversity-cluster survivors. Use failure distributions to justify any next RFdiffusion round.

RFdiffusion scores, a generated interface, ProteinMPNN likelihood, monomer confidence, or any one complex-confidence field alone is not proof of binding. Report computational candidates as hypotheses requiring experimental testing.

© PKU-YuanGroup, 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 2 other files in skills/rfdiffusion of PKU-YuanGroup/OpenAI4S.

  • SKILL.md
  • README.md
  • README_zh.md

Open the folder on GitHubat commit 4a72e87

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 skillPKU-YuanGroup/OpenAI4S622—~2.2kAutomated safety check: PassMIT
Complexa DesignNVIDIA-BioNeMo/bionemo-agent-toolkit479—~4.1kAutomated safety check: NotesCustom licence
Rfdiffusionadaptyvbio/protein-design-skills1643 repos~2.3kAutomated safety check: PassMIT
Tooluniverse Protein Therapeutic Designwu-yc/LabClaw1.1k2 repos~4.4kAutomated safety check: PassNone
Gtdscunning1975/MixtapeTools474—~2.9kAutomated safety check: NotesNone
Scaffold Exercisespedrohcgs/claude-code-my-workflow1.7k—~2kAutomated safety check: NotesMIT

Similar skills

  • Complexa Design

    NVIDIA-BioNeMo/bionemo-agent-toolkit

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

    479 GitHub stars~4.1k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Rfdiffusion

    adaptyvbio/protein-design-skills

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

    164 GitHub starsUsed in 3 repos~2.3k tokens
    Research & ScienceAuto-check passed
  • Design novel protein therapeutics (binders, enzymes, scaffolds) using AI-guided de novo design.

    1.1k GitHub starsUsed in 2 repos~4.4k tokens
    Research & ScienceAuto-check passed
  • Gtd

    scunning1975/MixtapeTools

    Warrant-first research GTD system. An agent skill from scunning1975/MixtapeTools.

    474 GitHub stars~2.9k tokensUpdated 1 mo ago
    Research & ScienceAuto-check: notes
  • Scaffold Exercises

    pedrohcgs/claude-code-my-workflow

    Scaffold a graded problem set with sections, problems, worked solutions, and short "why this matters" explainers across analytical, empirical, and coding types.

    1.7k GitHub stars~2k tokensUpdated 13 days ago
    Research & ScienceAuto-check: notes
  • Rfdiffusion Nim

    NVIDIA/skills

    Official

    Run RFDiffusion protein backbone design via NVIDIA NIM. An agent skill from NVIDIA/skills.

    3.6k GitHub starsUsed in 1 repo~1.3k tokens
    DevOps & CloudAuto-check: notes

More from PKU-YuanGroup/OpenAI4S

All 17 skills in this repo
  • Single Cell Rna Analysis

    PKU-YuanGroup/OpenAI4S

    Reproducible Scanpy workflow for human or mouse 10x scRNA-seq and snRNA-seq count matrices: single-sample descriptive QC, clustering and annotation, or comparative donor-aware pseudobulk DE and Milo…

    622 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Bioprobench

    PKU-YuanGroup/OpenAI4S

    Score an LLM's biological-protocol reasoning on the BioProBench benchmark: protocol QA, step ordering, error detection, protocol generation, and LLM-judged error reasoning; or generate the responses.

    622 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Reaction Atom Mapping

    PKU-YuanGroup/OpenAI4S

    Map atoms and changed bonds for a complete reaction with RXNMapper.

    622 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Reaction Forward Prediction

    PKU-YuanGroup/OpenAI4S

    Predict ranked products from reactants and reagents with ReactionT5v2-forward; use for outcome prediction or round-trip recovery.

    622 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Reaction Yield Estimation

    PKU-YuanGroup/OpenAI4S

    Estimate yield for a fully specified reactant/reagent/product record with ReactionT5v2-yield.

    622 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Single Step Retrosynthesis

    PKU-YuanGroup/OpenAI4S

    Generate ranked one-step precursor sets for a product with RetroChimera; use for disconnection ideas or expansion-policy calls.

    622 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed

Questions about Rfdiffusion

What does Rfdiffusion do?

Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies. Rfdiffusion is an agent skill from PKU-YuanGroup/OpenAI4S. Generate de novo protein backbones with RFdiffusion for protein-target binders, hotspot-conditioned interfaces, motif scaffolding, partial diffusion, or symmetric assemblies.

When should I use Rfdiffusion?

Rfdiffusion fits situations like: A design workflow needs reproducible RFdiffusion contigs; residue mappings; batch execution; handoff to ProteinMPNN plus independent structure validation.

How do I install Rfdiffusion in Claude Code?

Run `npx skills add PKU-YuanGroup/OpenAI4S --skill rfdiffusion -a claude-code`. Or copy the skill folder (skills/rfdiffusion in PKU-YuanGroup/OpenAI4S) 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 PKU-YuanGroup/OpenAI4S --skill rfdiffusion -a codex`. Or copy the skill folder (skills/rfdiffusion in PKU-YuanGroup/OpenAI4S) 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 PKU-YuanGroup/OpenAI4S --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?

SKILL.md names no scripts, command-line tools or credentials: Rfdiffusion is instructions for the agent only. Our summary lists: Python 3; Docker.

Does Rfdiffusion access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rfdiffusion?

Skills that share tags, products or a category with Rfdiffusion: Complexa Design (NVIDIA-BioNeMo/bionemo-agent-toolkit, 479 stars), Rfdiffusion (adaptyvbio/protein-design-skills, 164 stars), Tooluniverse Protein Therapeutic Design (wu-yc/LabClaw, 1.1k stars) and Gtd (scunning1975/MixtapeTools, 474 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rfdiffusion?

PKU-YuanGroup (a GitHub organization) maintains it in PKU-YuanGroup/OpenAI4S, which has 622 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 9, 2026.

Source: PKU-YuanGroup/OpenAI4S on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.