Force fields modeling

From lza6/Armor-piercing-system-prompts · View interactive version

Force fields modeling is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Choose and troubleshoot OpenMM force fields, model-building workflows, parameterized input formats, and ForceField XML authoring. Use when working with ForceField.createSystem, Modeller, bundled force-field XML files, residue template failures, solvation/hydrogenation/membranes, AMBER/CHARMM/GROMACS

How to use this skill

Skill file

Force Fields and Modeling

Use this sub-skill when a task is about preparing a molecular model or parameterizing it before a simulation in OpenMM.

Route Here For

Start With These References

Practical Workflow

  1. Identify whether the inputs are coordinates plus topology needing a ForceField, or already-parameterized files such as AMBER prmtop, CHARMM psf, GROMACS top, or Tinker xyz/key/prm.
  2. Choose force-field XML files as a compatible set: main biopolymer file plus the matching water/ion or implicit-solvent file when needed.
  3. Use Modeller before createSystem() when the topology lacks hydrogens, solvent, membranes, or force-field-required extra particles.
  4. Run forcefield.getUnmatchedResidues(topology) or forcefield.getMatchingTemplates(topology) before debugging a full simulation when template matching is uncertain.
  5. Build the System with createSystem() using nonbonded settings that match the topology: periodic boxes generally pair with PME/cutoffs; implicit solvent supports only non-periodic or limited cutoff choices.
  6. Keep production dynamics, integrator choice, reporter setup, and platform precision decisions in sibling sub-skills unless they directly affect model parameterization.

Bundled Script

Use scripts/forcefield_modeling_check.py as a lightweight smoke check for an OpenMM installation and a minimal force-field/model-building path. It builds a tiny in-memory water topology, verifies template matching, creates a System, and prints a JSON summary without requiring source checkout files.

python scripts/forcefield_modeling_check.py

Boundaries

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.