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
- 参考文档references/api-reference.md10.8 KB
- 参考文档references/pdb-and-biopolymers.md8.3 KB
- 参考文档references/troubleshooting.md7.3 KB
- 参考文档references/workflows.md6.7 KB
- 脚本scripts/smoke_topology_workflow.py3.5 KB
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.mdfor verifiedTopologymethod signatures, return shapes, and behavior details.references/pdb-and-biopolymers.mdfor PDB loading requirements,unique_molecules, proteins, HETATM small molecules, metadata, and hierarchy differences.references/workflows.mdfor common recipes: molecule lists, PDB load, OpenMM/MDTraj conversion, constraints, PDB export, and Interchange/OpenMM handoff.references/troubleshooting.mdfor common diagnostics and fixes around missing unique molecules, PDB chemistry assignment, atom names, optional packages, and metadata surprises.scripts/smoke_topology_workflow.pyfor 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, andidentical_molecule_groups.Topology.from_pdb,from_openmm,from_mdtraj,to_openmm, andto_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 withchemical_environment_matches, graph distance queries withnth_degree_neighbors, and visualization withvisualize. - 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
Moleculeobjects, 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
Moleculeobjects, start withTopology.from_molecules(molecules)or an emptyTopology()plusadd_molecules. - If the input is a PDB with nonstandard HETATM molecules, prepare exact OpenFF
Moleculeobjects and pass them throughunique_molecules; require explicit elements andCONECTrecords 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
Topologyhere, then hand off to the force field or Interchange sub-skill boundary.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).