/atomistic-skills:mat-sample-pes-by-mdfrom Atomistic Skills
Generates diverse atomic configurations from a starting structure via MD-based sampling with crystal feature clustering, for augmenting MLIP training data.
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 generate diverse and representative atomic configurations from a starting structure to augment training data for Machine Learning Interatomic Potentials (MLIPs). This is achieved through MD-based sampling with crystal feature clustering.
Prepare a Foundation Potential: Select an appropriate MLIP model for sampling.
CHGNet-PES-MatPES-PBE-1M-2026.9 (MatGL; the run_sampling.py default, whose graph-convolution features drive the clustering) or MACE-MP-small (MACE) for general inorganic materials.Off-Equilibrium Sampling (MD-Clustering):
Using MatGL (CHGNet):
${CLAUDE_SKILL_DIR}/../../venv/run mlip python ${CLAUDE_SKILL_DIR}/scripts/run_sampling.py input.cif \
--model_type matgl --model_name CHGNet-PES-MatPES-PBE-1M-2026.9 \
--total_steps 2000 --temperature 1000 --n_clusters 10 --output_dir sampling_results
Using MACE:
${CLAUDE_SKILL_DIR}/../../venv/run mlip python ${CLAUDE_SKILL_DIR}/scripts/run_sampling.py input.cif \
--model_type mace --model_name MACE-OMAT-0-small \
--total_steps 2000 --temperature 1000 --n_clusters 10 --output_dir sampling_results
The script automatically expands small cells (e.g., primitive cells) to supercells containing ~50 atoms (close-to-cubic) before simulation. This ensures adequate system size and local environment diversity.
--target_atoms in the script call (recommended: 40-70 atoms for VASP efficiency).For integration into other Python workflows, use the OffEquilibriumSampler class directly.
from .agents.skills.mat_sample_pes_by_md.scripts.sampler import OffEquilibriumSampler
from .agents.skills.mat_sample_pes_by_md.scripts.feature_calculators import MatGLCrystalFeatureCalculator
from matgl import load_model
# Setup calculator
model = load_model("CHGNet-PES-MatPES-PBE-1M-2026.9")
calc = MatGLCrystalFeatureCalculator(potential=model)
# Initialize and run sampler
sampler = OffEquilibriumSampler(
calculator=calc,
atoms=initial_atoms,
total_steps=1000,
temperature=800,
n_clusters=20
)
structures, metadata = sampler.sample()
Sampling 10 representative configurations from a 10 ps MD trajectory of LiMnO2 at 2000K.
LiMnO2_matgl_results/mlip environment.mlip environment.scikit-learn in the environment.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/LiMnO2/LiMnO2_MatGL_0.35ps.cif (opens in a new tab)examples/LiMnO2/LiMnO2_MatGL_4.85ps.cif (opens in a new tab)examples/LiMnO2/LiMnO2_MatGL_7.65ps.cif (opens in a new tab)examples/LiMnO2/README.md (opens in a new tab)scripts/feature_calculators.py (opens in a new tab)scripts/run_sampling.py (opens in a new tab)scripts/sampler.py (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