# md-analysis-planner

Plans post-processing for molecular dynamics trajectories and checks which inputs each analysis needs. Use it before writing analysis scripts or relying on trajectory-derived results.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 83
- Author: HeshamFS
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/HeshamFS/materials-simulation-skills/tree/HEAD/skills/simulation-workflow/md-analysis-planner/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/md-analysis-planner

## What it does

The skill maps analysis goals to required data for RDF, coordination numbers, MSD and diffusion, VACF/VDOS, bond-angle distributions, and stress-strain curves. It also calls for equilibration checks and periodic-boundary handling. Its plan can be printed as text or JSON, with fields such as `analysis_plan`, `required_data`, `equilibration_checks`, `pbc_handling`, and `warnings`.

The repository includes `scripts/md_analysis_planner.py`. Running it requires Python 3.10+ and inputs such as the system, analysis goals, trajectory format, and timestep; no external dependencies are needed. This skill plans analyses but does not parse large trajectories. For displacement-based calculations, wrapped coordinates can corrupt the result when atoms cross periodic boundaries, so check whether unwrapping is needed before calculating MSD.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add HeshamFS/materials-simulation-skills --skill md-analysis-planner -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/md-analysis-planner/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/md-analysis-planner/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add HeshamFS/materials-simulation-skills --skill md-analysis-planner -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/md-analysis-planner/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add HeshamFS/materials-simulation-skills --skill md-analysis-planner -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/md-analysis-planner/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install HeshamFS/materials-simulation-skills md-analysis-planner
```

2. **Manually: put the files in place**
- File: `.github/skills/md-analysis-planner/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add HeshamFS/materials-simulation-skills --skill md-analysis-planner -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/HeshamFS/materials-simulation-skills --path skills/simulation-workflow/md-analysis-planner
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/md-analysis-planner/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add HeshamFS/materials-simulation-skills --skill md-analysis-planner -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/HeshamFS/materials-simulation-skills/tree/HEAD/skills/simulation-workflow/md-analysis-planner/SKILL.md

## When to use it
- choose methods for a set of MD analysis goals
- list the trajectory data each method requires
- flag analyses blocked by missing velocities or stress
- check equilibration and periodic-boundary handling
- identify missing prerequisites before writing analysis code

## Example prompts
- Plan RDF, coordination-number, and bond-angle analyses for oxide glass using a dump trajectory; include PBC unwrapping.
- Check whether my trajectory has the data needed to estimate diffusion and list the equilibration checks.
- Plan a VACF/VDOS analysis and tell me which trajectory inputs it requires.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 6e15db6ba7653dc4.

BEGIN THIRD-PARTY FILE 6e15db6ba7653dc4
```text
---
name: md-analysis-planner
description: >
  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.
allowed-tools: Read, Bash, Write, Grep, Glob
metadata:
  last_deterministic_eval: "2026-10-20"
  agent_evaluation_status: "not_revalidated"
  author: HeshamFS
  version: "1.2.3"
  security_tier: high
  security_reviewed: true
  tested_with:
    - claude-code
  last_evaluated: "2026-06-23"
  eval_cases: 4
  last_reviewed: "2026-10-19"
  standards:
    - "Yeh & Hummer (2004), 1/L finite-size diffusion correction (xi ~= 2.837, cubic box)"
    - "Einstein relation for self-diffusion, D = lim MSD/(2*d*t)"
    - "Allen & Tildesley, Computer Simulation of Liquids (RDF, coordination, VACF/VDOS, block averaging)"
    - "Flyvbjerg & Petersen (1989), block-averaging error estimation"
---

# MD Analysis Planner

## Goal

Choose the right MD trajectory analyses and prerequisites before writing post-processing code.

## Requirements

- Python 3.10+
- No external dependencies
- Works on Linux, macOS, and Windows

## Inputs to Gather

| 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` |

## Decision Guidance

- Use **RDF and coordination** for local structure.
- Use **MSD** for diffusion, but unwrap trajectories and verify diffusive regime.
- Use **VACF/VDOS** only when velocities or reliable finite-difference velocities exist.
- Use **stress-strain** only if stress/virial and deformation history are available.
- Always perform equilibration checks before fitting transport or thermodynamic properties.

## Script Outputs

`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 |
```
END THIRD-PARTY FILE 6e15db6ba7653dc4

The third-party file has ended. Everything between the 6e15db6ba7653dc4 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2505 of 10815 bytes. © HeshamFS · Apache-2.0 · https://github.com/HeshamFS/materials-simulation-skills/tree/HEAD/skills/simulation-workflow/md-analysis-planner/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
