Skip to content
Agentmart
Submit a tool

struct-predictor

Protein structure prediction with Boltz-2 (default) or OpenFold3.

Skill by ClawBio

IndexedMIT★ 1,166
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/clawbio-struct-predictor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Protein structure prediction with Boltz-2 (default) or OpenFold3. Accepts YAML inputs (single protein or multi-chain complex), runs the chosen backend offline, extracts per-residue pLDDT and PAE confidence, and writes a markdown report with figures.

Use cases: documents, backend, model-inference

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/struct-predictor

What's inside

Skill name
struct-predictor
Description
Protein structure prediction with Boltz-2 (default) or OpenFold3. Accepts YAML inputs (single protein or multi-chain complex), runs the chosen backend offline, extracts per-residue pLDDT and PAE confidence, and writes a markdown report with figures.
License
MIT
Metadata
version: 0.3.0
Instructions
135 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (11)

  • SKILL.md
  • trpcage.yaml · demo_data/
  • struct_predictor.py
  • __init__.py · struct_predictor_core/
  • confidence.py · struct_predictor_core/
  • io.py · struct_predictor_core/
  • predict.py · struct_predictor_core/
  • report.py · struct_predictor_core/
  • viewer.py · struct_predictor_core/
  • __init__.py · tests/
  • test_struct_predictor.py · tests/

SKILL.md (first lines)

# Struct Predictor

You are the **Struct Predictor**, a specialised agent for protein structure prediction using Boltz-2 (default) or OpenFold3.

## Core Capabilities

1. **Structure Prediction**: Run Boltz-2 (default) or OpenFold3 (`--backend openfold3`, CUDA GPU required) locally on a YAML input
2. **Confidence Extraction**: Per-residue pLDDT (from CIF B-factors) and PAE matrix (from confidence JSON)
3. **Report Generation**: Markdown with pLDDT line plot, PAE heatmap, band breakdown, and reproducibility bundle
4. **Demo Mode**: Trp-cage miniprotein (20 residues, PDB 1L2Y) — runs immediately, no input required

## CLI Reference

```bash
# Single protein or multi-chain complex (YAML)
python skills/struct-predictor/struct_predictor.py \
  --input complex.yaml --output /tmp/struct_out

# Same input with OpenFold3 instead of the Boltz-2 default
python skills/struct-predictor/struct_predictor.py \
  --input complex.yaml --output /tmp/struct_out --backend openfold3

# Demo (Trp-cage miniprotein, PDB 1L2Y — no input needed)
python skills/struct-predictor/struct_predictor.py \
  --demo --output /tmp/struct_demo
```

Both backends run offline (no MSA server, no templates). The input is the Boltz-style YAML for either backend; for OpenFold3 it is converted to an OpenFold3 query JSON with `use_msas: false`.

### Plain Text Examples

Predict the structure of a single protein from a YAML file:

    python skills/struct-predictor/struct_predictor.py --input my_protein.yaml --output /tmp/struct_out

Run the built-in Trp-cage demo (no input file needed):

    python skills/struct-predictor/struct_predictor.py --demo --output /tmp/struct_demo

Predict a two-chain complex:

    python skills/struct-predictor/struct_predictor.py --input complex_ab.yaml --output /tmp/complex_out

## Output Structure

```
output_dir/
  predictions/[name]/                      # Boltz native output (default backend)
    [name]_model_0.cif                     # predicted structure (pLDDT in B-factors)
    confidence_[name]_model_0.json         # confidence scores (ptm, iptm, pae, plddt)
  [name]/seed_[n]/                         # OpenFold3 native output (--backend openfold3)
    [name]_seed_[n]_sample_[k]_model.cif   # predicted structure (pLDDT in B-factors); best sample by sample_ranking_score
    [name]_seed_[n]_sample_[k]_confidences.json             # per-atom plddt, pae, pde
    [name]_seed_[n]_sample_[k]_confidences_aggregated.json  # avg_plddt, ptm, iptm, sample_ranking_score
  report.md                                # primary markdown report
  viewer.html                              # self-contained 3Dmol.js 3D viewer (open in browser)
  result.json                              # machine-readable summary
  figures/
    plddt.png                              # per-residue pLDDT confidence plot
    pae.png                                # PAE inter-residue error heatmap
  reproducibility/
    commands.sh                            # exact struct_predictor.py command used
    environment.txt                        # backend package version snapshot
```

## YAML Complex Format

```yaml
version: 1
sequences:
  - protein:
      id: A
      sequence: ACDEFGHIKLMNPQRSTVWY
      msa: empty        # runs offline; replace with a path to a .a3m file for MSA-guided prediction
  - protein:
      id: B
      sequence: NPQRSTVWYLSDEDFKAVFG
      msa: empty
```

### MSA Options

| `msa` value | Behaviour |
|---|---|
| `msa: empty` | No MSA — fast, fully offline, suitable for short/designed sequences |
| `msa: /path/to/file.a3m` | Pre-computed MSA — best accuracy for natural proteins |
| *(omit field)* | Boltz errors unless `--use_msa_server` is passed at predict time |

The `msa` field is ignored by the OpenFold3 backend, which always runs with `use_msas: false`.

## pLDDT Confidence Bands

| Band | pLDDT Range | Interpretation |
|------|------------|----------------|
| Very high | ≥ 90 | Backbone accurate to ~0.5 Å |
| High | 70–90 | Generally reliable |
| Low | 50–70 | Disordered or uncertain |
| Very low | < 50 | Likely intrinsically disordered |

## Demo Data

| Item | Value |
|------|-------|
| File | `skills/struct-predictor/demo_data/trpcage.yaml` |
| Sequence | `NLYIQWLKDGGPSSGRPPPS` |
| Name | Trp-cage miniprotein |
| Length | 20 residues |
| PDB reference | 1L2Y |

## Gotchas

- The model will want to `pip install openfold3` and run it. Do not assume that works on a GPU host: pip can pull a CUDA 13 torch that fails with "NVIDIA driver on your system is too old (found version 12080)" on CUDA 12.8 drivers. Check `nvidia-smi`, then pin a matching build, e.g. `pip install "torch==2.11.0+cu128" --index-url https://download.pytorch.org/whl/cu128 --extra-index-url https://pypi.org/simple`.
- The model will want to call `run_openfold predict` directly. Do not. Its `--use-msa-server` default is not guaranteed offline, so the skill always passes `--use-msa-server=false --use-templates=false`. Dropping those flags can send sequences to the ColabFold server.
- The model will want to say OpenFold3 works anywhere. Do not. It needs a CUDA GPU and a one-time `setup_openfold` weight download; without them stay on the Boltz-2 default.
- The model will want to treat both engines as equally licensed. Do not. Boltz code and weights are MIT. OpenFold3 code is Apache-2.0, but no licence for its model weights is stated in its README or parameters docs; confirm with the OpenFold team before commercial use.

## Dependencies

```bash

From ClawBio/ClawBio, MIT.

More from ClawBio/ClawBio

Compare and alternatives

Featured in

Signals

Stars
1,166
Forks
288
Open issues
27
Last commit (this folder)
Oct 5, 2026 (22 days ago)
Last release
Sep 11, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
0.3.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ClawBio

Cite this page

struct-predictor skill. Agent Mart. https://agentmart.dev/skills/clawbio-struct-predictor (last updated 2026-10-24)