Agent skill

Chai

by lamm-mit in lamm-mit/scienceclaw

A skill your agent uses when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.

Apache-2.0Auto-check passed

Install Chai

skills CLI
$ npx skills add lamm-mit/scienceclaw --skill chai -a claude-code

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

GitHub CLI
$ gh skill install lamm-mit/scienceclaw chai --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/lamm-mit/scienceclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/chai .claude/skills/chai && 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
chai
GitHub stars
244
Token cost
~1.1k tokens
SKILL.md length
193 words
Files
1
Skills in repo
85
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.

  • Predicting molecular structures (proteins
  • SKILL.md covers Requirements, Installation, Local Usage and Chai Discovery API (No Local…, plus 5 more sections
  • Calls pip; reaches api.chaidiscovery.com; needs CHAI_API_KEY
  • Small molecules

What it does

Chai is an agent skill from lamm-mit/scienceclaw. Use when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is Apache-2.0.

When your agent uses it

  • Predicting molecular structures (proteins
  • Small molecules
  • Complexes) with the Chai-1 foundation model via local inference
  • The Chai Discovery API

Example prompts

  • “/chai”

Requirements

  • Python 3
  • A credential in CHAI_API_KEY

What it can do on your machine

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

    • pip

    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:

    • api.chaidiscovery.com

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CHAI_API_KEY

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

Context cost

Chai loads about 1.1k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 193 words of instructions outside code blocks.

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

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 lamm-mit/scienceclaw at commit ab9aba1, republished under its Apache-2.0 licence (© lamm-mit). 193 words, ~1,053 tokens.

Download SKILL.mdSave it as .claude/skills/chai/SKILL.md (or your agent's skills folder).
name
chai
description
Use when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.

Chai-1 Structure Prediction

Use when the user needs to predict molecular structures — proteins, nucleic acids, small molecules, or multi-chain complexes — using the Chai-1 foundation model. Supports both local GPU inference and the Chai Discovery API for remote execution.

Requirements

  • Python 3.10+
  • 16 GB GPU VRAM (A10G sufficient; A100 for large complexes)
  • Or: use Chai Discovery API (no local GPU needed)

Installation

bash
pip install chai-lab

Local Usage

Python API
python
from chai_lab.chai1 import run_inference
import torch
from pathlib import Path

# Single protein
results = run_inference(
    fasta_file=Path("input.fasta"),
    output_dir=Path("results/"),
    num_trunk_recycles=3,
    num_diffn_timesteps=200,
    seed=42,
    device=torch.device("cuda:0"),
    use_esm_embeddings=True,
)

# Access results
for i, result in enumerate(results):
    print(f"Model {i}: pTM={result.ptm:.3f}, ipTM={result.iptm:.3f}")
FASTA Input Format
fasta
# Single chain
>protein|A
MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPT

# Complex: separate chains with different headers
>protein|A
EVQLVESGGGLVQPGGSLRLSCAASGFTFSDYYMSWVRQAP
>protein|B
MTEYKLVVVGAGGVGKSALTIQLIQNHFVDE

# With small molecule (SMILES)
>protein|A
MTEYKLVVVGAGGVGKS...
>ligand|L
CC1=CC=C(C=C1)NC(=O)C2=CC=C(C=C2)CN3CCN(CC3)C

# RNA
>rna|R
GCGGAUUUAGCUCAGUUGGGAGAGCGCCAGACUGAAGAUCUGGAGGUCCUGUGUUCGAUCCACAGAAUUCGCACCA

Chai Discovery API (No Local GPU)

python
import requests

# Submit prediction job
response = requests.post(
    "https://api.chaidiscovery.com/v1/predictions",
    headers={"Authorization": f"Bearer {CHAI_API_KEY}"},
    json={
        "sequences": [
            {"type": "protein", "chain_id": "A", "sequence": "MTEYKLVV..."},
            {"type": "protein", "chain_id": "B", "sequence": "EVQLVES..."}
        ],
        "num_diffn_timesteps": 200,
        "num_trunk_recycles": 3,
    }
)
job_id = response.json()["job_id"]

# Poll for results
import time
while True:
    status = requests.get(
        f"https://api.chaidiscovery.com/v1/predictions/{job_id}",
        headers={"Authorization": f"Bearer {CHAI_API_KEY}"}
    ).json()
    if status["status"] == "completed":
        break
    time.sleep(30)

# Download structure
structure_url = status["results"]["structure_url"]

Output Files

FileContents
pred.model_idx_0.cifTop-ranked structure (CIF format)
pred.model_idx_0.npzConfidence arrays (pLDDT, PAE, pDE)
scores.jsonAggregate scores per model

Parsing Confidence Scores

python
import numpy as np

data = np.load("pred.model_idx_0.npz")
plddt = data["plddt"]                    # Per-residue, shape (N,)
pae = data["pae"]                        # N×N matrix, Angstroms
pde = data.get("pde")                    # Predicted Distance Error

# Interface residues (chain A = target, chain B = binder)
chain_a_len = 150  # length of chain A
interface_pae = pae[:chain_a_len, chain_a_len:].mean()
print(f"Interface PAE: {interface_pae:.2f} Å (< 10 = good)")

Chai vs. Other Predictors

FeatureChai-1BoltzAF2
Speed (complex)FastMediumSlow
Small molecules✓✓✗
RNA/DNA✓✓✗
API available✓✗✗
Open weights✓✓✓
GPU VRAM16 GB24 GB32 GB

Quality Thresholds

MetricMarginalGoodExcellent
Mean pLDDT<6060–80>80
ipTM (complex)<0.50.5–0.75>0.75
Interface PAE>20 Å10–20 Å<10 Å

Use Cases

  • Fast validation: Predicts binder-target complexes quickly before committing to expensive MD simulations.
  • Ligand complexes: Predicts protein-small molecule binding poses from SMILES input.
  • Ensemble scoring: Generates multiple models and ranks them by ipTM for design selection.
  • Nucleic acid interactions: Predicts protein-DNA/RNA complex structures.

© lamm-mit, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/chai of lamm-mit/scienceclaw.

Open the folder on GitHubat commit ab9aba1

Compare with similar skills

Chai 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.

Chai compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chai this skilllamm-mit/scienceclaw244—~1.1kAutomated safety check: PassApache-2.0
Bio Structural Biology Modern Structure PredictionFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.5kAutomated safety check: PassNone
Bio Structural Biology Modern Structure PredictionGPTomics/bioSkills1.2k1 repos~4.6kAutomated safety check: PassMIT
Bio Structural Biology Alphafold PredictionsFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.1kAutomated safety check: PassNone
Chai1 Structure Predictionmajiayu000/claude-skill-registry6661 repos~1.7kAutomated safety check: PassMIT
Msa Structure Prediction PipelineNVIDIA/skills3.5k1 repos~1.6kAutomated safety check: NotesApache-2.0

Similar skills

  • Bio Structural Biology Modern Structure Prediction

    FreedomIntelligence/OpenClaw-Medical-Skills

    Predict protein structures using modern ML models including AlphaFold3, ESMFold, Chai-1, and Boltz-1.

    3.1k GitHub starsUsed in 1 repo~2.5k tokens
    Research & ScienceAuto-check passed
  • Predicts protein and complex structures with deep-learning models (ESMFold, AlphaFold2/ColabFold, AlphaFold3, Chai-1, Boltz-1/2) and reconciles them with confidence metrics.

    1.2k GitHub starsUsed in 1 repo~4.6k tokens
    Research & ScienceAuto-check passed
  • Bio Structural Biology Alphafold Predictions

    FreedomIntelligence/OpenClaw-Medical-Skills

    Access and analyze AlphaFold protein structure predictions. An agent skill from FreedomIntelligence/OpenClaw-Medical-Skills.

    3.1k GitHub starsUsed in 1 repo~2.1k tokens
    Research & ScienceAuto-check passed
  • Chai1 Structure Prediction

    majiayu000/claude-skill-registry

    Chai-1 structure prediction for protein complexes and design validation.

    666 GitHub starsUsed in 1 repo~1.7k tokens
    Research & ScienceAuto-check passed
  • Official

    NOTE: your protein sequence and the retrieved MSA alignment are transmitted to external NVIDIA-hosted APIs (health.api.nvidia.com) on every call.

    3.5k GitHub starsUsed in 1 repo~1.6k tokens
    Research & ScienceAuto-check: notes
  • Retrieves protein structure data from RCSB PDB, PDBe, and AlphaFold with protein disambiguation, quality assessment, and comprehensive structural profiles.

    1.1k GitHub starsUsed in 2 repos~2.8k tokens
    Research & ScienceAuto-check passed

More from lamm-mit/scienceclaw

All 85 skills in this repo
  • Fred Economic Data

    lamm-mit/scienceclaw

    Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources.

    244 GitHub starsUsed in 4 repos~3k tokens
    Auto-check passed
  • Drug Research

    lamm-mit/scienceclaw

    Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.

    244 GitHub starsUsed in 3 repos~1.7k tokens
    Auto-check passed
  • Imaging Data Commons

    lamm-mit/scienceclaw

    Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index.

    244 GitHub starsUsed in 5 repos~11k tokens
    Auto-check passed
  • Rowan

    lamm-mit/scienceclaw

    Cloud-based quantum chemistry platform with Python API. An agent skill from lamm-mit/scienceclaw.

    244 GitHub starsUsed in 4 repos~3.1k tokens
    Auto-check: warnings
  • Infographics

    lamm-mit/scienceclaw

    Create professional infographics using Nano Banana Pro AI with smart iterative refinement.

    244 GitHub starsUsed in 6 repos~4.4k tokens
    Auto-check: notes
  • Disease Research

    lamm-mit/scienceclaw

    Generate comprehensive disease research reports using 100+ ToolUniverse tools.

    244 GitHub stars~946 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Chai

What does Chai do?

A skill your agent uses when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API. Chai is an agent skill from lamm-mit/scienceclaw. Use when predicting molecular structures (proteins, nucleic acids, small molecules, and complexes) with the Chai-1 foundation model via local inference or the Chai Discovery API.

When should I use Chai?

Chai fits situations like: predicting molecular structures (proteins; small molecules; complexes) with the Chai-1 foundation model via local inference; the Chai Discovery API.

How do I install Chai in Claude Code?

Run `npx skills add lamm-mit/scienceclaw --skill chai -a claude-code`. Or copy the skill folder (skills/chai in lamm-mit/scienceclaw) into .claude/skills/chai in your project. Claude Code loads it when a task matches its description.

How do I install Chai in Codex?

Run `npx skills add lamm-mit/scienceclaw --skill chai -a codex`. Or copy the skill folder (skills/chai in lamm-mit/scienceclaw) into .agents/skills/chai in your project. Codex loads it when a task matches its description.

Can I use Chai 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 lamm-mit/scienceclaw --skill chai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chai, .gemini/skills/chai, .github/skills/chai and .opencode/skills/chai in your project.

What does Chai need to run?

Going by SKILL.md and its folder, Chai needs the command-line tools its instructions call (pip) and credentials named CHAI_API_KEY. Our summary lists: Python 3; A credential in CHAI_API_KEY.

Does Chai access the network?

SKILL.md names 1 domain. In commands or code: api.chaidiscovery.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Chai 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 Chai use?

Chai is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chai use?

About 1.1k tokens (SKILL.md is roughly 4.2k 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 Chai?

Skills that share tags, products or a category with Chai: Bio Structural Biology Modern Structure Prediction (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars), Bio Structural Biology Modern Structure Prediction (GPTomics/bioSkills, 1.2k stars), Bio Structural Biology Alphafold Predictions (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars) and Chai1 Structure Prediction (majiayu000/claude-skill-registry, 666 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chai?

lamm-mit (a GitHub user) maintains it in lamm-mit/scienceclaw, which has 244 GitHub stars. The repository holds 85 skills in this directory. The repository was last updated on August 21, 2026.

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