md-analysis-planner
БесплатноЗапускает вложенные скриптыНе проверенPlan molecular dynamics post-processing for materials simulations, including RDF, MSD and diffusion, VACF/VDOS, coordination numbers, bond-angle…
Об этом скилле
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 |
equilibration_checks |
Standard pre-fit equilibration checklist |
pbc_handling |
unwrap_needed, minimum_action, format_note |
warnings |
Safety-critical caveats and blockers |
Status values
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).
Default (non-JSON) output
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.
Workflow
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
Error Handling
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).
Limitations
This skill plans analysis and prerequisites; it does not parse large trajectories directly.
Verification checklist
Do not trust trajectory-derived results until each applicable item below is recorded against the planner's own output:
- Ran
scripts/md_analysis_planner.pyand confirmed noanalysis_planentry isblockedorneeds time axis; record anyneeds reviewgoal and how its custom analysis was resolved. - Confirmed every item in the planner's
required_datalist is actually present in the trajectory (e.g.velocitiesfor VACF/VDOS,stress or virial+strain historyfor stress-strain) before running the corresponding analysis. - For diffusion/MSD: recorded the log-log MSD-vs-time slope and confirmed it is ~1 (diffusive regime) over the fit window, excluding ballistic/sub-diffusive transients, before quoting D = lim MSD/(2dt).
- For diffusion/MSD: assessed whether a hydrodynamic finite-size correction is applicable. For isotropic bulk fluids in 3D periodic cubic cells, record L, T and shear viscosity eta if applying Yeh-Hummer (D_0 = D_PBC + k_BTxi/(6pieta*L), xi~=2.837). Report the measured D_PBC, the correction and its assumptions separately. Do not apply this formula automatically to solids, confined or anisotropic systems, non-cubic cells or ballistic trajectories.
- For any displacement-based analysis when
pbc_handling.unwrap_neededis true: confirmed positions were unwrapped usingcell+image flagsbefore computing displacements (not raw wrapped coordinates). - Worked through the planner's
equilibration_checks: discarded the startup transient, confirmed temperature/pressure plateaus, and compared first-half vs second-half property estimates before any transport/thermodynamic fit. - Reported an uncertainty from block averaging (or independent trajectories) for every quoted transport/thermodynamic property, not a single-window point value.
Common pitfalls & rationalizations
| 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 ballist |
Установить md-analysis-planner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashWriteGrepGlobВложенные файлы
FAQ
Что делает скилл md-analysis-planner?
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.
Как установить скилл md-analysis-planner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл md-analysis-planner запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic