/atomistic-skills:mat-surface-adsorptionfrom Atomistic Skills
Calculates surface adsorption energies for adsorbate-crystal combinations using MLIPs (MACE, FAIRChem, MatGL). Automates bulk relaxation, slab generation, site identification, and energy calculations.
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.
This skill provides tools for calculating adsorption energies ($E_{ads}$) of molecules on crystalline surfaces using Machine Learning Interatomic Potentials (MLIPs).
To calculate the adsorption energy for a given adsorbate-surface combination, defined as:
$$E_{ads} = E_{adsorbate+slab} - E_{slab} - E_{adsorbate}$$
where:
The skill uses MatCalc's AdsorptionCalc to automate the full workflow: bulk relaxation, slab generation, adsorbate relaxation, site identification, and energy calculations.
MACEWrapper, MatGLWrapper, or FAIRCHEMWrapper)matcalc, pymatgen, and ase are included in the mlip and fairchem environmentsAdsorption energy calculations require accurate prediction of both energies and forces, particularly for the adsorbate-surface interaction. Models trained on Open Catalyst datasets are especially recommended as they were specifically designed for catalysis and surface chemistry.
[!IMPORTANT] Recommended models (in order of preference):
- Open Catalyst trained models (BEST for surface adsorption):
- FAIRChem:
EquiformerV2-31M-S2EF-OC20-All+MD,EquiformerV2-153M-S2EF-OC20-All+MD- FAIRChem UMA:
uma-s-1p1,uma-m-1p1(universal, includes OC20/OC25 data)- MACE-OMAT:
MACE-OMAT-0-small,MACE-OMAT-0-medium(trained on OC datasets)- MatPES trained models (Good for general surfaces):
CHGNet-PES-MatPES-PBE-1M-2026.9TensorNet-PES-MatPES-PBE-2025.2MACE-MatPES-PBE-0- Avoid MPtrj-only models: Models trained primarily on the
MPtrjdataset may suffer from force prediction issues critical for adsorption.
Why Open Catalyst models? The OC20, OC22, and OC25 datasets contain millions of adsorbate-surface configurations specifically for catalysis, making these models highly accurate for adsorption energies and barriers.
Refer to the foundation-potentials skill for detailed guidance on model selection.
To calculate adsorption energies, use the calculate_adsorption.py script:
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/calculate_adsorption.py \
--bulk path/to/bulk_structure.cif \
--adsorbate path/to/adsorbate.xyz \
--miller_index '[1,1,1]' \
--model_type fairchem \
--model_name EquiformerV2-31M-S2EF-OC20-All+MD \
--fmax 0.05 \
--output_dir research/my_folder/adsorption
--bulk: Path to bulk structure file (CIF, POSCAR, etc.)--adsorbate: Path to adsorbate molecule file (XYZ, CIF) or SMILES string--miller_index: Miller index for the surface as JSON list (e.g., '[1,1,1]', '[1,0,0]')--model_type: MLIP model type (mace, matgl, or fairchem)--model_name: Specific model name (optional, uses defaults if not provided)Relaxation control:
--relax_bulk / --no_relax_bulk: Control bulk structure relaxation (default: True)--relax_slab / --no_relax_slab: Control clean slab relaxation (default: True)--relax_adsorbate / --no_relax_adsorbate: Control adsorbate molecule relaxation (default: True)Convergence:
--fmax: Force convergence criterion in eV/Å (default: 0.05)--optimizer: ASE optimizer (default: BFGS)--max_steps: Maximum optimization steps (default: 500)Slab generation:
--min_slab_size: Minimum slab thickness in Å (default: 10.0)--min_vacuum_size: Minimum vacuum layer in Å (default: 20.0)--adsorption_sites: Sites to consider: 'all', 'ontop', 'bridge', 'hollow' (default: all)--height: Initial adsorbate height above surface in Å (default: 0.9)The calculation generates the following files in the output directory:
adsorption_results.json: Complete summary including:
Calculate the adsorption energy of CO on the (111) surface of Cu using an Open Catalyst trained model:
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/calculate_adsorption.py \
--bulk examples/CO_on_Cu111/Cu_bulk.cif \
--adsorbate examples/CO_on_Cu111/CO.xyz \
--miller_index '[1,1,1]' \
--model_type fairchem \
--model_name EquiformerV2-31M-S2EF-OC20-All+MD \
--fmax 0.05 \
--output_dir research/Cu_CO_adsorption
Example structures:
CO_Cu111_initial.cif: Initial CO adsorbed on Cu(111) slabCO_Cu111_relaxed.cif: Relaxed structure after optimizationUse a SMILES string to define the adsorbate:
${CLAUDE_SKILL_DIR}/../../venv/run mlip python ${CLAUDE_SKILL_DIR}/scripts/calculate_adsorption.py \
--bulk Pt_bulk.cif \
--adsorbate "O=C=O" \
--miller_index '[1,1,1]' \
--model_type matgl \
--model_name CHGNet-PES-MatPES-PBE-1M-2026.9 \
--output_dir research/Pt_CO2_adsorption
Calculate adsorption on a (100) surface:
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/calculate_adsorption.py \
--bulk Ni_bulk.cif \
--adsorbate H2.xyz \
--miller_index '[1,0,0]' \
--model_type fairchem \
--model_name uma-s-1p1 \
--output_dir research/Ni_H2_100
The adsorption_results.json file contains:
most_stable_site: The adsorption site with the lowest (most negative) energy
adsorption_sites: List of all calculated sites with individual energies
num_sites: Total number of adsorption sites found
--adsorption_sites parameter and surface symmetryStructure Requirements:
Miller Indices:
'[h,k,l]'Slab Size:
min_slab_size=10.0 Å is usually sufficientVacuum Size:
min_vacuum_size=20.0 Å prevents periodic image interactionsEnvironments:
venv/run: mlip for MACE and
MatGL, fairchem for FairChem. Use the one that matches the chosen model.Computational Cost:
--adsorption_sites ontop or bridge to limit sites for faster calculationsAuthor: Bowen Deng Contact: GitHub @learningmatter-mit
examples/CO_on_Cu111/CO.xyz (opens in a new tab)examples/CO_on_Cu111/CO_Cu111_initial.cif (opens in a new tab)examples/CO_on_Cu111/CO_Cu111_relaxed.cif (opens in a new tab)examples/CO_on_Cu111/Cu_bulk.cif (opens in a new tab)examples/CO_on_Cu111/README.md (opens in a new tab)examples/CO_on_Cu111/adsorption_results.json (opens in a new tab)examples/CO_on_Cu111/generate_structures.py (opens in a new tab)scripts/calculate_adsorption.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