jinzhezenggroup/computational-chemistry-agent-skills/lammps-reaxff
Claude Code and agent skill by jinzhezenggroup/computational-chemistry-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Run reactive molecular dynamics simulations in LAMMPS with the ReaxFF potential, including preparing input scripts (pair_style reaxff + fix qeq/reaxff), mapping LAMMPS atom types to elements via pair_coeff, choosing ensembles (NVE/NVT/NPT), and adding common ReaxFF diagnostics such as species analysis. Use when the user wants LAMMPS+ReaxFF workflows or needs a working, annotated `input.lammps` template.
Install
npx vskill@latest install jinzhezenggroup/computational-chemistry-agent-skills/lammps-reaxffSKILL.md
LAMMPS + ReaxFF
Use this skill when the user wants to run molecular dynamics in LAMMPS with a ReaxFF force field, prepare or explain an input.lammps file, and set up charge equilibration (QEq) correctly.
Agent responsibilities
- Confirm the ReaxFF force field file (e.g.
ffield.reax.*). Do not guess which file is appropriate.
- If the user does not have a force field yet, point them to known sources (e.g. LAMMPS
potentials/ffield.reax.*at https://github.com/lammps/lammps/tree/develop/potentials).
- Confirm the structure/data file (e.g.
data.system) and the atom type → element mapping needed bypair_coeff. - Ensure the input includes charge handling:
- Use a charge-capable atom style, such as
atom_style chargeoratom_style full, and ensure charges are initialized either from the data file (with a charge column compatible with the chosenatom_style) or via explicit commands (e.g.setor equal-style variables). Do not rely onfix property/atom qas a substitute for a real charge field used by ReaxFF/QEq. - Add one charge equilibration fix, typically
fix qeq/reaxff, unless the user explicitly requests otherwise.
- Write the LAMMPS input script yourself; keep examples readable and annotated.
- When possible, validate command availability against LAMMPS docs or local
lmp -houtput before execution. - Report clearly which command was run, which files were used, and where outputs were written.
Minimum information to collect
Ask only for what is missing:
- LAMMPS data file path (or structure + how to generate a data file)
- ReaxFF force field file path (
ffield.reax...) - Atom types present and their element mapping (for
pair_coeff * * ffield ...) - Ensemble (NVE / NVT / NPT)
- Temperature, pressure (if NPT), timestep, run length
- Execution mode: online provisioning vs user-specified LAMMPS binary
Execution mode
Online mode (only if internet access + uv is available)
Use:
Notes:
- If you see
error while loading shared libraries: libmpi.so..., you likely installed an MPI-linkedlmpwithout MPI runtime libraries. Preferuvx --from 'lammps[mpi]' ...(bundles MPI runtime), or load/install MPICH/OpenMPI via system packages/conda/HPC module.
Offline mode (common / HPC)
Do not invent the executable. Ask which command should be used, e.g.:
lmp -in input.lammpsmpirun -np 32 lmp_mpi -in input.lammpssrun lmp -in input.lammps
Example: annotated NVT input (ReaxFF + QEq)
See also assets/input.reaxff.nvt.lammps.
Notes on the example
units realis a common choice for ReaxFF (time in fs). Many published ReaxFF workflows usereal, but the correct choice depends on the parameterization and your conventions.- Timestep:
0.25 fsmay be fine for moderate temperatures, but for high-temperature ReaxFF (especially with H present) it is common to reduce to `0.1 fs` (or even0.05 fsif needed). A quick sanity check is a short NVE segment to verify total-energy drift before running long NVT/NPT. atom_style chargeis used because ReaxFF and QEq require per-atom charges.pair_style reaxff NULLuses default ReaxFF control settings. If you have a ReaxFF control file, replaceNULLwith its filename.pair_coeff * * ffield.reax C H O:- The trailing symbols define the element mapping for LAMMPS atom types (type 1->C, type 2->H, type 3->O in this example). Adjust to match your data file.
fix qeq/reaxff ... reaxffuses QEq parameters extracted from the ReaxFF force field file.
Sanity checks (recommended before long runs)
- Short NVE stability check (no thermostat/barostat)
- Run 1–5 ps NVE and check that
etotaldrift is reasonable (and that the run does not blow up).
Example (units real):
- If it blows up: reduce timestep (e.g. 0.25 fs → 0.1 fs → 0.05 fs), check the initial geometry, and ensure QEq converges.
- QEq convergence
- If QEq hits max iterations often, consider better initial charges, looser timestep, or
maxiter(see LAMMPSfix qeq/reaxff).
Optional: species analysis
If the user wants reaction product tracking, add fix reaxff/species (see references/reaxff-workflow.md). This writes time series counts of detected molecular species using bond-order cutoffs.
Output checklist
After a run, report at least:
- executed command
- input script path
- data file path
- ffield path and element mapping used
- whether QEq was enabled and with which settings
- main log path (
log.lammps) - trajectory/species output paths (if any)
References
- pair_style reaxff: https://docs.lammps.org/pair_reaxff.html
- fix qeq/reaxff: https://docs.lammps.org/fix_qeq_reaxff.html
- fix reaxff/species: https://docs.lammps.org/fix_reaxff_species.html
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmolecular-dynamics/lammps-reaxff/SKILL.md
Popularity
- Repository stars
- 118
- Repository forks
- 24
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jinzhezenggroup/computational-chemistry-agent-skills/lammps-reaxff)