/atomistic-skills:ml-mlip-benchmarkfrom Atomistic Skills
Benchmarks MLIP accuracy against labeled datasets by computing MAE/RMSE for energy/atom and forces, and generating parity plots for visual correlation.
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.
[!NOTE] Steps written
server.toolare MCP tool calls:mace.load_modelis theload_modeltool of themaceserver (mcp__mace__load_model, ormcp__plugin_atomistic-skills_mace__load_modelwhen 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 load_model key=value ${CLAUDE_SKILL_DIR}/../../venv/run fairchem python -m src.mcp_server.cli fairchem load_model key=value ${CLAUDE_SKILL_DIR}/../../venv/run mlip python -m src.mcp_server.cli matgl load_model key=value
This skill evaluates the accuracy of a given MLIP against an existing ground-truth dataset (e.g., DFT calculations or a higher-fidelity foundation potential). It computes the Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) for both energy (per atom) and atomic forces, and optionally stress. It also generates parity plots for visual inspection of the model's correlation.
load_model MCP tool call (e.g., mace.load_model, fairchem.load_model, matgl.load_model)."structure", along with scalar/vector ground truth values for "energy", "forces", and optionally "stress". This is identical to the format used in ml-mlip-training. (Data can be generated using Atomate2 MongoDB queries or MD sampling + labeling).Use the ${CLAUDE_SKILL_DIR}/scripts/run_benchmark.py script to perform inference across the dataset and compute global error metrics.
Environment requirement: This script instantiates the MLIP models directly, so it must run in the uv project that provides the backend: venv/mlip for MACE and MatGL, venv/fairchem for FairChem.
# (or venv/fairchem when --backend fairchem)
${CLAUDE_SKILL_DIR}/../../venv/run mlip python ${CLAUDE_SKILL_DIR}/scripts/run_benchmark.py \
--data_path <path_to_labeled_data.json> \
--model <model_name_or_path> \
--backend <mace|fairchem|matgl> \
--output <path_to_save_benchmark_results.json>
Note: The script utilizes src.utils.mlips.loader.load_wrapper to abstract backend details.
Once run_benchmark.py finishes, it writes a comprehensive JSON file containing original targets alongside the model's predictions and numerical metrics. Visualize these using the plotting script.
Environment requirement: venv/cpu is enough for the plotting script.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/plot_benchmark.py \
--results <path_to_benchmark_results.json> \
--output_dir <path_to_save_plots>
This generates parity_energy.png, parity_forces.png, and (if stress was present) parity_stress.png.
A benchmark subtracts two numbers that came from different software, so a unit or sign mismatch shows up as a large "model error" that is not a model error at all. Energy (eV) and forces (eV/Å) agree across every backend here; stress does not. Settle it before computing a single metric -- see general-property-units for the full tables.
The three traps, in order of how often they bite:
matgl.ext.ase.PESCalculator defaults to
stress_unit="GPa", and Potential.forward returns GPa as well, so MatGL is not
a drop-in ASE calculator. Pass PESCalculator(potential=model, stress_unit="eV/A3").
Getting this wrong is a factor of 160.21766208.CHGNetCalculator converts GPa to
eV/ų on the way out (stress_weight, default 1/160.21766208); MACE and
FAIRChem convert nothing because their models already emit eV/ų. Know which
layer you are reading.eV/A3 = -kB / 1602.1766208.Sanity check that costs nothing: take a structure you have compressed, and confirm the diagonal stress is negative in ASE convention. If it is positive, you have a sign convention crossed somewhere.
When presenting the plotted benchmarks to the user, consult the following rough heuristics for MLIP performance:
If the model is performing poorly on the labeled data, suggest fine-tuning it utilizing the ml-mlip-training skill.
Evaluating state-of-the-art MatPES-r2SCAN Foundation Models directly against f-block filtered analytical DFT data from the Materials Project:
# Fetch 100 random r2SCAN structures from MP API (excluding Lanthanides/Actinides) into ./r2scan_data.json
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/examples/fetch_r2scan.py
# Benchmark MACE foundation potential
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_benchmark.py \
--data_path r2scan_data.json \
--model MACE-MATPES-R2SCAN-0 \
--backend mace \
--output research/2026-03-03_r2SCAN_benchmark/mace_results.json
# Plot the evaluation statistics
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/plot_benchmark.py \
--results research/2026-03-03_r2SCAN_benchmark/mace_results.json \
--output_dir research/2026-03-03_r2SCAN_benchmark/plots_mace

mat-sample-pes-by-md to generate un-labeled configurations.atomate2 MCP tools or VASP to evaluate configurations and produce a labeled dataset JSON.ml-mlip-training if the benchmark metric thresholds are unsatisfactory.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/README.md (opens in a new tab)examples/chgnet_parity.png (opens in a new tab)examples/fetch_r2scan.py (opens in a new tab)examples/mace_parity.png (opens in a new tab)examples/tensornet_parity.png (opens in a new tab)scripts/plot_benchmark.py (opens in a new tab)scripts/run_benchmark.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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./chem-db-qmofQuery the Quantum MOF (QMOF) database via Materials Project's MPContribs platform for DFT-computed properties (bandgap) and optimized crystal structures of Metal-Organic Frameworks./chem-db-spectraSearch and download experimental InfraRed (IR), Mass spectra, and UV-Vis spectra data (JCAMP-DX format) for molecules./chem-dft-orca-advanced-calculationWrite and run custom ORCA input files for advanced electronic structure methods or settings not available through the SCINE wrapper, including multi-reference methods, excited states, relativistic effects, advanced SCF, NMR/EPR, and more.Other plugins' skills for the same job