Prepares and explains LAMMPS input scripts for reactive molecular dynamics with the ReaxFF potential, including charge equilibration and ensemble choice.

LGPL-3.0-or-laterAuto-check passedResearch & Science

Install LAMMPS ReaxFF Setup

skills CLI
$ npx skills add jinzhezenggroup/computational-chemistry-agent-skills --skill lammps-reaxff -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jinzhezenggroup/computational-chemistry-agent-skills lammps-reaxff --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jinzhezenggroup/computational-chemistry-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/molecular-dynamics/lammps-reaxff .claude/skills/lammps-reaxff && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lammps-reaxff
GitHub stars
148
Token cost
~1.8k tokens
SKILL.md length
659 words
Files
3 (incl. references, assets)
Skills in repo
62
Repo updated
First seen
Licence
LGPL-3.0-or-later

At a glance

Prepares and explains LAMMPS input scripts for reactive molecular dynamics with the ReaxFF potential, including charge equilibration and ensemble choice.

  • Works in 6 steps: Confirm the ReaxFF force field file… → Confirm the structure/data file (e.g.… → Ensure the input includes charge handling → …
  • Setting up a reactive molecular dynamics run with a ReaxFF force field
  • SKILL.md covers Agent responsibilities, Minimum information to collect, Execution mode and Example: annotated NVT input…, plus 4 more sections
  • Calls uvx

What it does

The agent first confirms three inputs before writing anything: the ReaxFF force field file (an `ffield.reax.*` file), the structure data file, and the mapping from LAMMPS atom types to elements used in `pair_coeff`. It then writes an annotated `input.lammps` with `pair_style reaxff`, a charge-capable atom style and a single `fix qeq/reaxff`. It warns against using `fix property/atom q` as a stand-in for real charges.

It asks only for what is still missing: the ensemble (NVE, NVT or NPT), temperature, pressure for NPT, timestep, run length, and how LAMMPS should be launched. With internet access and `uv` it can run `uvx --from 'lammps[mpi]' lmp -in input.lammps`; on an HPC system it asks which executable and MPI command you use instead of inventing one. A workflow reference and an NVT template ship with it, and species analysis is among the diagnostics it can add.

When your agent uses it

  • Setting up a reactive molecular dynamics run with a ReaxFF force field
  • Getting a working, commented input.lammps template for a new system
  • Fixing charge equilibration or atom type mapping in an existing ReaxFF input
  • Adding species analysis to a ReaxFF simulation

Example prompts

  • “Write an NVT ReaxFF input for data.system using the force field file ffield.reax.cho.”
  • “Why does my LAMMPS ReaxFF run complain about missing charges? Check the atom style and the qeq fix.”
  • “Map atom types 1 to 3 in data.system to C, H and O in pair_coeff.”
  • “Add species analysis to the ReaxFF script I already have.”

Requirements

  • A LAMMPS build with the REAXFF package enabled
  • A ReaxFF force field file such as `ffield.reax.*`
  • `uv` and internet access for the online run mode
  • Compatibility (from SKILL.md): Requires a LAMMPS build with the REAXFF package enabled (pair_style reaxff and fix qeq/reaxff). Optional acceleration variants: reaxff/omp or reaxff/kk.

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the ReaxFF force field file (e.g. ffield.reax.*). Do not guess which file is appropriate.
  2. Confirm the structure/data file (e.g. data.system) and the atom type → element mapping needed by pair_coeff.
  3. Ensure the input includes charge handling
  4. Write the LAMMPS input script yourself; keep examples readable and annotated.
  5. When possible, validate command availability against LAMMPS docs or local lmp -h output before execution.
  6. Report clearly which command was run, which files were used, and where outputs were written.

What it can do on your machine

Read from SKILL.md and the folder at commit 5c19e75. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uvx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.lammps.org
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires a LAMMPS build with the REAXFF package enabled (pair_style reaxff and fix qeq/reaxff). Optional acceleration variants: reaxff/omp or reaxff/kk.

    From compatibility in the SKILL.md frontmatter.

Context cost

LAMMPS ReaxFF Setup loads about 1.8k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 659 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~105
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jinzhezenggroup/computational-chemistry-agent-skills at commit 5c19e75, republished under its LGPL-3.0-or-later licence (© jinzhezenggroup). 659 words, ~1,814 tokens.

Download SKILL.mdSave it as .claude/skills/lammps-reaxff/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
lammps-reaxff
description
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.
compatibility
Requires a LAMMPS build with the REAXFF package enabled (pair_style reaxff and fix qeq/reaxff). Optional acceleration variants: reaxff/omp or reaxff/kk.
license
LGPL-3.0-or-later
metadata.author
njzjz-bot
metadata.version
1.0
metadata.repository
https://www.lammps.org/
metadata.lammps_docs
https://docs.lammps.org/

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

  1. Confirm the ReaxFF force field file (e.g. ffield.reax.*). Do not guess which file is appropriate.
  2. Confirm the structure/data file (e.g. data.system) and the atom type → element mapping needed by pair_coeff.
  3. Ensure the input includes charge handling:
    • Use a charge-capable atom style, such as atom_style charge or atom_style full, and ensure charges are initialized either from the data file (with a charge column compatible with the chosen atom_style) or via explicit commands (e.g. set or equal-style variables). Do not rely on fix property/atom q as 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.
  4. Write the LAMMPS input script yourself; keep examples readable and annotated.
  5. When possible, validate command availability against LAMMPS docs or local lmp -h output before execution.
  6. 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:

bash
uvx --from 'lammps[mpi]' lmp -in input.lammps

Notes:

  • If you see error while loading shared libraries: libmpi.so..., you likely installed an MPI-linked lmp without MPI runtime libraries. Prefer uvx --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.lammps
  • mpirun -np 32 lmp_mpi -in input.lammps
  • srun lmp -in input.lammps

Example: annotated NVT input (ReaxFF + QEq)

See also assets/input.reaxff.nvt.lammps.

lammps
# --------- user knobs ---------
variable        NSTEPS      equal 200000
variable        THERMO      equal 200
variable        DUMP        equal 1000

variable        TEMP        equal 300.0
variable        TAU_T       equal 100.0

# Timestep (fs for units real). For high-T / reactive runs, 0.1 fs is often safer.
variable        DT          equal 0.25


# QEq parameters
variable        QEQ_EVERY   equal 1
variable        QEQ_TOL     equal 1.0e-6
variable        QEQ_CUTLO   equal 0.0
variable        QEQ_CUTHI   equal 10.0

units           real
boundary        p p p
atom_style      charge

read_data       data.system

neighbor        2.0 bin
neigh_modify    every 1 delay 0 check yes

# ReaxFF potential
pair_style      reaxff NULL
pair_coeff      * * ffield.reax C H O

# Charge equilibration (required for most ReaxFF parameterizations)
fix             fqeq all qeq/reaxff ${QEQ_EVERY} ${QEQ_CUTLO} ${QEQ_CUTHI} ${QEQ_TOL} reaxff
# (`reaxff` here means QEq parameters are extracted from the ReaxFF force field file.)

# Thermo and trajectory
thermo_style    custom step temp pe ke etotal press vol density
thermo          ${THERMO}

dump            1 all custom ${DUMP} traj.lammpstrj id type q x y z

# Dynamics
velocity        all create ${TEMP} 12345 mom yes rot yes dist gaussian
fix             fnvt all nvt temp ${TEMP} ${TEMP} ${TAU_T}

timestep        ${DT}
run             ${NSTEPS}
Show full SKILL.md (308 more words)Show less
Notes on the example
  • units real is a common choice for ReaxFF (time in fs). Many published ReaxFF workflows use real, but the correct choice depends on the parameterization and your conventions.
  • Timestep: 0.25 fs may be fine for moderate temperatures, but for high-temperature ReaxFF (especially with H present) it is common to reduce to 0.1 fs (or even 0.05 fs if needed). A quick sanity check is a short NVE segment to verify total-energy drift before running long NVT/NPT.
  • atom_style charge is used because ReaxFF and QEq require per-atom charges.
  • pair_style reaxff NULL uses default ReaxFF control settings. If you have a ReaxFF control file, replace NULL with 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 ... reaxff uses QEq parameters extracted from the ReaxFF force field file.
  1. Short NVE stability check (no thermostat/barostat)
  • Run 1–5 ps NVE and check that etotal drift is reasonable (and that the run does not blow up).

Example (units real):

lammps
reset_timestep  0
unfix           fnvt
fix             fnve all nve

# high-T ReaxFF often needs a smaller timestep
# (common choices: 0.1 fs; if needed 0.05 fs)
timestep        0.1
run             2000
  • 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.
  1. QEq convergence
  • If QEq hits max iterations often, consider better initial charges, looser timestep, or maxiter (see LAMMPS fix 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

© jinzhezenggroup, LGPL-3.0-or-later. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references, assets) in molecular-dynamics/lammps-reaxff of jinzhezenggroup/computational-chemistry-agent-skills.

  • SKILL.md
  • assets/input.reaxff.nvt.lammps
  • references/reaxff-workflow.md

Open the folder on GitHubat commit 5c19e75

Compare with similar skills

LAMMPS ReaxFF Setup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

LAMMPS ReaxFF Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
LAMMPS ReaxFF Setup this skilljinzhezenggroup/computational-chemistry-agent-skills148—~1.8kAutomated safety check: PassLGPL-3.0-or-later
AstropyzLanqing/codex-claude-academic-skills4.7k13 repos~2.9kAutomated safety check: PassBSD-3-Clause
PymatgenzLanqing/codex-claude-academic-skills4.7k11 repos~5kAutomated safety check: PassMIT
Cantera Ignition DelayK-Dense-AI/scientific-agent-skills48k1 repos~2.2kAutomated safety check: PassMIT
Weathertrpc-group/trpc-agent-go1.9k8 repos~591Automated safety check: PassApache-2.0
Pymol VisualizationChatMol/ChatMol373—~1.2kAutomated safety check: PassMIT

Similar skills

  • Astropy

    zLanqing/codex-claude-academic-skills

    Comprehensive Python library for astronomy and astrophysics.

    4.7k GitHub starsUsed in 13 repos~2.9k tokens
    Research & ScienceAuto-check passed
  • Pymatgen

    zLanqing/codex-claude-academic-skills

    Materials science toolkit. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 11 repos~5k tokens
    Research & ScienceAuto-check passed
  • Cantera Ignition Delay

    K-Dense-AI/scientific-agent-skills

    Runs Cantera constant-volume or constant-pressure ignition simulations and reports temperature-based ignition delay with mechanism provenance and checks.

    48k GitHub starsUsed in 1 repo~2.2k tokens
    Research & ScienceAuto-check passed
  • Weather

    trpc-group/trpc-agent-go

    Get current weather and forecasts via wttr.in or Open-Meteo.

    1.9k GitHub starsUsed in 8 repos~591 tokens
    Research & ScienceAuto-check passed
  • Pymol Visualization

    ChatMol/ChatMol

    Generate publication-quality molecular visualization images using PyMOL.

    373 GitHub stars~1.2k tokensUpdated 6 mo ago
    Research & ScienceAuto-check passed
  • Review

    Muuuun/luxas

    Write domain-authentic review articles that synthesize rather than stack.

    1.2k GitHub stars~2.1k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed

More from jinzhezenggroup/computational-chemistry-agent-skills

All 62 skills in this repo
  • Quantum ESPRESSO DFT Task Builder

    jinzhezenggroup/computational-chemistry-agent-skills

    Turns a user-supplied atomic structure and DFT settings into a runnable Quantum ESPRESSO input file, stopping short of submitting the job.

    148 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • DP-GEN Simplify Workflow

    jinzhezenggroup/computational-chemistry-agent-skills

    Prepares, validates and runs DP-GEN simplify jobs that thin out repeated or redundant DeepMD datasets, generating param.json and machine.json for local or scheduler runs.

    148 GitHub stars~2.7k tokensUpdated 2 days ago
    Auto-check passed
  • LAMMPS with DeePMD-kit

    jinzhezenggroup/computational-chemistry-agent-skills

    Prepares and runs molecular dynamics simulations in LAMMPS with a DeePMD machine-learning potential, writing the input script and choosing NVE, NVT or NPT.

    148 GitHub stars~2.8k tokensUpdated 2 days ago
    Auto-check passed
  • RDKit Conformer Generator

    jinzhezenggroup/computational-chemistry-agent-skills

    Generates 3D molecular conformers from SMILES strings or files with RDKit, keeps the lowest-energy one per molecule, and falls back to 2D coordinates when embedding fails.

    148 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • RDKit Descriptors and Fingerprints

    jinzhezenggroup/computational-chemistry-agent-skills

    Computes RDKit physicochemical descriptors and molecular fingerprints from SMILES through a uv-run CLI script that skips and logs invalid molecules.

    148 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Unimol

    jinzhezenggroup/computational-chemistry-agent-skills

    A standardized CLI wrapper for Uni-Mol molecular ML workflows that handles representation extraction (embeddings), model training (regression/classification), and property prediction with built-in…

    148 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed

Questions about LAMMPS ReaxFF Setup

What does LAMMPS ReaxFF Setup do?

Prepares and explains LAMMPS input scripts for reactive molecular dynamics with the ReaxFF potential, including charge equilibration and ensemble choice. *` file), the structure data file, and the mapping from LAMMPS atom types to elements used in `pair_coeff`.lammps` with `pair_style reaxff`, a charge-capable atom style and a single `fix qeq/reaxff`.

When should I use LAMMPS ReaxFF Setup?

LAMMPS ReaxFF Setup fits situations like: setting up a reactive molecular dynamics run with a ReaxFF force field; getting a working, commented input.lammps template for a new system; fixing charge equilibration or atom type mapping in an existing ReaxFF input; adding species analysis to a ReaxFF simulation.

How do I install LAMMPS ReaxFF Setup in Claude Code?

Run `npx skills add jinzhezenggroup/computational-chemistry-agent-skills --skill lammps-reaxff -a claude-code`. Or copy the skill folder (molecular-dynamics/lammps-reaxff in jinzhezenggroup/computational-chemistry-agent-skills) into .claude/skills/lammps-reaxff in your project. Claude Code loads it when a task matches its description.

How do I install LAMMPS ReaxFF Setup in Codex?

Run `npx skills add jinzhezenggroup/computational-chemistry-agent-skills --skill lammps-reaxff -a codex`. Or copy the skill folder (molecular-dynamics/lammps-reaxff in jinzhezenggroup/computational-chemistry-agent-skills) into .agents/skills/lammps-reaxff in your project. Codex loads it when a task matches its description.

Can I use LAMMPS ReaxFF Setup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jinzhezenggroup/computational-chemistry-agent-skills --skill lammps-reaxff -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lammps-reaxff, .gemini/skills/lammps-reaxff, .github/skills/lammps-reaxff and .opencode/skills/lammps-reaxff in your project.

What does LAMMPS ReaxFF Setup need to run?

Going by SKILL.md and its folder, LAMMPS ReaxFF Setup needs the command-line tools its instructions call (uvx). Our summary lists: A LAMMPS build with the REAXFF package enabled; A ReaxFF force field file such as `ffield.reax.*`; `uv` and internet access for the online run mode. Compatibility (from SKILL.md): Requires a LAMMPS build with the REAXFF package enabled (pair_style reaxff and fix qeq/reaxff). Optional acceleration variants: reaxff/omp or reaxff/kk..

Does LAMMPS ReaxFF Setup access the network?

SKILL.md names 2 domains. As links in the text: docs.lammps.org and github.com. This is read from the text; nothing was executed.

Is LAMMPS ReaxFF Setup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does LAMMPS ReaxFF Setup use?

LAMMPS ReaxFF Setup is published under the LGPL-3.0-or-later licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does LAMMPS ReaxFF Setup use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 440 tokens, read only when the agent opens those files.

What are the alternatives to LAMMPS ReaxFF Setup?

Skills that share tags, products or a category with LAMMPS ReaxFF Setup: Astropy (zLanqing/codex-claude-academic-skills, 4.7k stars), Pymatgen (zLanqing/codex-claude-academic-skills, 4.7k stars), Cantera Ignition Delay (K-Dense-AI/scientific-agent-skills, 48k stars) and Weather (trpc-group/trpc-agent-go, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains LAMMPS ReaxFF Setup?

jinzhezenggroup (a GitHub organization) maintains it in jinzhezenggroup/computational-chemistry-agent-skills, which has 148 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 9, 2026.

Source: jinzhezenggroup/computational-chemistry-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.