AGENT SKILL

alphafold

Route AlphaFold protein structure prediction setup, data preparation, local prediction, model configuration, output interpretation, and relaxation workflows.

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

01 前言 Front Matter

name
alphafold
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Route AlphaFold protein structure prediction setup, data preparation, local prediction, model configuration, output interpretation, and relaxation workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

AlphaFold Repo Skill

Use this skill for AlphaFold 2.3.2 repository/package tasks involving protein structure prediction setup, input validation, local inference command planning, model configuration, output confidence interpretation, AlphaFold DB or Server JSON formats, and Amber relaxation.

Start Here

Route by Task

User task Go to
Build Docker/image commands, plan GPU/container requirements, or plan database/model-parameter downloads and updates sub-skills/docker-and-data-setup/SKILL.md
Construct or diagnose direct run_alphafold commands, presets, database flags, MSA reuse, relaxation flags, random seeds, and output locations sub-skills/prediction-cli/SKILL.md
Validate FASTA/MSA/template inputs, adapt notebook input validation, or reason about monomer/multimer data-pipeline APIs sub-skills/input-data-and-formats/SKILL.md
Inspect model presets/configs, parameter-loading APIs, feature processing, JAX/Haiku/TensorFlow dependency constraints, or backend import errors sub-skills/model-config-and-api/SKILL.md
Interpret prediction folders, ranked structures, confidence JSON, PAE/pTM/ipTM, AFDB formats, or AlphaFold Server JSON sub-skills/outputs-and-confidence/SKILL.md
Decide whether/how to run Amber relaxation, switch GPU/CPU relax, inspect PDB relaxability, or debug OpenMM/PDBFixer failures sub-skills/relaxation/SKILL.md

Safe Defaults

  • Treat full AlphaFold prediction, Docker builds/runs, database downloads, model-parameter downloads, and AFDB/GCS/BigQuery operations as user-supervised external operations.
  • Prefer bundled dry-run helpers first: validate paths, FASTA files, database layout, model presets, confidence files, and relaxation inputs before proposing expensive commands.
  • Use --db_preset=reduced_dbs only with the small BFD database path; use --db_preset=full_dbs only with BFD and UniRef30 paths.
  • Use --model_preset=multimer only with multimer FASTA inputs and the UniProt plus PDB SeqRes database paths.
  • Keep the AlphaFold data directory outside the project/build context to avoid huge Docker builds.

Minimal Environment Check

Run the bundled diagnostic in the environment where AlphaFold is installed:

python scripts/check_install.py --check run_alphafold --check docker --check openmm --json

A passing import check does not prove that prediction is runnable. Full runs also need model parameters, genetic/template databases, external alignment binaries, writable output storage, and suitable CPU/GPU resources.

Common Decisions

  • Choose docker-and-data-setup when the user asks how to install, download, update, mount, or run the documented Docker path.
  • Choose prediction-cli when the user already has an installed package/environment and wants direct run_alphafold command construction or flag diagnosis.
  • Choose input-data-and-formats when the failure or task is about FASTA contents, multimer chain count, MSA formats, templates, or notebook-style sequence validation.
  • Choose outputs-and-confidence when the task starts after a prediction folder exists or involves AFDB/Server JSON files.
  • Choose relaxation when the task mentions Amber, OpenMM, PDBFixer, models_to_relax, use_gpu_relax, or structural violations.

Do Not Do Automatically

  • Do not start terabyte database downloads or model-weight downloads without explicit user approval.
  • Do not run full prediction, benchmark, Docker build, Docker run, or relaxation minimization as a routine verification step.
  • Do not assume cached MSAs are valid after the sequence, database, template cutoff, or model preset changes.
  • Do not treat AlphaFold Server JSON as input to the local run_alphafold CLI; route Server JSON tasks to outputs-and-confidence.

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