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.
Ships in full. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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 these fields (JSON under results):
| Field | Description |
|---|---|
analysis_plan | One entry per goal: goal, method, and status |
required_data | Sorted, de-duplicated data needed across all goals |
equilibration_checks | Standard pre-fit equilibration checklist |
pbc_handling | unwrap_needed, minimum_action, format_note |
warnings | Safety-critical caveats and blockers |
status is one of, from most to least severe: blocked > needs time axis >
needs review > ready. A more-severe status is never demoted by a less-severe
one. For example, a VACF/VDOS goal with no stored velocities reports blocked
even when the timestep is also missing (both warnings are still emitted).
Without --json the script prints the plan lines, a Required data: list, a
one-line PBC: note, and a Warnings: section (also mirrored to stderr) so the
safety-critical caveats are visible even when stdout is piped.
python3 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. The script exits with code 2 and a message on
stderr for invalid input (empty system, no goals, non-positive or non-finite
timestep, or inputs exceeding the size caps below).
This skill plans analysis and prerequisites; it does not parse large trajectories directly.
Do not trust trajectory-derived results until each applicable item below is recorded against the planner's own output:
scripts/md_analysis_planner.py and confirmed no analysis_plan entry is blocked or needs time axis; record any needs review goal and how its custom analysis was resolved.required_data list is actually present in the trajectory (e.g. velocities for VACF/VDOS, stress or virial + strain history for stress-strain) before running the corresponding analysis.pbc_handling.unwrap_needed is true: confirmed positions were unwrapped using cell + image flags before computing displacements (not raw wrapped coordinates).equilibration_checks: discarded the startup transient, confirmed temperature/pressure plateaus, and compared first-half vs second-half property estimates before any transport/thermodynamic fit.| Tempting shortcut | Why it's wrong / what to do |
|---|---|
| "MSD vs time looks straight, so it's diffusive — just fit a line." | A straight-looking MSD can still include ballistic/sub-diffusive transients. Confirm the log-log slope is ~1 over the fit window first, then fit D = lim MSD/(2dt). |
| "D from the simulation is the diffusion coefficient." | Assess size dependence and report D_PBC. The Yeh-Hummer 1/L hydrodynamic correction applies under bulk-fluid, 3D periodic cubic-cell assumptions; justify those assumptions and the viscosity before separately reporting a corrected D_0. |
| "Positions are in the dump, so MSD is fine." | Wrapped coordinates make atoms jump across the box and corrupt displacements. When unwrap_needed is true, unwrap using cell + image flags before any displacement analysis. |
| "No velocities stored, but I can get VACF/VDOS from positions." | The planner marks VACF/VDOS blocked without velocities for a reason. A finite-difference velocity estimate must be explicitly justified (frame spacing, aliasing); otherwise the result is unreliable. |
| "The run finished, so I can fit transport properties on the whole trajectory." | Run completion is not equilibration. Discard the startup transient and verify temperature/pressure plateaus (the equilibration_checks) before fitting. |
| "One window gave a clean number, no need for error bars." | A single window hides correlation-driven variance. Use block averaging or independent trajectories so every transport/thermodynamic value carries an uncertainty. |
Inputs are scalar CLI values and booleans only. plan_md_analysis validates and
bounds every field before use; any violation raises ValueError, which main
catches to print a message on stderr and exit with code 2:
system must be non-empty (after stripping) and at most 256 characters.trajectory_format at most 256 characters.timestep_fs, if given, must be a positive, finite number (math.isfinite
and > 0).Goals are not allowlisted: an unrecognized goal is not rejected but is reported
with status needs review and an "unknown goal" warning. The --has-velocities,
--has-stress, and --unwrap-needed flags are plain booleans and need no
validation.
The script reads and writes no files; all I/O is stdin/args -> stdout (plain text or JSON), with warnings additionally mirrored to stderr. It takes no path arguments and opens no trajectory or output files, so there is no filesystem sandboxing concern. There are no per-file size limits because no files are read; input size is instead capped by the field/goal limits above.
Frontmatter allowed-tools is Read, Bash, Write, Grep, Glob:
Bash is used only to run the bundled scripts/md_analysis_planner.py.Read, Write, Grep, and Glob are used only to inspect, edit, and search
this skill's own files (the script, references, and SKILL.md) when authoring
analysis plans; they are not used to touch trajectory data.eval, exec, os.system, or dynamic imports.argparse and computes a plan in-process.json.dumps (or deterministic plain
text), never interpolated shell.MAX_GOALS = 64, MAX_SYSTEM_LEN = 256,
MAX_FIELD_LEN = 256) bound the work so a planning helper never materializes
pathological input.For a final readiness explanation from trusted, input-verified tool JSON, use the deterministic explanation renderer. A blocked VACF plan means readiness is false; the explanation and boolean must agree. Null means unresolved, and a ready plan does not validate a computed material property.
references/md_analysis_checks.md for analysis prerequisites and failure modes.v1.2.3 (2026-10-19): Limit finite-size diffusion corrections to their justified physical regime.
1.2.0: Add deterministic script_checks to all three eval cases that pin the
exact planner output (statuses, sorted required_data, PBC note, and the
specific diffusive-regime / Yeh-Hummer / blocked-not-demoted warnings) so the
evals discriminate the skill from a from-memory baseline.
1.1.0: Fix status demotion (blocked never downgraded to needs time axis), surface warnings/required-data/PBC in non-JSON mode, add diffusive-regime and Yeh-Hummer finite-size guidance, and enforce documented input caps.
1.0.0: Initial MD analysis planning skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/full:md-analysis-plannerfrom full
npx claudepluginhub heshamfs/materials-simulation-skills --plugin full23 skills in this plugin
/benchmark-and-mms-plannerPlan 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.
/convergence-studyPerform spatial and temporal convergence analysis for solution verification — compute observed convergence orders from grid or timestep refinement studies, apply Richardson extrapolation to estimate discretization error, and calculate the Grid Convergence Index (GCI) per ASME V&V 20 standards. Use when verifying that a numerical solution converges at the expected rate, estimating the error on the finest mesh, checking whether grids are in the asymptotic range, or preparing formal verification reports, even if the user only asks "is my mesh fine enough" or "how accurate is my solution."
/differentiation-schemesSelect and apply numerical differentiation schemes for PDE and ODE discretization — generate finite-difference stencils at arbitrary order and accuracy, choose between central, upwind, compact (Pade), and spectral methods, handle boundary stencils, and estimate truncation error scaling. Use when discretizing spatial derivatives, picking a scheme for advection- or diffusion-dominated problems, building custom stencils for nonstandard operators, or comparing dispersion and dissipation properties of candidate schemes, even if the user just says "how do I approximate this derivative" or "my solution is too diffusive."
/fair-simulation-packagerCreate FAIR-minded reproducibility bundles for materials simulations by collecting input/output file inventories, hashes, units, engine versions, structure identifiers, provenance, and NOMAD/OPTIMADE/Materials Project friendly metadata. Use before publishing, sharing, archiving, or handing simulation results to another agent.
/hpc-runtime-doctorDiagnose 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 an ALREADY-SUBMITTED job failed, ran slowly, got killed, or behaved differently on a cluster than on a workstation. To author or vet a NEW submission script before running, use slurm-job-script-generator instead.
/linear-solversSelect and configure linear solvers for Ax=b systems arising in numerical simulations — choose between direct (LU, Cholesky) and iterative (CG, GMRES, BiCGSTAB, MINRES) methods, analyze sparsity patterns and matrix conditioning, recommend preconditioners (AMG, ILU, IC), apply row/column scaling, and diagnose convergence stagnation from residual histories. Use when setting up a linear solve for FEM/FVM assembly, debugging slow or stalled Krylov iterations, choosing a preconditioner for SPD or nonsymmetric systems, or investigating ill-conditioning, even if the user only says "my solver is slow" or "GMRES won't converge."
2 plugins ship this exact skill · first indexed Oct 22, 2026
Other plugins' skills for the same job