chem-dft-orca-optimization
Skill174 starsChanged 6 months agoMITView on GitHub
Run DFT geometry optimization (minimization or TS search) on a molecular structure using ORCA via SCINE/ReaDuct wrapper.
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-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
- 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
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 120
If --calculate_final_hessian was used: hessian_eV_per_Ang2, hessian_wave_numbers_cm-1, and n_imaginary_modes
- Distinctive: line 121
All input parameters for reproducibility
- Very specific: line 128
Check converged: true in the results JSON.
- Very specific: line 130
If convergence fails, try increasing --convergence_max_iterations or improving the initial geometry.
- Very specific: line 134
Recommended: Use --calculate_final_hessian to compute the Hessian directly after optimization.
- Distinctive: line 137
If the optimizer converges to a minimum instead of a saddle point, the initial guess was likely too far from the true TS.
- Distinctive: line 142
Single-ended TS: Only single-ended TS optimization is available.
- Very specific: line 145
Environment: All commands require the orca-agent conda environment.
- Very specific: line 146
Solvation: When using --solvation, you must also provide --solvent.
≈ “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
DFT Geometry Optimization with ORCA
Goal
Optimize the geometry of a molecular structure at the DFT level using the ORCA quantum chemistry program. Supports two modes: minimization (finding the nearest local minimum) and transition state (TS) optimization (single-ended saddle point search). The calculation uses the SCINE/ReaDuct wrapper for robust optimizer management.
[!IMPORTANT] This skill provides single-ended TS optimization only. For reaction pathway methods (NEB, IRC), consider using the MLIP-based NEB skill or IRC skill with MLIP pre-screening, then refine with DFT. For advanced ORCA features, use the advanced ORCA skill.
Background
Geometry optimization iteratively adjusts nuclear positions to minimize (or, for TS search, to find a first-order saddle point of) the potential energy surface $E(\mathbf{R})$. The SCINE/ReaDuct optimizer handles step control, coordinate transformations, and convergence criteria internally.
- Minimization seeks a stationary point where $\nabla E = 0$ and the Hessian has all positive eigenvalues.
- TS optimization seeks a first-order saddle point where $\nabla E = 0$ and the Hessian has exactly one negative eigenvalue.
1. Prerequisites
- Conda environment:
orca-agentwithscine_utilities,scine_readuct, andaseinstalled - ORCA binary: The environment variable
ORCA_BINARY_PATHmust point to the ORCA executableexport ORCA_BINARY_PATH=/path/to/orca - Input structure: A molecular structure file readable by ASE (
.xyz,.cif,.mol, etc.) - For TS optimization: Provide a reasonable TS guess geometry. Poor initial guesses will likely fail to converge to the correct saddle point.
2. Parameters
| Parameter | Default | Description |
--structure | (required) | Path to input structure file |
--opt_type | min | min for minimization, ts for transition state search |
--charge | 0 | Molecular charge |
--spin_multiplicity | 1 | Spin multiplicity (2S+1) |
--functional | PBE | DFT functional (e.g. PBE, B3LYP, wB97X-V) |
--basis_set | def2-SVP | Basis set (e.g. def2-SVP, def2-TZVP) |
--dispersion | None | Dispersion correction (e.g. D3BJ, D4) |
--solvation | None | Implicit solvation model: CPCM or SMD |
--solvent | None | Solvent name; required if --solvation is set |
--special_option | NOSOSCF | ORCA special option passed to SCINE calculator. Set to empty string to disable. |
--nprocs | 1 | Number of CPU cores for ORCA |
--convergence_max_iterations | 200 | Maximum optimization steps |
--calculate_final_hessian | off | Compute Hessian at optimized geometry (for TS verification) |
--calculator_settings | None | Extra SCINE calculator settings as a JSON string (see below) |
--optimizer_settings | None | Extra ReaDuct optimizer kwargs as a JSON string (see below) |
--output_dir | auto | Output directory |
3. Running an Optimization
Geometry minimization
# Env: orca-agent
python .agent/skills/chem-dft-orca-optimization/scripts/run_optimization.py \
--structure molecule.xyz \
--functional B3LYP \
--basis_set def2-TZVP \
--dispersion D3BJ \
--nprocs 4 \
--output_dir research/my_project/optimizationTransition state optimization
# Env: orca-agent
python .agent/skills/chem-dft-orca-optimization/scripts/run_optimization.py \
--structure ts_guess.xyz \
--opt_type ts \
--functional B3LYP \
--basis_set def2-TZVP \
--dispersion D3BJ \
--calculate_final_hessian \
--nprocs 4 \
--output_dir research/my_project/ts_optimizationWith extra settings (calculator + optimizer)
For settings not exposed as dedicated flags, pass JSON strings. --calculator_settings applies to the SCINE/ORCA calculator, --optimizer_settings applies to the ReaDuct optimization task. SCINE is strict about types, so JSON ensures values are passed with the correct type (int, float, string).
# Env: orca-agent
python .agent/skills/chem-dft-orca-optimization/scripts/run_optimization.py \
--structure molecule.xyz \
--functional B3LYP \
--basis_set def2-TZVP \
--calculator_settings '{"max_scf_iterations": 128}' \
--optimizer_settings '{"convergence_delta_value": 1e-6}' \
--output_dir research/my_project/opt_customWith implicit solvation
# Env: orca-agent
python .agent/skills/chem-dft-orca-optimization/scripts/run_optimization.py \
--structure molecule.xyz \
--functional PBE0 \
--basis_set def2-TZVP \
--solvation SMD \
--solvent water \
--nprocs 4 \
--output_dir research/my_project/opt_solvated4. Output Files
optimization_results.json: Structured results containing:converged: Boolean indicating whether the optimization convergedfinal_energy_hartree,final_energy_eV: Final electronic energyfinal_max_force_eV_per_Ang,final_rms_force_eV_per_Ang: Residual force informationopt_type: Whether this was a minimization or TS search- If
--calculate_final_hessianwas used:hessian_eV_per_Ang2,hessian_wave_numbers_cm-1, andn_imaginary_modes - All input parameters for reproducibility
initial_structure.xyz: Copy of the input structureoptimized_structure.xyz: The optimized geometry
5. Interpreting Results
Minimization
- Check
converged: truein the results JSON. - Residual forces should be small (max force < 0.01 eV/A for typical convergence).
- If convergence fails, try increasing
--convergence_max_iterationsor improving the initial geometry.
TS Optimization
- Convergence alone does not guarantee a valid TS. After convergence, verify the Hessian has exactly one imaginary frequency:
- Recommended: Use
--calculate_final_hessianto compute the Hessian directly after optimization. The output will includen_imaginary_modes— expect exactly 1 for a valid TS. - Alternatively, run a separate single-point Hessian with the singlepoint skill using
--compute_hessian.
- Recommended: Use
- Inspect the imaginary mode to confirm it corresponds to the expected reaction coordinate.
- If the optimizer converges to a minimum instead of a saddle point, the initial guess was likely too far from the true TS.
6. Constraints
- Non-periodic systems only: ORCA does not handle periodic boundary conditions.
- Single-ended TS: Only single-ended TS optimization is available. For double-ended methods (NEB), pre-screen with MLIPs.
- TS guess quality: The TS optimizer requires a reasonable initial guess. Generate one using constrained scans, interpolation, or MLIP-based TS search methods.
- ORCA binary:
ORCA_BINARY_PATHmust be set and point to a working ORCA installation. - Environment: All commands require the
orca-agentconda environment. - Solvation: When using
--solvation, you must also provide--solvent.
References
- Neese, F., "Software update: The ORCA program system—Version 5.0", WIREs Comput. Mol. Sci., 2022. DOI
- Unsleber, J.P. et al., "SCINE—Software for Chemical Interaction Networks", J. Chem. Phys., 2024. DOI
Author: Miguel Steiner Contact: GitHub @steinmig
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.

