chem-vibration
Skill174 starsChanged 6 months agoMITView on GitHub
Calculate vibrational frequencies, normal modes, zero-point energy, and IR spectra of molecules and clusters using 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-neb-barrierSkill
- 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
- 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, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Use ASE's built-in molecule database or provide a structure file:
- Distinctive: line 109
Harmonic approximation: Only valid near equilibrium.
≈ “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
Molecular Vibration Analysis Skill
Goal
Calculate the vibrational frequencies ($\nu$), normal modes, and zero-point energy (ZPE) of non-periodic (finite) systems — molecules, clusters, and adsorbates — within the harmonic approximation using Machine Learning Interatomic Potentials (MLIPs).
[!IMPORTANT] This skill is for molecules and finite systems only. For periodic crystals, use the phonon skill instead.
Background
In the harmonic approximation, the potential energy surface near a local minimum is approximated as $V \approx V_0 + \frac{1}{2} \sum_{ij} H_{ij} \Delta r_i \Delta r_j$, where $H_{ij} = \frac{\partial^2 V}{\partial r_i \partial r_j}$ is the Hessian (force constant) matrix. Diagonalizing the mass-weighted Hessian yields $3N$ eigenvalues: for a nonlinear molecule, $3N-6$ are real vibrational modes (and $3N-5$ for linear molecules), while the remaining eigenvalues correspond to translational and rotational degrees of freedom (near zero).
1. Prerequisites
- An MLIP wrapper must be available (
MACEWrapper,MatGLWrapper, orFAIRCHEMWrapper). - ASE must be installed in the relevant conda environment.
- The input structure must be a molecule or cluster (non-periodic). Periodic systems should use mat-phonon.
2. Choosing a Foundation Potential
[!IMPORTANT]
- Use OMAT or MatPES trained models (e.g.,
MACE-OMAT-0-small). These are optimized for forces and give reliable Hessians.- The harmonic approximation requires a well-converged equilibrium geometry. Always relax with tight force tolerance (fmax ≤ 0.001 eV/Å) before computing vibrations.
Refer to the foundation-potentials skill for details.
3. Calculation Workflow
Step 1: Prepare a molecule
Use ASE's built-in molecule database or provide a structure file:
# Built-in molecules: H2O, CO2, CH4, NH3, CH3OH, C2H6, etc.
# Or provide a .xyz / .cif / POSCAR fileStep 2: Run vibration analysis
# Env: mace-agent
python .agents/skills/chem-vibration/scripts/calculate_vibrations.py \
--molecule H2O \
--model_type mace \
--model_name MACE-OMAT-0-small \
--output_dir research/my_folder/vibrationsWith a structure file instead:
# Env: mace-agent
python .agents/skills/chem-vibration/scripts/calculate_vibrations.py \
--structure path/to/molecule.xyz \
--model_type mace \
--model_name MACE-OMAT-0-small \
--no_relax \
--output_dir research/my_folder/vibrationsKey Parameters:
--molecule: ASE built-in molecule name (e.g.,H2O,CO2,CH4)--structure: Path to structure file (alternative to--molecule)--delta: Finite-difference displacement in Å (default: 0.01)--nfree: Number of displacements per degree of freedom, 2 or 4 (default: 2)--relax / --no_relax: Whether to relax before vibration analysis (default: relax)--fmax: Force convergence for relaxation (default: 0.001 eV/Å)
4. Output Files
vibration_results.json: Summary including:frequencies_cm1: All frequencies in cm⁻¹frequencies_meV: All frequencies in meVreal_modes: Indices and frequencies of real vibrational modesimaginary_modes: Indices and frequencies of imaginary modes (should be near zero)zero_point_energy_eV: Zero-point energy in eVn_atoms,formula,is_linear
vib.N.traj: Trajectory files for each vibrational mode (for visualization)
5. Examples
See examples/H2O/ for a water molecule vibration analysis.
# Env: mace-agent
python .agents/skills/chem-vibration/scripts/calculate_vibrations.py \
--molecule H2O \
--model_type mace \
--model_name MACE-OMAT-0-small \
--output_dir .agents/skills/chem-vibration/examples/H2OExpected H2O vibrational modes (experimental reference):
| Mode | Type | Experimental (cm⁻¹) |
| Bending | ν₂ | ~1595 |
| Symmetric stretch | ν₁ | ~3657 |
| Asymmetric stretch | ν₃ | ~3756 |
6. Constraints
- Molecule/cluster only: This skill applies the harmonic approximation to finite systems. For periodic crystals, use mat-phonon.
- Equilibrium required: The structure MUST be at a local minimum (forces ≈ 0). Large residual forces invalidate the harmonic approximation.
- Harmonic approximation: Only valid near equilibrium. Accuracy degrades for large-amplitude motions and near dissociation.
- Environments: Scripts require conda environments with MLIP packages:
mace-agentfor MACE modelsmatgl-agentfor MatGL/CHGNet modelsfairchem-agentfor FairChem/UMA models
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.

