/atomistic-skills:mat-surface-energyfrom Atomistic Skills
Calculates surface energy of (hkl) crystallographic planes and constructs equilibrium Wulff shapes using MLIP structural relaxation.
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:matgl.load_modelis theload_modeltool of thematglserver (mcp__matgl__load_model, ormcp__plugin_atomistic-skills_matgl__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 matgl load_model key=value relax_structure key=value
To determine the surface energy ($\gamma$) of different crystallographic planes (hkl) and construct the equilibrium crystal shape (Wulff shape) using structural relaxation with Machine Learning Interatomic Potentials (MLIPs).
Select Level of Theory: Choose the target accuracy level for surface energy calculations.
CHGNet-PES-MatPES-r2SCAN-1M-2026.9 (MatGL), TensorNet-MatPES-r2SCAN-v2025.1-PES (MatGL), or MACE-MH-1 with matpes_r2scan head.Relax Bulk Reference: Perform a high-accuracy relaxation of the bulk material to serve as the reference energy.
matgl.load_model(model_name="CHGNet-PES-MatPES-r2SCAN-1M-2026.9")
matgl.relax_structure(
structure_data="bulk.cif",
relax_cell=True,
fmax=0.01,
output_dir="bulk_relaxation/"
)
Note: Record the final energy per atom ($E_{bulk}$).
Generate Slabs: Create oriented slabs for the target (hkl) planes.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/create_slabs.py \
--bulk bulk_relaxation/relaxed_structure.cif \
--max_index 1 \
--min_thickness 10.0 \
--vacuum 15.0 \
--output slabs/
This script generates slabs for all unique planes up to the specified max_index.
Relax Slabs: Perform structural relaxation on all generated slabs.
matgl.load_model(model_name="CHGNet-PES-MatPES-r2SCAN-1M-2026.9")
matgl.relax_structure(
structure_data="slabs/",
relax_cell=False, # DO NOT relax cell for slabs (fixed area)
fmax=0.02,
output_dir="slab_relaxations/"
)
Important: Keep the unit cell fixed (relax_cell=False) to maintain the target surface area.
Calculate Surface Energy: Compute the surface energy for each plane.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/calculate_surface_energy.py \
--bulk_energy_per_atom -4.567 \
--slab_dir slab_relaxations/ \
--output surface_energies.json
Surface energy is calculated as: $$\gamma = \frac{E_{slab} - N \cdot E_{bulk}}{2A}$$ where $E_{slab}$ is the total energy of the slab, $N$ is the number of atoms in the slab, $E_{bulk}$ is the energy per atom of the bulk, and $A$ is the surface area.
Generate Wulff Shape: Construct the Wulff shape from the calculated surface energies.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/generate_wulff.py \
--energies_json surface_energies.json \
--bulk bulk_relaxation/relaxed_structure.cif \
--output wulff_shape.png
# Generate slabs up to index 1 (100, 110, 111)
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/create_slabs.py --bulk Al.cif --max_index 1
# Load and run relaxations using CHGNet
matgl.load_model(model_name="CHGNet-PES-MatPES-r2SCAN-1M-2026.9")
matgl.relax_structure(structure_data="Al.cif", relax_cell=True, output_dir="bulk_relax")
matgl.relax_structure(structure_data="slabs/", relax_cell=False, output_dir="slab_relax")
# Calculate and generate Wulff shape
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/calculate_surface_energy.py --bulk_energy_per_atom -3.36 --slab_dir slab_relax/
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/generate_wulff.py --energies_json surface_energies.json --bulk Al.cif
Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/FCC_metals/Cu_bulk.cif (opens in a new tab)examples/FCC_metals/README.md (opens in a new tab)examples/FCC_metals/get_bulk_cu.py (opens in a new tab)examples/FCC_metals/run_surface_energy.sh (opens in a new tab)examples/FCC_metals/slabs/slab_10-1_3.cif (opens in a new tab)examples/FCC_metals/slabs/slab_11-1_2.cif (opens in a new tab)examples/FCC_metals/slabs/slab_110_1.cif (opens in a new tab)examples/FCC_metals/slabs/slab_111_0.cif (opens in a new tab)examples/FCC_metals/surface_energies.json (opens in a new tab)examples/FCC_metals/wulff_shape.json (opens in a new tab)examples/FCC_metals/wulff_shape.png (opens in a new tab)scripts/calculate_surface_energy.py (opens in a new tab)scripts/create_slabs.py (opens in a new tab)scripts/generate_wulff.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
133 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.npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skillsOther plugins' skills for the same job