Skip to content
Back to skills

Inverse Folding

ASecurity

"Use ESM-IF1 for fixed-backbone protein inverse design, sequence

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill inverse-folding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inverse Folding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inverse Folding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inverse-folding/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inverse-folding)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inverse-folding
description: "Use ESM-IF1 for fixed-backbone protein inverse design, sequence
  log-likelihood scoring, multichain conditioning, coordinate extraction, and
  structure encoder representations."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Inverse Folding

Use this sub-skill when a task needs ESM-IF1 to design or score protein sequences from known backbone coordinates. It covers fixed-backbone sequence sampling, single-chain and multichain complex conditioning, PDB/mmCIF coordinate extraction, missing-coordinate handling, conditional log-likelihood scoring, and encoder representations.

## When To Use

- Sample candidate amino-acid sequences for a PDB or mmCIF backbone with `esm.pretrained.esm_if1_gvp4_t16_142M_UR50()` and `model.sample(...)`.
- Score one or more sequences against a structure with `score_sequence(...)` or `score_sequence_in_complex(...)`.
- Condition target-chain design on all chains in a complex with `--multichain-backbone` or `multichain_util` APIs.
- Extract N/CA/C backbone coordinates and native sequences from PDB/mmCIF files.
- Obtain structure-conditioned encoder representations from ESM-IF1.

## Route Elsewhere

- Use the sibling [`structure-prediction`](../structure-prediction/SKILL.md) sub-skill for ESMFold forward folding from sequence to structure.
- Use the sibling [`model-embeddings`](../model-embeddings/SKILL.md) sub-skill for generic protein language-model embeddings that do not use backbone coordinates.
- Use the sibling [`variant-effect-prediction`](../variant-effect-prediction/SKILL.md) sub-skill for mutation scoring without a structure-conditioned inverse-folding model.

## Start Here

1. Confirm the environment has PyTorch plus inverse-folding optional dependencies, especially `torch-geometric` and a compatible `biotite` API.
2. Validate the structure suffix is `.pdb` or `.cif`, choose the target chain ID, and decide whether to condition on only the target chain or the whole complex.
3. For CLI-style work, use the bundled dry-run helper in `scripts/inverse_folding_cli_helper.py` to construct safe commands before running downloads or GPU jobs.
4. For API work, load `model, alphabet = esm.pretrained.esm_if1_gvp4_t16_142M_UR50()` and call `model.eval()` before sampling or scoring.
5. Inspect sampled FASTA output for long amino-acid repeats and inspect scoring CSV output for sequence length mismatches or missing-coordinate effects.

## References

- `references/workflows.md` gives task recipes for sampling, scoring, multichain conditioning, encoder outputs, and diagnostic workflows.
- `references/api-reference.md` lists the supported ESM-IF1 loader and inverse-folding APIs.
- `references/data-formats.md` describes coordinate tensors, PDB/mmCIF requirements, FASTA input/output, CSV scoring output, and missing-coordinate conventions.
- `references/troubleshooting.md` maps common dependency, data, runtime, and biological-quality failures to fixes.

## Bundled Helper

Use `scripts/inverse_folding_cli_helper.py` for self-contained command construction and input validation:

```bash
python scripts/inverse_folding_cli_helper.py sample structure.pdb --chain C --outpath designs.fasta
python scripts/inverse_folding_cli_helper.py score structure.pdb variants.fasta --chain C --outpath scores.csv --multichain-backbone
```

The helper prints a dry-run command by default. Add `--execute` only when the environment is ready for model loading, potential torch hub downloads, and a long CPU/GPU run.

Files in this skill

  • SKILL.md3.5 KB
  • references/api-reference.md6 KB
  • references/data-formats.md5.6 KB
  • references/troubleshooting.md8 KB
  • references/workflows.md7.2 KB
  • scripts/inverse_folding_cli_helper.py14.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.