/atomistic-skills:drug-complex-system-builderfrom Atomistic Skills
Builds a solvated, charge-neutralized protein-ligand complex for OpenMM MD simulation. Parameterizes ligand with OpenFF Sage or GAFF, applies Amber ff14SB, solvates with explicit water, and adds counterions.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
To take a prepared protein (PDB) and a validated ligand pose (SDF) and produce a fully parameterized, solvated, ion-neutralized OpenMM simulation bundle ready for drug-protein-ligand-md.
The output bundle includes:
Required inputs:
${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/scripts/build_complex.py \
--receptor docking/inputs/protein_prepared.pdb \
--ligand docking/validation/valid_poses.sdf \
--ligand_ff openff-2.2.0 \
--protein_ff amber/ff14SB \
--water_model tip3p \
--box_padding 12.0 \
--ionic_strength 0.15 \
--output_dir md/system/
Key parameters:
--ligand_ff: Force field for the ligand. Options: openff-2.2.0 (Sage, recommended), gaff-2.11. OpenFF Sage is generally preferred for drug-like molecules.--protein_ff: Protein force field. Default: amber/ff14SB.--water_model: Water model. Default: tip3p. Options: tip3p, tip3pfb, tip4pew, opc, spce. Use tip3pfb or opc for better accuracy at higher cost.--box_padding: Minimum distance from solute to box edge in Angstroms (default: 12.0). Use 10-12 A for production; smaller values risk periodic image artifacts.--ionic_strength: Target NaCl concentration in mol/L (default: 0.15, physiological). The system is always charge-neutralized first; additional ion pairs are added to reach the target ionic strength. The ionic strength calculation does not count the neutralization ions (they are treated as bound to the solute).--pose_index: Which pose from the SDF to use (default: 0, the top-ranked pose).--box_shape: Simulation box geometry (default: cube). Options: cube, dodecahedron, octahedron. Dodecahedron and octahedron use ~30% less water for the same minimum solute-edge distance.--hydrogen_mass: Hydrogen mass in amu for hydrogen mass repartitioning (default: 4.0). With HMR (3-4 amu), the script uses AllBonds constraints, enabling 4-5 fs timesteps (OpenMM recommends 5 fs with LangevinMiddleIntegrator). Set to 1.008 to disable HMR (uses HBonds constraints, requires 2 fs timestep). Note: at 4 amu, methyl carbons become lighter than their bonded hydrogens, which can affect dynamics in some systems (particularly membranes). Use 3 amu if this is a concern. The downstream MD skill must use a matching timestep (check hmr_enabled and constraints in the provenance JSON).The script produces:
md/system/complex_solvated.pdb: solvated system for visualization (PDB precision: 0.001 A)md/system/system.xml: serialized OpenMM System (force field parameters, constraints)md/system/state_initial.xml: full-precision positions and box vectors for simulation restartmd/system/build_provenance.json: records all build parameters, atom counts, box dimensions, HMR status, constraint typeVisually inspect complex_solvated.pdb to verify:
Common issues:
--charge_method, default am1bcc); any pre-existing charges in the SDF are overwritten to ensure deterministic behavior.sqm, antechamber) on PATH, and AmberTools has no PyPI distribution, so it is not in any uv environment: install it separately (conda-forge ambertools, or a source build). Without it, use OpenFF Sage (--ligand_ff openff-2.2.0, the default) with --charge_method mmff94 or gasteiger (RDKit charges): cruder than AM1-BCC, fine for screening and smoke tests, not for production free energies.--box_padding if you see solute atoms near box edges.hmr_enabled. If HMR is on (default), the downstream MD should use a 4-5 fs timestep (OpenMM recommends 5 fs with LangevinMiddleIntegrator). If HMR is off, use 2 fs. Mismatched timestep/HMR settings are a common cause of NaN energies at startup.${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/scripts/build_complex.py \
--receptor tyk2/inputs/4GIH_prepared.pdb \
--ligand tyk2/validation/valid_poses.sdf \
--ligand_ff openff-2.2.0 \
--box_padding 12.0 \
--ionic_strength 0.15 \
--output_dir tyk2/md/system/
cpu+openmm.--box_shape (requires OpenMM 8.0+).Author: Matthew Cox Contact: GitHub @mcox3406
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
molecular-dynamics, openmm, protein-ligand, solvation, drug-discovery
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job