drug-mmpbsa-gbsa

Compute single-trajectory MM-GBSA and/or MM-PBSA binding free energy estimates from protein–ligand molecular dynamics trajectories. Two backends are provided: a fast OpenMM GBn2 path (no extra dependencies) and an AmberTools MMPBSA.py path (supports GB with various igb models and Poisson–Boltzmann PB calculations on the same trajectory).

Last repository push
GitHub Stars
193
Forks
37
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "drug-mmpbsa-gbsa" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-577ffc77e241eae528d8b748a0792fb560fa7656d27145096f7a8dc3d7d349f8. Verify the upstream source and version against https://github.com/learningmatter-mit/AtomisticSkills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Compute single-trajectory MM-GBSA and/or MM-PBSA binding free energy estimates from protein–ligand molecular dynamics trajectories. Two backends are provided: a fast OpenMM GBn2 path (no extra dependencies) and an AmberTools MMPBSA.py path (supports GB with various igb models and Poisson–Boltzmann PB calculations on the same trajectory).

0 Downloads

Introduction source: third_party · learningmatter-mit · 0.0.1 Reference

SkillPi interpretation

Tasks
To estimate relative binding free energies from MD trajectories using the single-trajectory MM-GBSA / MM-PBSA approach. For each trajectory frame, the method strips explicit solvent, evaluates potential energies of the complex, receptor, and ligand subsystems in implicit solvent, and computes:
Limits and differences
**Environment**: Requires `drugmd-agent`. **Dependencies**: - OpenMM path (`compute_mmgbsa.py`): openmm, openmmforcefields, openff-toolkit (for SMIRNOFF parameterization), rdkit, MDAnalysis. - AmberTools path (`compute_mmpbsa.py`): the OpenMM deps above plus parmed, AmberTools (`MMPBSA.py`, `mmpbsa_py_energy`, `cpptraj`). All present in `drugmd-agent`. **Implicit solvent**: - OpenMM path: GBn2 (Generalized Born with neck correction, model 2). NoCutoff nonbonded method. - AmberTools path: igb=5 (OBC2) by default, with mbondi2 GB radii. Other igb models supported with their canonical paired radii: 1 (HCT / mbondi), 2 (OBC1 / mbondi2), 7 (GBn / mbondi), 8 (GBn2 / mbondi3). Radii are set automat
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: drug-mmpbsa-gbsa
description: >
  Compute single-trajectory MM-GBSA and / or MM-PBSA binding free energy
  estimates from a protein-ligand MD trajectory. Two backends: a fast
  OpenMM GBn2 path (no extra dependencies) and an AmberTools MMPBSA.py
  path that supports both GB (multiple igb models) and Poisson-Boltzmann
  PB on the same trajectory.
category: [drug-discovery]

drug-mmpbsa-gbsa (MM-GBSA / MM-PBSA)

Goal

To estimate relative binding free energies from MD trajectories using the single-trajectory MM-GBSA / MM-PBSA approach. For each trajectory frame, the method strips explicit solvent, evaluates potential energies of the complex, receptor, and ligand subsystems in implicit solvent, and computes:

dG = E_complex - E_receptor - E_ligand

The entropy term (-TdS) is omitted, which is standard practice when the goal is relative ranking rather than absolute binding affinity. MM-GBSA / MM-PBSA is most useful for re-ranking docked poses after MD refinement, providing an orthogonal signal to docking scores and geometric stability metrics.

Choosing a backend

Path Script When to use Extras
OpenMM GBn2 (fast) compute_mmgbsa.py Throughput rescoring of HTVS hits; everything stays inside OpenMM with the same force field as the MD No extra dependencies; ~1-5 minutes per compound on CPU
AmberTools MMPBSA.py compute_mmpbsa.py When you need PB (not just GB), per-method decomposition (ELE, VDW, EGB / EPB, ESURF), or a setup that matches what reviewers expect from the MM-PBSA literature Adds MMPBSA.py, cpptraj, and parmed to the dependency surface (already in drugmd-agent); ~1-3 minutes for GB, ~5-30 minutes for PB depending on system size and frame count

Both paths give comparable GB rankings for typical drug-protein systems, but the absolute dG numbers will differ across backends because they use different GB models, radius sets, and surface-area treatments. Don't compare numbers across the two scripts.

Instructions

1. Basic usage (protein + ligand, short HTVS-style MD)

For the 1-5 ns production runs typical in the HTVS workflow:

# Env: drugmd-agent
python .agents/skills/drug-mmpbsa-gbsa/scripts/compute_mmgbsa.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_sdf md/ligand.sdf \
  --ligand_resname UNL \
  --skip_ns 0.5 \
  --stride 5 \
  --output_dir md/mmgbsa/

