skills/simulation-workflow/md-analysis-planner/SKILL.md
Plan molecular dynamics post-processing for materials simulations, including RDF, MSD and diffusion, VACF/VDOS, coordination numbers, bond-angle distributions, stress-strain curves, equilibration detection, PBC unwrapping, and trajectory format choices. Use before writing MD analysis scripts or trusting trajectory-derived results.
npx skillsauth add HeshamFS/materials-simulation-skills md-analysis-plannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Choose the right MD trajectory analyses and prerequisites before writing post-processing code.
| Input | Description | Example |
|-------|-------------|---------|
| System | Material or molecular system | oxide glass, liquid water |
| Goals | Analysis goals | rdf,diffusion,coordination |
| Trajectory format | Dump, DCD, XYZ, H5MD, etc. | LAMMPS dump |
| Velocities | Whether velocities are stored | true |
| Stress | Whether stress/virial is stored | true |
| Unwrap needed | Whether atoms cross PBC | true |
| Timestep | fs per saved frame | 10 |
scripts/md_analysis_planner.py emits:
analysis_planrequired_dataequilibration_checkspbc_handlingwarningspython3 skills/simulation-workflow/md-analysis-planner/scripts/md_analysis_planner.py \
--system "oxide glass" \
--goals rdf,coordination,bond-angle \
--trajectory-format dump \
--unwrap-needed \
--timestep-fs 10 \
--json
If velocities, stress, or timestep information is missing, downgrade dependent analyses and report warnings.
This skill plans analysis and prerequisites; it does not parse large trajectories directly.
Bash only to run the bundled script.references/md_analysis_checks.md for analysis prerequisites and failure modes.development
Plan verification and validation campaigns for simulation codes using manufactured solutions, canonical benchmark problems, grid/time refinement, uncertainty propagation, and pass/fail acceptance criteria. Use when an agent needs to prove a solver, model, or result is trustworthy rather than only plausible.
testing
Map computational materials tasks onto workflow engines such as atomate2, jobflow, AiiDA, pyiron, or a simple one-off script. Use when deciding how to structure a reproducible campaign, DAG, restart strategy, provenance record, storage layout, or migration path from ad hoc scripts to managed workflows.
development
Triage cross-code simulation failures and propose safe retry ladders for nonconvergence, NaN/Inf, exploding energies, unstable timesteps, pressure blow-up, missing potentials, bad pseudopotentials, corrupted output, and incomplete runs. Use when an agent sees a failed or suspicious materials simulation and needs a defensible first response.
documentation
Diagnose HPC runtime and scheduler problems for materials simulations, including MPI/OpenMP/GPU layout, modules, CUDA/Kokkos hints, scratch paths, walltime, job arrays, restart strategy, scheduler portability, and resource mismatch. Use when jobs fail, run slowly, get killed, or behave differently on a cluster than on a workstation.