name: mace-md-sampling description: Use this skill for MACE-backed ASE MD sampling, thermal stability checks, trajectory generation, and trajectory-health analysis through the managed mace_md_dir remote task. allowed-tools: "get_avail_remote_task remote_submission remote_submission_batch md_trajectory_summary analyze_trajectory execute"
mace-md-sampling
Overview
Use this skill for MACE MD in dynamics_worker. MACE relaxation, single-point ranking, and NEB/path optimization stay in materials_worker; MACE dataset construction, training, and evaluation stay in ml_worker.
Quick Start
- Verify the starting structure or structure batch path from the materials workflow.
- Prepare a clean MACE MD stage with
input/and grouped controls inparams/md_params.json. - Submit with
remote_submission(task_name="mace_md_dir")for one stage, orremote_submission_batchwhen each first-level child is one complete MACE MD stage. - Inspect
status.json,stdout.log,stderr.log, andoutput/batch_summary.jsonafter execution. - Summarize trajectories with
md_trajectory_summaryoranalyze_trajectory, and write a focused script for system-specific observables.
Allowed tools
get_avail_remote_taskremote_submissionremote_submission_batchmd_trajectory_summaryanalyze_trajectoryexecute
Workflow
1. Prepare the stage layout
- Stage directory must contain
input/with ASE-readable structures. - Write grouped MD controls to
params/md_params.json; passparams={"params_path": "params/md_params.json"}toremote_submission. - Use the task catalog entry
mace_md_dir. Do not submit MACE MD throughmace_relax_dirormace_sp_dir.
stage/
input/
POSCAR or *.vasp/*.cif/*.xyz
params/
md_params.json
2. Keep MD controls grouped
- Use one
md_configobject with optionalcalculator,dynamics,thermostat,barostat, andoutputgroups. - Omitted defaults are NVT, 300 K, 1 fs, 1000 steps, Bussi thermostat, and trajectory/log every 10 steps.
- Set
dynamics.ensembletonve,nvt, ornpt; choose thermostat/barostat keys only when the method needs them. - For NPT Berendsen, set
barostat.compressibility_bar_invexplicitly.
3. Submit through managed MACE MD
- Use only
task_name="mace_md_dir"for MACE MD execution. - Managed MACE GPU tasks default to
device="auto"so exploratory jobs can still produce results when CUDA is unavailable. After completion, inspectstatus.jsonoroutput/batch_summary.jsonand report the actual device used. - Use
device="cuda"only when the user explicitly asks for GPU validation or a GPU-required production run.
4. Analyze before interpreting
- Start from run-health evidence: completion, errors, final structure, trajectory files, log files, total time, and actual device.
- Use
md_trajectory_summaryoranalyze_trajectoryfor generic frame/RDF/MSD artifacts when they match the requested observable. - Write a focused script for residence time, adsorption/desorption, reaction labels, or region-specific observables.
Method-critical defaults
- Default to
dynamics.ensemble="nvt"withthermostat.type="bussi"for generic thermal sampling unless the scientific question requires energy conservation (nve) or pressure control (npt). - Keep
calculator.default_dtype="float32"by default for MD throughput. Usefloat64only when explicitly checking numerical sensitivity. - For NPT, use only structures with a real 3D periodic cell; prefer
barostat.type="isotropic_mtk"unless anisotropic cell fluctuations are part of the question. - Keep timestep, steps, ensemble, thermostat/barostat, targets, total simulated time, dtype, device, and dispersion visible in summaries.
- Do not treat a completed short MACE MD run as converged diffusion or mechanistic evidence without a credible production window.
Output Contract
Return:
- MACE MD stage path
- staged
params/md_params.jsonpath - selected ensemble and grouped
calculator,dynamics,thermostat,barostat, andoutputcontrols work_dir_relremote_context_id,submission_hash, andreceipt_relwhen presentstatus.json,output/batch_summary.json, and trajectory/log summary paths- whether the result is production evidence or exploratory sampling
References
- Local source note:
references/mace_md_sampling_reference.md - Project runner:
catmaster/remote/gpu/mace_md.py - Stage layout:
skills/execution/remote-stage-layouts/SKILL.md#mace_md_dir