Key parameters:

  • --topology: solvated complex PDB from drug-complex-system-builder
  • --trajectory: production DCD from drug-protein-ligand-md
  • --ligand_sdf: ligand SDF with correct bond orders (for OpenFF parameterization and AM1-BCC charges)
  • --ligand_resname: residue name of the ligand in the PDB topology (default: UNL)
  • --skip_ns: skip the first N nanoseconds of trajectory as equilibration (default: 0.5). For longer production runs, increase proportionally: roughly 10% of production length is a reasonable rule of thumb, capped at ~5 ns for 50+ ns runs.
  • --stride: evaluate every Nth frame after skipping (default: 5)
  • --solute_dielectric: interior dielectric of the solute (default: 1.0). See section 3 below on when to raise this.

2. With a cofactor (e.g., NADPH) and longer MD

When the receptor has a bound cofactor that should be part of the receptor subsystem, and the MD production was long enough (>=10 ns) to justify a longer equilibration skip:

# Env: drugmd-agent
python .agents/skills/drug-mmpbsa-gbsa/scripts/compute_mmgbsa.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_sdf md/ligand.sdf \
  --cofactor_sdf md/nadph.sdf \
  --ligand_resname UNL \
  --cofactor_resname NDP \
  --skip_ns 2.0 \
  --output_dir md/mmgbsa/

3. Tuning the solute dielectric

