From gromacs
Use when setting up and running biomolecular MD simulations with GROMACS. Generate topologies, write MDP input files, execute simulations, and perform basic analysis.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gromacs:gromacsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
GROMACS is a high-performance engine for biomolecular MD simulations, including proteins, lipids, and nucleic acids in explicit solvent.
GROMACS is a high-performance engine for biomolecular MD simulations, including proteins, lipids, and nucleic acids in explicit solvent.
| Scenario | Recommended Tool | Why |
|---|---|---|
| Biomolecular systems (proteins, membranes, DNA) in explicit solvent | GROMACS | Optimized force fields, extensive biophysical analysis tools |
| Materials, coarse-grained, or reactive MD | LAMMPS | Flexible potentials, ReaxFF, granular/CG support |
| Quick structure conversion or small test calculations | ASE | Lightweight Python interface, many calculators |
Key rule: Use GROMACS when the system is biomolecular and you need production-quality explicit-solvent MD with thermodynamic analysis.
GROMACS must be installed and gmx must be available in your PATH.
Generate standard MDP files for common protocols.
python scripts/write_mdp.py em minimization.mdp
python scripts/write_mdp.py nvt equilibration.mdp
python scripts/write_mdp.py npt production.mdp
Prepare and run simulations.
python scripts/run_simulation.py --mdp production.mdp --gro system.gro --top system.top --o run.tpr --run
Compute RMSD, RMSF, and RDF.
python scripts/run_analysis.py --xtc traj.xtc --gro system.gro --task rmsd --o rmsd.xvg
dt = 0.002 with bond constraints (e.g., constraints = h-bonds).nstxout = 5000 at 2 fs/step) to balance disk usage and analysis resolution.gen_seed for reproducibility when generating velocities.WebFetch on https://manual.gromacs.org/current/ before answering.| Error / Symptom | Likely Cause | Fix |
|---|---|---|
grompp fails with "atomtype not found" | Missing force-field parameters or wrong topology path | Check *.itp includes and force-field selection |
mdrun crashes with LINCS warnings | Too-large time step or poorly minimized structure | Reduce dt, increase nsteps in EM, or check clashes |
| Energy or temperature drift | Cutoffs too short, missing constraints, or integration errors | Increase rcoulomb/rvdw, verify constraints, reduce dt |
| Analysis shows broken molecules | PBC not handled | Use gmx trjconv -center -pbc mol before analysis |
| Fatal error: number of coordinates does not match | Atom count mismatch between .gro and .top | Reconcile topology with structure (e.g., missing water or ions) |
If the user asks about recently added features, new options, or version-specific syntax changes, use WebFetch on the official documentation at https://manual.gromacs.org/current/ before answering.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub wugroup-xjtlu/cc-skills-zhenghaowu-group --plugin gromacs