ReacNetGenerator
10-second quickstart
- Run a standard LAMMPS dump workflow:
uvx --refresh --from reacnet-md-tools rng-pipeline ...
- Analyze existing outputs (no rerun):
uvx --refresh --from reacnet-md-tools rng-query ...
If you need full official flags (e.g. --cell, --nopbc, --use-ase, --miso, HMM matrices), use native:
uvx --refresh --from reacnetgenerator reacnetgenerator ...
What this skill is for
Use this skill for reactive MD post-processing when the user wants to:
- run ReacNetGenerator on
bond,dump,xyz, orextxyztrajectories - handle common LAMMPS trajectory issues before running analysis
- choose between a high-level wrapper (
reacnet-md-tools) and the nativereacnetgeneratorCLI - inspect generated
.reactionabcd/.speciesoutputs after a run
References (read only when needed)
Read only what is relevant:
- If the user asks about official flags or default values: references/cli.md
- If the user asks about PBC/cell/
--nopbcor input-type choice: references/pbc-and-inputs.md - If the user wants copy-paste commands: references/examples.md
Tool-selection rule
Choose the narrowest tool that solves the user’s request:
- Use
rng-pipelineby default for standard LAMMPS dump workflows. - Use native
reacnetgeneratorwhen the user needs official low-level flags not exposed by the wrapper. - Use
rng-querywhen the user already has.reactionabcd/.speciesoutputs and wants analysis rather than rerunning. - Use
rng-webapponly when the user explicitly wants an interactive local browser UI.
Ask only for the missing inputs
Usually you only need:
- trajectory path(s)
- input type:
bond | dump | xyz | extxyzif not obvious - atom names for
-a/--atomnameunless they can be inferred from a LAMMPS data file - whether the run should be treated as periodic, only if cell information is missing or ambiguous
Do not ask unnecessary questions when the trajectory already contains enough information.
Default execution policy
Preferred default: wrapper CLIs (reacnet-md-tools)
Use reacnet-md-tools for routine runs because it is safer and more agent-friendly:
- handles standard LAMMPS dump workflows
- can infer atom names from nearby
.datafiles - writes outputs into a predictable
out/<basename>/directory - reduces manual CLI assembly errors
When running the wrapper from an agent, prefer uvx so the latest published version is resolved automatically:
uvx --refresh --from reacnet-md-tools rng-pipeline --help
uvx --refresh --from reacnet-md-tools rng-query --help
Fallback: native reacnetgenerator
Use native reacnetgenerator when the user explicitly needs official flags such as:
--miso--use-ase--ase-cutoff-mult--ase-pair-cutoffs--nopbc--cell-n/--nproc-s/--selectatoms--matrixa--matrixb--urls
If using native CLI, follow the official flag semantics in references/cli.md.
Decision rules
Input type
- If the file clearly looks like a LAMMPS dump (
ITEM:blocks), treat it asdump. - If the input is a bond trajectory such as
bonds.reaxc, treat it asbond/lammpsbondfile. - If the input is
.xyz, treat it asxyzunless it is explicitlyextxyz.
PBC / cell
Read references/pbc-and-inputs.md when choosing --cell or --nopbc.
Short version:
- For LAMMPS dump/lammpstrj with valid
BOX BOUNDS, do not ask for--cell. - For XYZ without cell info, ask whether the system should be treated as periodic.
- Use
--nopbconly when the run is truly non-periodic, already unwrapped/reconstructed, or lacks meaningful periodic cell semantics.
HMM
- For a quick first pass, use
--nohmmunless the user explicitly wants HMM behavior. - If the user asks for more faithful / publication-style treatment and knows what HMM means here, allow HMM by omitting
--nohmm.
Post-analysis rule
If the user already has outputs such as:
.reactionabcd.species- generated HTML / SVG / JSON reports
prefer post-analysis over rerunning. Use rng-query first unless the user specifically wants the raw files opened or a browser UI.
Output expectations
For normal runs, make outputs predictable and easy to inspect:
run.log- generated
*.html,*.svg,*.json,*.species,*.reaction* summary.mdif using the wrapper workflow
Working style
- Prefer non-interactive commands unless you truly have a TTY.
- Prefer explicit paths over implicit discovery when multiple candidate files exist.
- Stop and ask if atom-type inference is ambiguous.
- Do not invent unsupported flags; use the official CLI definitions from references/cli.md.
Quick references
- Official CLI coverage: references/cli.md
- Common recipes: references/examples.md
- PBC and input decisions: references/pbc-and-inputs.md