mat-md-monitors
Real-time monitoring tools for stability, equilibration, and diffusion during ASE molecular dynamics simulations.
Skill by learningmatter-mit
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/learningmatter-mit-mat-md-monitors
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mat-md-monitors
What's inside
- Skill name
mat-md-monitors- Description
- Real-time monitoring tools for stability, equilibration, and diffusion during ASE molecular dynamics simulations.
- License
- MIT
- Instructions
- 90 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (24)
- SKILL.md
- Cu_conventional.cif · examples/Cu_nvt_equilibration/
- README.md · examples/Cu_nvt_equilibration/
- Cu256_100.0K_nvt.log · examples/Cu_nvt_equilibration/T100_stage1_equilibration/
- md_inputs.json · examples/Cu_nvt_equilibration/T100_stage1_equilibration/
- Cu256_100.0K_nvt.log · examples/Cu_nvt_equilibration/T100_stage2_production/
- md_inputs.json · examples/Cu_nvt_equilibration/T100_stage2_production/
- analyze_md_monitor_run.py · examples/Cu_nvt_equilibration/
- relax.log · examples/Cu_nvt_equilibration/relax/
- relaxed_energy.txt · examples/Cu_nvt_equilibration/relax/
- relaxed_structure.cif · examples/Cu_nvt_equilibration/relax/
- equilibration_monitor.png · examples/Cu_nvt_equilibration/results/
- equilibration_monitor.svg · examples/Cu_nvt_equilibration/results/
- input_configs.yaml · examples/Cu_nvt_equilibration/results/
- md_monitor_validation.json · examples/Cu_nvt_equilibration/results/
- potential_energy_equipartition.png · examples/Cu_nvt_equilibration/results/
- potential_energy_equipartition.svg · examples/Cu_nvt_equilibration/results/
- run_md_results.json · examples/Cu_nvt_equilibration/
- Cu256_300.0K_nvt.log · examples/Cu_nvt_equilibration/stage1_equilibration/
- md_inputs.json · examples/Cu_nvt_equilibration/stage1_equilibration/
- Cu256_300.0K_nvt.log · examples/Cu_nvt_equilibration/stage1b_equilibration_30K/
- md_inputs.json · examples/Cu_nvt_equilibration/stage1b_equilibration_30K/
- Cu256_300.0K_nvt.log · examples/Cu_nvt_equilibration/stage2_production/
- md_inputs.json · examples/Cu_nvt_equilibration/stage2_production/
SKILL.md (first lines)
# Molecular Dynamics
<!-- mcp-tools-note -->
> [!NOTE]
> Steps written `server.tool` are MCP tool calls: `mace.run_md` is the `run_md`
> tool of the `mace` server (`mcp__mace__run_md`, or
> `mcp__plugin_atomistic-skills_mace__run_md` when 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 by `load_model` stays loaded:
>
> ```bash
> ${CLAUDE_SKILL_DIR}/../../venv/run mlip python -m src.mcp_server.cli mace run_md key=value
> ```
## Goal
To perform stable and accurate molecular dynamics simulations using MLIPs, ensuring physical correctness and avoiding common "explosions" associated with neural network potentials.
## Instructions
### 1. Monitoring Stability
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).
- **Parameters**: `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`.
- **Best Practice**: Use `dyn.set_temperature(temperature_K=T)` inside the ramping callback. This is critical for thermostats like `Langevin` to update internal noise/coupling coefficients.
- **Advanced Thermostats**: For `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**:
```python
# MACE example with multiple monitors
mace.run_md(structure, monitor=True, monitor_type=["explosion", "equilibration"])
```
- **Quenching Template (MCP Tool Call)**:
```json
{
"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.
### 2. Parameter Initialization
- **Time Step**:
- **2.0 fs**: Recommended for most systems without light elements (Hydrogen).
- **0.5 - 1.0 fs**: Use for systems containing Hydrogen, or at very high temperatures (> 2000K) to maintain stability.
- **Thermostat**: Use a coupling constant (`taut`) around $100 \times \text{timestep}$.
- **Temperature Ramp**: Start at a low temperature (50K) and ramp to the target to avoid "shock" waves from initial overlaps.
### 3. Handling Instability
If a simulation explodes:
1. **Reduce Timestep**: Try 0.5 fs.
2. **Ramp Temperature**: Use a slower heating rate.
3. **Check Potential**: Consider if the chemistry is within the training range of the foundation potential. If not, use the [ml-mlip-training](../ml-mlip-training/SKILL.md) skill.
## Examples
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.
- [FCC Cu NVT equilibration](examples/Cu_nvt_equilibration/README.md) — where the `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.
## Constraints
- **Termination**: If a monitor triggers an explosion, terminate the task and adjust parameters. Do not proceed with unstable trajectories.
- **Reporting**: Always report simulation parameters (ensemble, T, timestep, duration) in the research report.
---
**Author:** Bowen Deng
**Contact:** [GitHub @learningmatter-mit](https://github.com/learningmatter-mit)From learningmatter-mit/AtomisticSkills, MIT.
More from learningmatter-mit/AtomisticSkills
- 0.681score
drug-complex-system-builder
learningmatter-mit
Build a solvated, charge-neutralized protein-ligand complex for OpenMM molecular dynamics simulation.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-binding-site-definition
learningmatter-mit
Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-mmpbsa-gbsa
learningmatter-mit
Compute single-trajectory MM-GBSA and / or MM-PBSA binding free energy estimates from a protein-ligand MD trajectory.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-pocket-detection
learningmatter-mit
Identify and rank ligandable pockets on a protein structure or model using geometry (fpocket) or an ML predictor (P2Rank).
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-sorption-relax
learningmatter-mit
Prepares supercells for porous frameworks based on minimum interplanar distance and relaxes them using standard MLIP relaxation tools.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-protein-ligand-md
learningmatter-mit
Run a protein-ligand MD simulation in OpenMM with energy minimization, restrained equilibration, and production NPT, producing trajectory and checkpoint files…
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-db-qmof
learningmatter-mit
Query the Quantum MOF (QMOF) database via Materials Project's MPContribs platform for DFT-computed properties (bandgap) and optimized crystal structures of…
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-bond-dissociation
learningmatter-mit
Calculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-hazard-toxicity
learningmatter-mit
Extract explicit safety warnings, GHS classifications, LD50 toxicity profiles, and acute oral toxicity triage from PubChem PUG VIEW.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-redocking-rmsd
learningmatter-mit
Compute symmetry-corrected heavy-atom RMSD between docked poses and a reference crystal ligand to validate docking protocols.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-pose-validation
learningmatter-mit
Validate docked or generated ligand poses for physical plausibility using PoseBusters, filtering out chemically invalid or clashing poses before downstream…
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-dft-orca-optimization
learningmatter-mit
Run DFT geometry optimization (minimization or TS search) on a molecular structure using ORCA via SCINE/ReaDuct wrapper.
SkillAFreshness: A★ 183Claude Code +9
Signals
- Stars
- 183
- Forks
- 31
- Open issues
- 0
- Last commit (this folder)
- Oct 10, 2026 (18 days ago)
- Last release
- Oct 6, 2026 (22 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- arxiv.org/abs/2605.24002
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from learningmatter-mit
- 0.681score
drug-binding-site-definition
learningmatter-mit
Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-complex-system-builder
learningmatter-mit
Build a solvated, charge-neutralized protein-ligand complex for OpenMM molecular dynamics simulation.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-mmpbsa-gbsa
learningmatter-mit
Compute single-trajectory MM-GBSA and / or MM-PBSA binding free energy estimates from a protein-ligand MD trajectory.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-pocket-detection
learningmatter-mit
Identify and rank ligandable pockets on a protein structure or model using geometry (fpocket) or an ML predictor (P2Rank).
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-pose-validation
learningmatter-mit
Validate docked or generated ligand poses for physical plausibility using PoseBusters, filtering out chemically invalid or clashing poses before downstream…
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-sorption-relax
learningmatter-mit
Prepares supercells for porous frameworks based on minimum interplanar distance and relaxes them using standard MLIP relaxation tools.
SkillAFreshness: A★ 183Claude Code +9
Cite this page
mat-md-monitors skill. Agent Mart. https://agentmart.dev/skills/learningmatter-mit-mat-md-monitors (last updated 2026-10-24)