The interior dielectric of the solute (--solute_dielectric, OpenMM's soluteDielectric parameter) is a major knob for MM-GBSA rankings and is often the difference between sensible and nonsense results. The default of 1.0 treats the solute interior as electronically non-polarizable; the explicit partial charges and atom geometries are still there, but no implicit electronic polarization is added on top. This is the most physically pure choice and works well for nonpolar binding sites with few charged residues. For polar or highly charged pockets, raise it:

Binding site character Suggested --solute_dielectric
Mostly hydrophobic, few ionizable residues 1.0 (default)
Mixed polar/nonpolar 2.0
Many charged residues (Asp/Glu/Lys/Arg clusters, salt bridges) 4.0

Higher dielectrics damp electrostatic contributions and generally improve ranking agreement with experiment for charged systems, at the cost of losing sensitivity to directional electrostatic interactions. If you are unsure, run the rescoring at 1.0 and 2.0 on a small subset with known rank-order and pick the value that tracks better. The chosen value is recorded in mmgbsa_summary.json for provenance.

# Env: drugmd-agent
python .agents/skills/drug-mmpbsa-gbsa/scripts/compute_mmgbsa.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_sdf md/ligand.sdf \
  --ligand_resname UNL \
  --solute_dielectric 2.0 \
  --output_dir md/mmgbsa/

4. Custom selections

For non-standard residue naming or multi-chain receptors:

# Env: drugmd-agent
python .agents/skills/drug-mmpbsa-gbsa/scripts/compute_mmgbsa.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_sdf md/ligand.sdf \
  --ligand_sel "resname UNK and not name H*" \
  --output_dir md/mmgbsa/

5. Interpret results

The script outputs:

  • mmgbsa_frames.csv: per-frame energies (E_complex, E_receptor, E_ligand, dG)
  • mmgbsa_summary.json: mean, std, SEM of dG, and the dielectric/frame parameters used
{
    "dG_mean_kcal_mol": -42.5,
    "dG_std_kcal_mol": 8.3,
    "dG_sem_kcal_mol": 1.2,
    "n_frames_evaluated": 50,
    "solute_dielectric": 1.0,
    "solvent_dielectric": 78.5
}

More negative dG indicates stronger predicted binding. Only relative ranking within a congeneric series is interpretable. Absolute dG values from single-trajectory MM-GBSA without entropy corrections are not binding free energies in any physical sense, and specific numbers should not be reported as "predicted affinities" or compared across chemically distinct scaffolds. When ranking compounds:

  • Group comparisons by formal charge state (see Constraints below).
  • Compare mean dG values, but also inspect the per-frame trace in mmgbsa_frames.csv for stability. A compound with a noisy or drifting dG signal is less trustworthy than one with a tight distribution, even if the mean looks favorable.
  • Use MM-GBSA as an additional signal alongside geometric stability (RMSD, contact persistence) from drug-trajectory-analysis, not as a standalone ranking.
  • Compare replicate means, not within-trajectory SEMs. The honest uncertainty for a compound is the spread across independent MD replicates, not the SEM from any single one. See examples/README.md for a real CDK2 case study that demonstrates this: one compound in the example shows a 35 kcal/mol swing across three MD replicates while each individual replicate reports a tight single-run SEM. Trusting any single replicate on that compound would be deeply misleading.

6. AmberTools path: MM-PBSA / MM-GBSA via MMPBSA.py

When you need Poisson-Boltzmann (not just GB), or when you want a method that matches what reviewers expect from the MM-PBSA literature, use compute_mmpbsa.py. It builds the same dry-complex / receptor / ligand subsystems as the OpenMM path, then converts the systems to Amber prmtops via ParmEd, converts the trajectory to NetCDF via cpptraj, and hands everything to AmberTools MMPBSA.py.

# Env: drugmd-agent
python .agents/skills/drug-mmpbsa-gbsa/scripts/compute_mmpbsa.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_sdf md/ligand.sdf \
  --ligand_resname UNL \
  --skip_ns 0.5 \
  --stride 5 \
  --method both \
  --output_dir md/mmpbsa/

Key parameters:

  • --method: gb (only Generalized Born), pb (only Poisson-Boltzmann), or both (default). PB is much slower than GB (~5-10x for typical systems); use gb for HTVS-style throughput and both only when you need the cross-check.

  • --gb_model: igb value passed to MMPBSA.py. The script sets the prmtop's GB radius set to match the chosen model via ParmEd.

    igb Model Paired radius set Notes
    1 HCT (Hawkins / Cramer / Truhlar) mbondi
    2 OBC1 (Onufriev / Bashford / Case) mbondi2
    5 OBC2 mbondi2 Default; most widely used for protein-ligand MM-GBSA
    7 GBn / GB-Neck mbondi Mongan et al. 2007 (note: the Amber manual recommends mbondi here; some downstream tools and PB-focused docs recommend bondi instead - we follow the Mongan 2007 parameterization)
    8 GBn2 / GB-Neck2 mbondi3 Nguyen et al. 2013

    Note that the OpenMM compute_mmgbsa.py path uses GBn2 (Amber-equivalent igb=8 with mbondi3-like radii), while this AmberTools path defaults to OBC2 (igb=5 with mbondi2). They are different GB models. Even on a GB-only comparison, you should expect the absolute dG to differ across the two scripts; this is the main reason for the gap, alongside the LCPO / no-SA difference noted in the comparison table.

  • --pb_int_diel (default 1.0), --pb_ext_diel (default 80.0): PB dielectric constants. Same dielectric-tuning logic applies as for GB (raise --pb_int_diel to 2-4 for polar / charged pockets, see section 3). For PB specifically, raising the interior dielectric above ~2 is an empirical fitting choice rather than a physical correction: ε_int ~ 2 is the upper end of what is physically defensible (modeling electronic polarization only); larger values are commonly used in the literature but they are tuning parameters, not first-principles. Note also that the OpenMM path defaults to a solvent dielectric of 78.5 (the standard 25 °C value), while the AmberTools path defaults to AmberTools' own 80.0 - one more reason absolute numbers are not comparable across backends.

  • --salt_conc (default 0.0 M): salt concentration used by both GB (saltcon) and PB (istrng). Set to 0.15 to match physiological ionic strength.

The script writes:

  • mmpbsa.in: the auto-generated MMPBSA.py input file (kept for provenance).
  • complex.prmtop, receptor.prmtop, ligand.prmtop, *.inpcrd: ParmEd-built Amber topologies and coords. Atom ordering is preserved against the source PDB so the trajectory aligns without any tleap-side reordering.
  • trajectory_dry.nc: the stripped, NetCDF-format trajectory MMPBSA.py consumed.
  • FINAL_RESULTS_MMPBSA.dat: the verbatim MMPBSA.py results file (per-method breakdown of ELE, VDW, EGB/EPB, ESURF/ECAVITY, etc.).
  • mmpbsa_summary.json: parsed dG mean / std / SEM per method, plus all provenance.
{
    "method": "both",
    "results": {
        "GB": {"dG_mean_kcal_mol": -51.13, "dG_std_kcal_mol": 2.36, "dG_sem_kcal_mol": 1.36},
        "PB": {"dG_mean_kcal_mol":  -0.39, "dG_std_kcal_mol": 2.85, "dG_sem_kcal_mol": 1.64}
    },
    "gb_model": 5,
    "pb_int_diel": 1.0,
    "pb_ext_diel": 80.0,
    ...
}

PB and GB will often disagree by 30+ kcal/mol in absolute dG. This is normal: PB and GB make different approximations for the polar solvation free energy, and the nonpolar / cavity terms also differ. Within a single method, ranking is what matters; across methods, large absolute differences are diagnostic of how sensitive your system is to the implicit-solvent approximation, not a sign that one method is "wrong". When PB and GB give wildly different rank orders on the same set of compounds, neither is reliable, and you are probably out of the regime where end-point free-energy methods work, and you should consider FEP / ABFE instead.

The same caveats from sections 3 and 5 (replicates beat single-run SEM, charge state matters, electrostatic environment mismatch) apply equally to the AmberTools path.

7. Integration with the HTVS workflow

In the HTVS workflow, MM-GBSA is run after MD refinement (Stage 8) as an additional ranking signal. Combined with trajectory stability metrics (RMSD, H-bonds, contacts from drug-trajectory-analysis), it provides a more complete picture of binding quality than docking scores alone.

Constraints

  • Environment: Requires drugmd-agent.
  • Dependencies:
    • OpenMM path (compute_mmgbsa.py): openmm, openmmforcefields, openff-toolkit (for SMIRNOFF parameterization), rdkit, MDAnalysis.
    • AmberTools path (compute_mmpbsa.py): the OpenMM deps above plus parmed, AmberTools (MMPBSA.py, mmpbsa_py_energy, cpptraj). All present in drugmd-agent.
  • Implicit solvent:
    • OpenMM path: GBn2 (Generalized Born with neck correction, model 2). NoCutoff nonbonded method.
    • AmberTools path: igb=5 (OBC2) by default, with mbondi2 GB radii. Other igb models supported with their canonical paired radii: 1 (HCT / mbondi), 2 (OBC1 / mbondi2), 7 (GBn / mbondi), 8 (GBn2 / mbondi3). Radii are set automatically via ParmEd changeRadii.
  • Force fields: Protein: Amber ff14SB. Ligand: OpenFF 2.2.0 (Sage) with AM1-BCC charges. These must match the explicit-solvent MD force fields. Both scripts re-use the same ff14SB + OpenFF parameters for the rescoring pass; the AmberTools path then exports those parameters to Amber prmtop format via ParmEd, so atom ordering is preserved against the trajectory and no tleap-side reordering occurs.
  • Single-trajectory approximation: Receptor and ligand conformations are extracted from the complex trajectory rather than from independently simulated apo / unbound trajectories. This neglects the conformational reorganization energy (an enthalpic strain difference between the bound and free states), not the configurational entropy specifically. Standard practice for ranking; separate from the entropy issue covered next.
  • No entropy correction: The -TdS term is omitted. This is acceptable for relative ranking but means absolute dG values are not comparable to experimental binding affinities.
  • Reported SEM is optimistic: dG_sem_kcal_mol is computed as std / sqrt(n_frames), which assumes independent samples. Frames from a single trajectory are correlated, so the true statistical error is larger (often by 2-5x for typical HTVS MD lengths). For honest uncertainties, run multiple independent replicates (different seeds) and compare across them rather than trusting the single-run SEM. See Genheden & Ryde (2010) for a detailed treatment of block averaging and replicate-based error estimation.
  • Charged ligands are a known weakness: MM-GBSA / MM-PBSA's treatment of charge desolvation penalties is approximate. For monovalent ligands (formal charge ±1) the issue is usually manageable; ranking accuracy degrades noticeably for ±2 and beyond. Compare compounds within their own charge state rather than across charge states; a dG comparison between a neutral and a dication is not meaningful even within a congeneric series.
  • Electrostatic environment mismatch: The explicit-solvent MD samples conformations under PME long-range electrostatics with a specific ionic strength. The rescoring pass re-evaluates those conformations under NoCutoff electrostatics in continuum solvent (with explicit ions absent in the OpenMM path; with saltcon / istrng only in the AmberTools path). This is standard practice, but it is a real source of systematic error, especially for highly charged systems or binding sites near the protein surface where ionic screening matters.
  • Temperature handling: MMPBSA.py does not expose a temperature variable; sander / PBSA use a hard-coded thermal context. The temperature MD ran at is implicit in the sampled trajectory frames.
  • Computation: Both scripts run on CPU (no GPU needed). OpenMM GBn2 ~1-5 minutes per compound; AmberTools GB ~1-3 minutes; AmberTools PB ~5-30 minutes depending on system size.

References

  • Genheden, S.; Ryde, U. The MM/PBSA and MM/GBSA Methods to Estimate Ligand-Binding Affinities. Expert Opin. Drug Discov. 2015, 10, 449-461. doi:10.1517/17460441.2015.1032936
  • Genheden, S.; Ryde, U. How to Obtain Statistically Converged MM/GBSA Results. J. Comput. Chem. 2010, 31, 837-846. doi:10.1002/jcc.21366 (on block averaging and the need for replicate trajectories for honest error bars)
  • Onufriev, A.; Case, D. A. Generalized Born Implicit Solvent Models for Biomolecules. Annu. Rev. Biophys. 2019, 48, 275-296. doi:10.1146/annurev-biophys-052118-115325
  • Wang, E.; et al. End-Point Binding Free Energy Calculation with MM/PBSA and MM/GBSA: Strategies and Applications in Drug Design. Chem. Rev. 2019, 119, 9478-9508. doi:10.1021/acs.chemrev.9b00055
  • Roux, B.; Chipot, C. Editorial: Guidelines for Computational Studies of Ligand Binding Using MM/PBSA and MM/GBSA Approximations Wisely. J. Phys. Chem. B 2024, 128, 12027-12029. doi:10.1021/acs.jpcb.4c06614 (cautionary framing: end-point approximations like MM/GBSA are not a substitute for rigorous FEP/ABFE and should not be compared to experiment via a pre-established standard protocol)
  • Miller III, B. R.; McGee Jr., T. D.; Swails, J. M.; Homeyer, N.; Gohlke, H.; Roitberg, A. E. MMPBSA.py: An Efficient Program for End-State Free Energy Calculations. J. Chem. Theory Comput. 2012, 8, 3314-3321. doi:10.1021/ct300418h (the AmberTools MMPBSA.py reference; used by compute_mmpbsa.py)

Author: Matthew Cox Contact: GitHub @mcox3406

Version history

  1. v2.0.0 GitHub ↗
    Original release notes

    ## What's Changed > [!WARNING] > **BREAKING MAJOR RELEASE**: AtomisticSkills 2.0.0 completely overhauls the runtime architecture, replacing legacy manual conda environments with unified, deterministic `uv` projects and container fallbacks, restructuring skills to comply with the standard Agent Skills specification, and consolidating MCP servers. Existing 1.x installations, conda environments, and configurations are not backwards-compatible. Please review the migration guide below. ### Repository Stats | Component | v1.3.4 | v2.0.0 | Added | |--------------|--------|--------|-------| | Skills | 129 | 133 | +4 | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 10 | — | ### New Skills | Skill | Description | Author | |-------|-------------|--------| | `general-atomisticskills-rules` | Working rules for atomistic research with AtomisticSkills -- how to scope a request, set up a research directory and a plan before simulating, run skills and MCP tools, stay within GPU memory, and report results. | @bowen-bd | | `general-atomisticskills-setup` | Set up, check or troubleshoot how AtomisticSkills runs on this machine -- creating its Python environments, connecting its MCP servers, choosing uv or a container runtime, and configuring API keys. | @bowen-bd | | `general-publisher-access-guard` | Avoid bot-blocking publisher websites by routing paper retrieval through legal open-access APIs and mirrors. | @bowen-bd | | `mat-wannier-tight-binding` | Construct and validate Wannier tight-binding models, inspect orbital localization and hopping amplitudes, and interpolate electronic bands from DFT or existing Wannier90 files. | @bowen-bd | ### Breaking Changes: 1.x to 2.0.0 Overview | Area | 1.x | 2.0.0 | | :--- | :--- | :--- | | **Python Environments** | ~20 manual conda environments (`base-agent`, `mace-agent`, etc.) | Deterministic `uv` projects (`venv/cpu`, `venv/mlip`, `venv/fairchem`) + pinned research stacks (`adit`, `diffcsp`, `mattergen`, `msms`, `reactot`, `scd`) | | **Execution Launcher** | `conda run -n <env> python ...`, `# Env:` annotations | Unified launcher `venv/run <venv>[+extra] <cmd>`; SKILL commands invoke `${CLAUDE_SKILL_DIR}/../../venv/run` | | **MCP Server Config** | Fragmented per-server configs with hardcoded interpreter paths | Consolidated 10 multi-tool servers started via `venv/run --server <name>` | | **MCP Shell Fallback** | Required running standalone agent scripts | Direct shell CLI fallback: `venv/run <venv> python -m src.mcp_server.cli <server> <tool> key=value ...` sharing process state | | **Claude Plugin** | Custom layout under `.agents/skills`, unrecognised spec keys | Root plugin via `.claude-plugin/plugin.json`, skills at `skills/` adhering to standard 6-key Agent Skills spec | | **Container Images** | Custom Dockerfiles (`atomisticskills-lightweight`, `-mace`, etc.) | Dual-architecture OCI images (`-cpu`, `-mlip`, `-fairchem`, `-generative`) locked from uv dependencies with Apptainer support | | **MatGL & CHGNet** | MatGL with DGL backend; 2025 MatPES checkpoint | MatGL ≥ 4 (PyTorch Geometric only); default CHGNet is `CHGNet-PES-MatPES-PBE-1M-2026.9` | | **GPU / CUDA** | Generic CUDA 12 builds | Dynamic runtime detection: CUDA 13 (driver ≥ 580) vs CUDA 12.6 (drivers 525–579) PyTorch builds | --- ### Conda to UV & Docker Migration: Runtime Dispatch Rules Conda environments have been entirely eliminated (`conda-envs/` is removed). AtomisticSkills now uses a unified launcher backend driven by `venv/run`: #### 1. When is Native `uv` Used? By default (`ATOMISTIC_RUNTIME=auto`), `venv/run` inspects the host platform and executes natively with `uv` when: - The OS is Linux on `x86_64` or `aarch64`. - The host `glibc` meets the requirement declared in `venv/platforms.tsv` for the requested project (e.g. glibc ≥ 2.34 for OpenMM, glibc ≥ 2.32 for generative PyG wheels, glibc ≥ 2.28 for base CPU). - A host C compiler (`gcc` / `clang`) is available for any package source builds. - Environments sync on-demand inside the repository under `venv/<project>/.venv` in seconds using Astral `uv`. #### 2. When is Container Execution (Docker / Apptainer / Podman) Used? A container is dispatched automatically or explicitly when: - **Automatic Fallback**: The host system does not satisfy the platform criteria (e.g., glibc is older than required, running on non-Linux, or lacking native PyG/CUDA compilers on arm64). - **HPC Environments**: On high-performance computing clusters where users lack root/docker permissions, `ATOMISTIC_RUNTIME=apptainer` builds or reuses SquashFS SIF images directly in `~/.cache/atomisticskills/images/` and passes GPUs via `--nv`. - **Explicit Override**: Setting `ATOMISTIC_RUNTIME=docker`, `podman`, or `apptainer` forces container execution. Host workspaces, project directories, and source checkouts are mounted at identical paths so output file ownership and permissions belong directly to the user. #### 3. Why Three Shared Environments + Pinned Research Stacks? Rather than a single bloated environment, three shared `uv` projects resolve fundamental package incompatibilities: 1. `venv/cpu`: Fast, lightweight environment for ASE, pymatgen, RDKit, pycalphad, MDAnalysis (Python 3.12, NumPy 2.5+, no PyTorch). 2. `venv/mlip`: MACE and MatGL (PyTorch 2.14.1, `mace-torch 0.3.16` pinning `e3nn==0.4.4`, `matgl 4.1.0`, NumPy 2.3.5). 3. `venv/fairchem`: FairChem foundation models (PyTorch 2.13.0, `fairchem-core 2.23.0` requiring `e3nn>=0.5`, NumPy 2.3.5). 4. **Pinned Research Stacks**: Stacks requiring legacy PyTorch versions or custom C++/CUDA extensions (`adit`, `diffcsp`, `mattergen`, `msms`, `reactot`, `scd`) run in isolated uv projects replicating their exact verified dependency sets without perturbing shared foundations. --- ### Modernized Model Context Protocol (MCP) Integration - **10 Consolidated Multi-Tool Servers**: Replaced 20 fragmented single-purpose servers with 10 coherent domain servers: `base`, `atomate2`, `drugdisc`, `smol`, `mace`, `matgl`, `fairchem`, `adit`, `diffcsp`, and `mattergen`. - **Unified Server Launcher**: Every server is started through the launcher: ```bash venv/run --server <server_name> ``` `configure_mcp.py` automatically generates compliant configurations for Claude Desktop, Claude Code, Gemini CLI, Cursor, and Windsurf. - **Headless Shell CLI Fallback**: Any MCP tool can be invoked directly from the terminal without an active MCP JSON-RPC connection: ```bash venv/run <venv> python -m src.mcp_server.cli <server> <tool> key=value ... ``` Multiple tools chained in a single invocation share process memory, allowing stateful workflows (e.g., `load_model` followed immediately by `relax_structure`). - **Harness Separation**: Agent harness utilities (`task_boundary`, `notify_user`) are strictly decoupled from the MCP server interfaces. --- ### Claude Plugin Architecture & Spec Compliance - **Standard Plugin Layout**: Configured via `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` at repository root. - **Spec-Compliant Frontmatter**: All skills now reside at `skills/<skill_name>/SKILL.md` (with `.agents/skills` maintained as a compatibility symlink). Frontmatter strictly follows the 6-key Agent Skills specification; categories are nested under `metadata.category` and required environments under `metadata.venv`. - **Self-Locating Executables**: Skill command templates use `${CLAUDE_SKILL_DIR}/../../venv/run <venv> python ...`, ensuring flawless path resolution across project skills, personal skills, and plugin installations. - **Runtime Configuration Options**: Plugin users can configure runtime preferences via plugin settings: `runtime` (`auto`, `uv`, `docker`, `apptainer`), `image_registry`, and `image_tag`. Simulation artifacts write directly into the active user workspace rather than internal plugin directories. --- ### Upgrade Instructions #### For Claude Plugin Users ```bash claude plugin marketplace update atomistic-skills claude plugin update atomistic-skills@atomistic-skills ``` Restart Claude Code. Environments are generated automatically on first use or initialized ahead of time via `venv/run --setup`. #### For Clone / Local Users ```bash git pull origin main venv/run --setup # Initializes venv/cpu, venv/mlip, and venv/fairchem venv/run --doctor # Validates runtime status and detected CUDA drivers python configure_mcp.py # Rewrites agent MCP configurations ``` --- ### Other Highlights & Enhancements - **MLIP Models & Weights**: Upgraded MatGL to 4.x (PyTorch Geometric backend, dropping DGL), defaulted CHGNet to the latest `CHGNet-PES-MatPES-PBE-1M-2026.9` checkpoint, and added opt-in batched GPU inference via NValchemi. - **Elasticity Refactor**: Overhauled `mat-elasticity` to use pymatgen `ElasticTensor` and `ComplianceTensor` directly with relaxed-ion defaults and off-axis compliance verification. - **Equation of State**: Corrected Birch-Murnaghan minimum parameter fit extraction and energy-volume curve export in `mat-equation-of-state`. - **Spectrometry**: Ported `chem-msms-predict` to ICEBERG 2.1 (ms-pred 2.1) on a dedicated uv project with automated MassSpecGym weights download. - **LAMMPS Integration**: Added dedicated build scripts in `mat-lammps-md` targeting `venv/mlip` (`mlip+lammps`) and `fairchem+lammps`. - **DFT Robustness**: Fixed `Atomate2Handler.check_status` job lookup by UUID via JobController's custom query interface.

  2. v1.3.4 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.3 | v1.3.4 | Added | |--------------|--------|--------|-------| | Skills | 128 | 129 | +1 | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### New Skills | Skill | Description | Author | |-------|-------------|--------| | `mat-edi-mobility` | Compute defect-limited carrier mobility and electron-defect scattering matrix elements in 2D and 3D semiconductors from first principles with Quantum ESPRESSO and the EDI plugin. | @cz2014 | ### Other Highlights - **Defect-Limited Mobility**: Added the [mat-edi-mobility](file://.agents/skills/mat-edi-mobility/SKILL.md) skill to compute defect-limited carrier mobility and electron-defect scattering matrix elements in 2D/3D semiconductors using Quantum ESPRESSO and the EDI plugin. - **QHA Thermal Expansion**: Exposed `--fmax` and `--max_steps` in `mat-qha-thermal-expansion` to prevent convergence stalls on MLIP forces; added optional `--volume_window` control while preserving field-standard volume window defaults and updating strain convention documentation. - **Toxicity & Hazard Triage**: Added GHS acute oral toxicity category profiling and consensus GHS code extraction to `chem-hazard-toxicity`. - **Claude Code Native Integration**: Registered `.agents/skills` as native Claude Code project skills when configuring agent integrations. - **Synthesis Recommendation**: Enhanced Materials Project API compatibility in `mat-synthesis-recommendation` for newer `mp-api` synthesis endpoints. - **Linter & Code Hygiene**: Configured ruff `per-file-ignores` for `E402` in `pyproject.toml` and removed redundant inline noqa comments across MCP servers and skill scripts. - **Documentation & Citations**: Updated the paper citation in `README.md` to reflect publication year 2026.

  3. v1.3.3 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.2 | v1.3.3 | Added | |--------------|--------|--------|-------| | Skills | 127 | 128 | +1 | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### New Skills | Skill | Description | Author | |-------|-------------|--------| | `mat-epw-mobility` | Compute carrier mobility and mode-resolved electron-phonon coupling in 2D materials from first principles with Quantum ESPRESSO and EPW. | @cz2014 | ### Other Highlights - **Uncertainty Quantification**: Added detailed guidance and critical warnings to the committee uncertainty skill ([ml-committee-uncertainty](file:///home/bdeng/projects/AtomisticSkills/.agents/skills/ml-committee-uncertainty/SKILL.md)) regarding heterogeneous ensembles (multi-foundation models). Clarified that absolute energy standard deviation is not a valid disagreement signal when models do not share a common energy reference scale ($E_0$), and directed users to rank using force disagreement instead. - **Electron-Phonon Coupling**: Added the [mat-epw-mobility](file:///home/bdeng/projects/AtomisticSkills/.agents/skills/mat-epw-mobility/SKILL.md) skill to run Quantum ESPRESSO + EPW calculations for 2D semiconductors.

  4. v1.3.2 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.1 | v1.3.2 | Added | |--------------|--------|--------|-------| | Skills | 127 | 127 | — | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### Other Highlights - **NValchemi batched MD gating**: Re-benchmarked sequential vs. batched MD serially (no GPU contention) and found NValchemi batched MD is a win only for MACE (4.90x). Added a `_nvalchemi_supports_batch_md` flag that routes TensorNet and FairChem MD to the faster sequential path. TensorNet's light forward exposes a `torch.compile`/Warp neighbor-list stream race (officially supported by `matgl.ext.alchmtk`, so a hardware limitation, not an incompatibility) and is ~0.88x even when forced; FairChem uma-s-1p2's forward scales superlinearly per atom (1.57 ms/atom at batch=1 → 2.43 at batch=20) so batched MD is 0.64x. - **FairChem cutoff fix**: Corrected the NValchemi FairChem wrapper's cutoff inference, which fell back to 12 Å / 500 neighbors instead of the model's true 6 Å / 300 (wrong attribute paths), making `adapt_input` build ~530 edges/atom of work that uma-s-1p2 discards (it runs with `external_graph_gen=False`). Added a robust `_find_backbone` walk. - **NValchemi fixed-batch relaxation**: Switched to standard form cell mapping and scaled FIRE2 optimizer to prevent cell distortion during relaxation. Fixed trailing post-convergence step handling and enabled native convergence masking in fixed-batch mode. Disabled inflight batching for TensorNet to prevent neighbor-list OOB errors. - **MCP Server memory optimization**: Implemented automatic GPU memory cleanup (`gc.collect()` and `torch.cuda.empty_cache()`) within MACE, MatGL, and FairChem relaxation and molecular dynamics handlers to prevent VRAM accumulation. - **Skills & documentation**: Re-documented the NValchemi skill with corrected batched vs. sequential MD benchmarks for MACE, MatGL (TensorNet), and FairChem (UMA), and added a serial `run_md_benchmark.py` harness. Refined category tags on mass spectrometry and spectrum-matching skills.

  5. v1.3.1 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.0 | v1.3.1 | Added | |--------------|--------|--------|-------| | Skills | 127 | 127 | — | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### Other Highlights - **NValchemi Stability**: Fixed batch relaxation memory issues; added `PositionWrappingHook` and `ForceStressClippingHook` to prevent exploding trajectories during GPU-parallel relaxation. - **NValchemi Cell Relaxation**: Switched to `FIRE2VariableCell` with `dt=0.05` for more stable variable-cell relaxations. - **M3GNet / CHGNet**: Added `_nvalchemi_supports_relax=False` flag to skip NValchemi dispatch for models that do not support it; neighbor-list overflow and OOM errors now fall back gracefully to sequential relaxation. - **Tooling**: Updated `configure_mcp.py` to expose AtomisticSkills skills globally for all registered agents.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决药物发现中结合自由能估计的核心需求,适用于高通量虚拟筛选后重排序
  • 提供两种互补实现路径(OpenMM快速GBn2与AmberTools全功能MMPBSA.py),覆盖不同精度与速度权衡场景
  • 深度集成至HTVS工作流,作为几何稳定性之外的独立信号提升命中质量
Trigger Precision90/100

Areas to improve

  • 触发词可进一步精简聚焦 Reported severity: Minor

    frontmatter中description字段内容详尽但略长,可提炼更紧凑的核心触发短语

    Recommendation: 将frontmatter description压缩为一行核心功能陈述,保留body中详细解释

Highlights

  • 明确区分MM-GBSA与MM-PBSA两种方法及其适用场景
  • 清晰界定单轨迹近似、无熵校正等关键假设边界
Structure and Standards85/100

Areas to improve

  • 文档长度超出推荐阈值 Reported severity: Minor

    SKILL.md总长度超过500行,虽内容必要但仍影响可读性

    Recommendation: 考虑将部分技术细节(如参考文献、详细参数表)移至独立附录文件并通过链接引用

Highlights

  • Phase划分清晰:基础用法→高级配置→结果解读→集成工作流
  • 提供完整端到端命令行示例及输出格式说明
  • Constraints章节全面覆盖环境、依赖、物理假设与计算限制
Execution Reliability88/100

Areas to improve

  • 跨后端数值不可比性需更强警示 Reported severity: Minor

    虽已说明OpenMM与AmberTools路径结果不可直接比较,但用户仍可能误用

    Recommendation: 在summary输出文件中增加显式警告字段,并在命令行帮助中强化提示

Highlights

  • 工具链依赖明确且全部包含在drugmd-agent环境中
  • 关键参数(如solute_dielectric)提供调优指南与物理依据
  • 输出包含完整provenance信息(mmgbsa_summary.json/mmpbsa_summary.json)
  • 对统计误差(SEM optimism)和复制实验必要性有专业级说明
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • doi.org
  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.