chem-neb-barrier
Skill174 starsChanged 6 months agoMITView on GitHub
Calculate activation barrier using Nudged Elastic Band (NEB) method with MLIPs.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 121
Ensure the appropriate environment is active for the chosen model type (see mcp_config.json).
- Very specific: line 125
Use fmax=0.02 eV/Å for tight convergence.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
NEB Barrier Calculation
This skill calculates the activation energy barrier for atomic migration or chemical reaction transition states using the Nudged Elastic Band (NEB) method with Machine Learning Interatomic Potentials (MLIPs).
Supports both:
- Materials: solid-state diffusion barriers (periodic systems)
- Chemistry: molecular transition states (non-periodic systems)
The script auto-detects periodic boundary conditions from the input structures.
Tools
1. calculate_barrier.py
Performs the NEB calculation between two endpoint structures.
Usage:
Use with MACE (periodic materials)
# Env: mace-agent
python .agents/skills/chem-neb-barrier/scripts/calculate_barrier.py \
--start_structure <path_to_start.cif> \
--end_structure <path_to_end.cif> \
--model_type mace \
--n_images 5 \
--fmax 0.05 \
--output_dir <output_directory>Use with MACE (non-periodic molecules)
# Env: mace-agent
python .agents/skills/chem-neb-barrier/scripts/calculate_barrier.py \
--start_structure reactant.xyz \
--end_structure product.xyz \
--model_type mace \
--model_name MACE-OFF23-small \
--n_images 7 \
--fmax 0.05 \
--output_dir <output_directory>Use with FairChem
# Env: fairchem-agent
python .agents/skills/chem-neb-barrier/scripts/calculate_barrier.py \
--start_structure <path_to_start.cif> \
--end_structure <path_to_end.cif> \
--model_type fairchem \
--n_images 5 \
--fmax 0.05 \
--output_dir <output_directory>Use with MatGL
# Env: matgl-agent
python .agents/skills/chem-neb-barrier/scripts/calculate_barrier.py \
--start_structure <path_to_start.cif> \
--end_structure <path_to_end.cif> \
--model_type matgl \
--n_images 5 \
--fmax 0.05 \
--output_dir <output_directory>Arguments:
--start_structure: Path to the initial stable structure (CIF/POSCAR/XYZ).--end_structure: Path to the final stable structure (CIF/POSCAR/XYZ).--model_type: Type of MLIP to use (mace,fairchem,matgl).--model_name: Specific model name/path (optional, uses default if not specified).--model_head: Model head for multi-head models (e.g.,omat,omolfor UMA;omat_pbe,matpes_r2scanfor MACE-MH).--n_images: Number of intermediate images (default: 7).--fmax: Force convergence criterion in eV/Å (default: 0.02).--interpolation: Method for initial path generation. Options:linear,idpp(default). Recommended to useidppfor dense systems.--climb: Use Climbing Image NEB (CI-NEB) (default: True).--output_dir: Directory to save results and plots.
Outputs:
neb_trajectory.traj: ASE trajectory of the optimized path.neb_barrier_plot.png: Plot of energy vs reaction coordinate.neb_results.json: JSON file containing barrier energy and forces.neb_path.cif(periodic) orneb_path.xyz(non-periodic): Path structures.
Model Recommendations
Periodic Materials (solid-state diffusion)
- Recommended:
- OMAT:
MACE-OMAT-0-smallMACE-MH-1(head:omat_pbe)uma-s-1p1(head:omat)
- MatPES:
MACE-MATPES-r2SCAN-0MACE-MH-1(head:matpes_r2scan)CHGNet-MatPES-r2SCAN-2025.2.10-2.7M-PESTensorNet-MatPES-r2SCAN-v2025.1-PES
- These models are trained on datasets including transition states or diverse structures (OMat24, MatPES), making them more reliable for NEB.
- OMAT:
- Discouraged:
- MPtrj trained models (e.g.,
M3GNet-MP-2021,CHGNet-MPtrj-2023.12.1-2.7M-PES) - These are primarily trained on ground-state or near-equilibrium structures and may underestimate barriers or fail to converge for high-energy transition states.
- MPtrj trained models (e.g.,
Non-periodic Molecules (transition states)
- Recommended:
MACE-OFF23-small/MACE-OFF23-medium— trained on organic moleculesuma-s-1p1(head:omol) — general molecular modelMACE-MH-1(head:omol) — multi-head molecular model
Prerequisites
- Ensure the appropriate environment is active for the chosen model type (see
mcp_config.json). - CRITICAL: The start and end structures MUST be pre-relaxed using the same MLIP model used for the NEB calculation.
- For periodic: Use
relax_cell=False(fixed volume) to ensure consistency between endpoints. - For non-periodic: Ensure
pbc=Falseis set on the structures. - Use
fmax=0.02eV/Å for tight convergence. - You can use the
relax_structuretool from the corresponding MCP server for this.
- For periodic: Use
Examples
See examples/ directory for sample inputs and outputs.
Author: Bowen Deng Contact: GitHub @learningmatter-mit
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

