/atomistic-skills:mat-md-monitorsfrom Atomistic Skills
Monitors ASE molecular dynamics simulations for stability, equilibration, and diffusion using built-in callbacks. Detects explosions, convergence, thermostat overshoot, volume changes, and diffusivity thresholds.
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.
[!NOTE] Steps written
server.toolare MCP tool calls:mace.run_mdis therun_mdtool of themaceserver (mcp__mace__run_md, ormcp__plugin_atomistic-skills_mace__run_mdwhen installed as a plugin). Without a connected server, run the same tools from the shell. Tools named in one command share a process, so a model loaded byload_modelstays loaded:${CLAUDE_SKILL_DIR}/../../venv/run mlip python -m src.mcp_server.cli mace run_md key=value
To perform stable and accurate molecular dynamics simulations using MLIPs, ensuring physical correctness and avoiding common "explosions" associated with neural network potentials.
MD stability monitoring is integrated directly into the run_md tool via ASE callbacks. This ensures zero-latency response to instabilities and simplifies the simulation workflow.
Enable Monitoring: Set monitor=True and specify monitor_type (single string or list).
explosion: Safety check. Stops if T > 10,000K or NaN. Recommended for all unstable simulations.equilibration: Convergence check. Stops once temperature and potential energy stabilize (e.g., for production runs).overshoot: Thermostat check. Stops if T deviates significantly from target (T-target > 200K).volume: NPT stability check. Stops if volume expands by 2x or contracts to 0.2x of initial.diffusion: Convergence check for transport properties. Stops once the relative error of diffusivity for a specific specie (default Li) falls below a threshold (default 0.1).
specie, threshold, check_interval_ps (default 5.0), ignore_ps (initial equilibration to skip, default 5.0).quenching: Linear temperature ramp. Updates the thermostat target every step to move from temperature to temperature_end over a specified number of steps.
dyn.set_temperature(temperature_K=T) inside the ramping callback. This is critical for thermostats like Langevin to update internal noise/coupling coefficients.NoseHooverChainNVT and MTKNPT, where set_temperature might be missing, manual updates to internal attributes (_kT, _Q, _W) are required to keep the damping frequency consistent.Example Usage:
# MACE example with multiple monitors
mace.run_md(structure, monitor=True, monitor_type=["explosion", "equilibration"])
Quenching Template (MCP Tool Call):
{
"tool": "mace.run_md",
"arguments": {
"structure_data": "initial_structure.cif",
"temperature": 3000.0,
"steps": 5000,
"timestep": 2.0,
"ensemble": "nvt_langevin",
"monitor": true,
"monitor_type": "quenching",
"monitor_params": {
"temperature_end": 300.0,
"steps": 5000
},
"output_dir": "research/quenching_output"
}
}
Action: When a monitor triggers, the simulation stops immediately with a status: "stopped" and a clear stop_reason in the result dictionary.
taut) around $100 \times \text{timestep}$.If a simulation explodes:
Monitoring stability is handled automatically by the ASE callbacks. When a monitor is triggered, the stop reason is logged to stdout and saved in the result dictionary.
equilibration monitor stops a 256-atom MACE-MP-small run at 300 K and 100 K, validated against equipartition, canonical temperature fluctuations and the Dulong–Petit limit.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/Cu_nvt_equilibration/Cu_conventional.cif (opens in a new tab)examples/Cu_nvt_equilibration/README.md (opens in a new tab)examples/Cu_nvt_equilibration/T100_stage1_equilibration/Cu256_100.0K_nvt.log (opens in a new tab)examples/Cu_nvt_equilibration/T100_stage1_equilibration/md_inputs.json (opens in a new tab)examples/Cu_nvt_equilibration/T100_stage2_production/Cu256_100.0K_nvt.log (opens in a new tab)examples/Cu_nvt_equilibration/T100_stage2_production/md_inputs.json (opens in a new tab)examples/Cu_nvt_equilibration/analyze_md_monitor_run.py (opens in a new tab)examples/Cu_nvt_equilibration/relax/relax.log (opens in a new tab)examples/Cu_nvt_equilibration/relax/relaxed_energy.txt (opens in a new tab)examples/Cu_nvt_equilibration/relax/relaxed_structure.cif (opens in a new tab)examples/Cu_nvt_equilibration/results/equilibration_monitor.png (opens in a new tab)examples/Cu_nvt_equilibration/results/equilibration_monitor.svg (opens in a new tab)examples/Cu_nvt_equilibration/results/input_configs.yaml (opens in a new tab)examples/Cu_nvt_equilibration/results/md_monitor_validation.json (opens in a new tab)examples/Cu_nvt_equilibration/results/potential_energy_equipartition.png (opens in a new tab)examples/Cu_nvt_equilibration/results/potential_energy_equipartition.svg (opens in a new tab)examples/Cu_nvt_equilibration/run_md_results.json (opens in a new tab)examples/Cu_nvt_equilibration/stage1_equilibration/Cu256_300.0K_nvt.log (opens in a new tab)examples/Cu_nvt_equilibration/stage1_equilibration/md_inputs.json (opens in a new tab)examples/Cu_nvt_equilibration/stage1b_equilibration_30K/Cu256_300.0K_nvt.log (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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