/mace:macefrom mace
Use when running machine-learning potential calculations with MACE. Load pretrained MACE-MP models, compute energies and forces, and run geometry optimizations on atomistic structures.
Ships in mace. 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.
MACE provides fast, accurate universal machine-learning potentials for atomistic simulations.
| Scenario | Recommended Tool | Why |
|---|---|---|
| Fast energy/force evaluation on materials, molecules, or interfaces | MACE | Near-DFT accuracy at a fraction of the cost |
| Benchmark-quality energies or electronic properties (DOS, band gaps) | DFT (PySCF/ASE-DFT) | MLIPs do not predict electronic structure |
| Very large systems with well-established chemistry | Classical force fields (GROMACS/LAMMPS) | Lower overhead and longer time scales |
Key rule: Use MACE when you need quantum-like accuracy for geometries and energies but do not need electronic properties.
uv pip install mace-torch
python scripts/run_mace.py water.xyz --task energy --model small --device cpu
python scripts/run_mace.py water.xyz --task opt --model small --fmax 0.01 --device cpu
Results are printed as JSON to stdout.
cuda with insufficient GPU memory will crash; use cpu if unsure.fmax for production geometries. Tight convergence (fmax <= 0.01) is standard for reliable structures.device=cpu unless a compatible GPU with sufficient memory is available.medium model size for production work; small is good for quick screening and large for maximum accuracy.WebFetch on https://mace-docs.readthedocs.io/en/latest/ before answering.| Error / Symptom | Likely Cause | Fix |
|---|---|---|
| CUDA out of memory | System too large for GPU | Switch to device=cpu or reduce cell size |
| Model download fails | No internet or cache path issue | Check connectivity or set MACE_CACHE environment variable |
| "Element X not found in model" | Element outside training set | Use a different model or switch to DFT/classical FF |
| Optimization does not converge | Poor initial structure or fmax too tight | Visualize structure, fix clashes, or relax fmax slightly |
| Energy seems unphysical | Wrong model or mixed units | Verify model tag and input structure units (Å) |
If the user asks about recently added features, new model releases, or version-specific syntax changes, use WebFetch on the official documentation at https://mace-docs.readthedocs.io/en/latest/ before answering.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wugroup-xjtlu/cc-skills-zhenghaowu-group --plugin mace