AGENT SKILL

structure-prediction

Predict protein structures from sequences or FASTA files with ESMFold Python APIs and the esm-fold CLI.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
structure-prediction
license
MIT
metadata
{ "disco-role": "operating" }
description
Predict protein structures from sequences or FASTA files with ESMFold Python APIs and the esm-fold CLI.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Structure Prediction

Use this sub-skill when a task needs ESMFold to convert amino-acid sequences or FASTA records into PDB strings/files, including Python infer_pdb calls, bulk esm-fold command construction, chunking, recycle counts, CPU-only execution, CPU offload, and confidence interpretation.

Start Here

  • Read references/api-reference.md for esm.pretrained.esmfold_v1(), model.infer_pdb, model.infer, model.output_to_pdb, model.set_chunk_size, devices, and PDB/confidence semantics.
  • Read references/cli-reference.md for esm-fold flags, FASTA-to-PDB behavior, batching, cache/model directory options, and pLDDT/pTM logs.
  • Read references/workflows.md for single-sequence Python folding, bulk FASTA folding, CPU-only dry runs, CPU offload, and multimer inputs with colon-separated chains.
  • Read references/troubleshooting.md for ESMFold optional dependencies, CUDA/OpenFold/dllogger install failures, CUDA OOM, slow CPU runs, model downloads, and invalid paths.
  • Run python scripts/esm_fold_command_builder.py --help from this sub-skill directory to build safe printable esm-fold commands without loading models or running inference.

Routing Boundaries

  • Use this sub-skill for ESMFold structure prediction, esm.pretrained.esmfold_v1(), esm.pretrained.esmfold_v0(), model.infer_pdb, model.infer, model.output_to_pdb, model.set_chunk_size, the esm-fold console script, PDB output, pLDDT, pTM, axial-attention chunking, --cpu-only, and --cpu-offload.
  • Route representation extraction, esm-extract, per-token/mean/BOS/contact tensors, and language-model embeddings to ../model-embeddings/SKILL.md.
  • Route fixed-backbone inverse design, coordinate-conditioned scoring, esm.inverse_folding, and ESM-IF1 workflows to ../inverse-folding/SKILL.md.
  • Route zero-shot mutation scoring and DMS/variant-effect workflows to ../variant-effect-prediction/SKILL.md.
  • Treat ESM Atlas web/API/bulk resources as setup alternatives only; this sub-skill does not cover Atlas API automation or bulk downloads.

Safe Default Pattern

  1. Confirm the caller wants predicted structures, not embeddings or inverse design.
  2. Prefer Python model.infer_pdb(sequence) for one short sequence and esm-fold -i input.fasta -o output_dir for many records.
  3. Set model.eval() and use torch.no_grad() for inference; move to CUDA only when a compatible GPU stack is available.
  4. For long sequences or memory pressure, lower --max-tokens-per-batch, add --chunk-size 128 or smaller, and consider fewer recycles before trying CPU offload.
  5. Preserve PDB strings/files as the deliverable; use pLDDT from B-factors or output["mean_plddt"] and pTM logs as confidence signals, not as sequence embeddings.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351