AGENT SKILL

topology-and-systems

Assemble OpenFF Topology objects, load PDB/biopolymer systems, manage hierarchy metadata, constraints, OpenMM/MDTraj conversion, PDB export, and hand off to Interchange/OpenMM system creation.

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

01 前言 Front Matter

name
topology-and-systems
license
MIT
metadata
{ "disco-role": "operating" }
description
Assemble OpenFF Topology objects, load PDB/biopolymer systems, manage hierarchy metadata, constraints, OpenMM/MDTraj conversion, PDB export, and hand off to Interchange/OpenMM system creation.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Topology and Systems

Use this sub-skill when the task is about OpenFF Topology objects rather than single-molecule construction or SMIRNOFF parameter editing.

Read First

  • references/api-reference.md for verified Topology method signatures, return shapes, and behavior details.
  • references/pdb-and-biopolymers.md for PDB loading requirements, unique_molecules, proteins, HETATM small molecules, metadata, and hierarchy differences.
  • references/workflows.md for common recipes: molecule lists, PDB load, OpenMM/MDTraj conversion, constraints, PDB export, and Interchange/OpenMM handoff.
  • references/troubleshooting.md for common diagnostics and fixes around missing unique molecules, PDB chemistry assignment, atom names, optional packages, and metadata surprises.
  • scripts/smoke_topology_workflow.py for a small self-contained smoke helper that builds a multi-copy topology and optionally writes a PDB.

Scope

Handle requests involving:

  • Topology.from_molecules, add_molecule, add_molecules, unique_molecules, and identical_molecule_groups.
  • Topology.from_pdb, from_openmm, from_mdtraj, to_openmm, and to_file.
  • PDB/biopolymer assumptions: explicit hydrogens, valid chemical connectivity, CONECT, standard residue/atom names, waters, supported ions, and custom substructure caveats.
  • Hierarchy metadata and iterators: residues, chains, atom names, insertion codes, and OpenFF/OpenMM/RDKit/OpenEye differences.
  • Constraints with add_constraint, environment matching with chemical_environment_matches, graph distance queries with nth_degree_neighbors, and visualization with visualize.
  • Handoff boundaries between Topology, ForceField.create_interchange, ForceField.create_openmm_system, and downstream engine exporters.

Route Elsewhere

  • For constructing, reading, writing, charging, converting, or stereochemistry-handling individual Molecule objects, read ../molecules-and-io/SKILL.md.
  • For SMIRNOFF force field loading, parameter assignment details, handler edits, or force field XML authoring, read ../smirnoff-force-fields/SKILL.md.
  • For toolkit registry setup, backend availability, RDKit/OpenEye/AmberTools/NAGL installation, or charge backend troubleshooting, read ../toolkit-backends/SKILL.md.

Fast Decision Rules

  • If the input is a list of OpenFF Molecule objects, start with Topology.from_molecules(molecules) or an empty Topology() plus add_molecules.
  • If the input is a PDB with nonstandard HETATM molecules, prepare exact OpenFF Molecule objects and pass them through unique_molecules; require explicit elements and CONECT records for those molecules.
  • If converting from OpenMM or MDTraj, pass every chemically distinct species exactly once in unique_molecules; the topology can contain zero, one, or many copies of each species.
  • If writing or converting to OpenMM/PDB, keep ensure_unique_atom_names="residues" unless the task specifically needs molecule-wide uniqueness (True) or original names (False).
  • If assigning force field parameters or exporting simulation files, build and validate the Topology here, then hand off to the force field or Interchange sub-skill boundary.

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