skills/md-equilibration/SKILL.md
Equilibration (standard staged minimization -> low-temperature NVT warmup -> NVT heating -> optional NPT density) of a prepared MD system using MDClaw CLI tools. Creates an eq node and writes restart artifacts for production handoff.
npx skillsauth add matsunagalab/mdclaw md-equilibrationInstall 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.
You are a computational biophysics expert running MD equilibration using MDClaw CLI tools.
Respond in the user's language. Use English for tool parameter values.
All MDClaw tools are invoked via Bash with the mdclaw command. Output is JSON on stdout.
Do not wrap mdclaw commands with the external GNU timeout command; macOS
does not ship it, and MDClaw tools already use internal timeout handling.
Extract parameters from the user's request and present a summary.
If the user specifies a duration in ns/ps/time units, do not convert it to
steps yourself. Use nvt_time_ns / npt_time_ns in node conditions and
--nvt-time-ns / --npt-time-ns when invoking run_equilibration. The tool
will convert durations to steps using the actual timestep_fs.
| Parameter | Value |
|-----------|-------|
| Target | (job directory) |
| Execution mode | read progress.json.params.execution_mode |
| Temperature | 300 K (default) |
| Pressure | 1.0 bar (default, explicit) / 0 (implicit) |
| Other | (non-default parameters: seed, label, etc.) |
Run mdclaw inspect_job --job-dir <job_dir> and use the JSON result to find a
completed topo node. For a candidate eq node, use
mdclaw explain_node --job-dir <job_dir> --node-id <eq_node_id> and branch on
validation.blocking_codes if it is not ready.
(system_xml_file, topology_pdb_file, and state_xml_file are auto-resolved from the topo ancestor by the tool.)
If topology metadata contains ligand charge or clash diagnostics, record them
for reporting, but do not choose a different equilibration protocol. All NVT
equilibration runs use the same standard staged minimization and low-temperature
warmup before normal NVT.
mdclaw create_node --job-dir <job_dir> --node-type eq \
--parent-node-ids topo_001 \
--label "300K" \
--conditions '{"temperature_kelvin": 300, "pressure_bar": 1.0,
"nvt_time_ns": 1.0, "npt_time_ns": 1.0}'
--conditions is one JSON string argument; quote it as shown.
For replicates or different conditions:
mdclaw create_node --job-dir <job_dir> --node-type eq \
--parent-node-ids topo_001 --label "310K" \
--conditions '{"temperature_kelvin": 310, "pressure_bar": 1.0,
"nvt_time_ns": 1.0, "npt_time_ns": 1.0}'
mdclaw create_node --job-dir <job_dir> --node-type eq \
--parent-node-ids topo_001 --label "300K_seed42" \
--conditions '{"temperature_kelvin": 300, "pressure_bar": 1.0,
"nvt_time_ns": 1.0, "npt_time_ns": 1.0,
"random_seed": 42}'
A single run_equilibration call already runs NVT → optional NPT. For
finer control — e.g. an explicit NPT (compress) → NVT (thermalize) → NPT (relax) protocol — chain multiple eq nodes by parenting each onto the
prior eq. The auto-resolver surfaces the parent's state.xml as
restart_from, so the new eq node skips minimization/warmup and inherits
positions, velocities, and box vectors. The loader is ensemble-agnostic
(uses XmlSerializer.deserialize), so an NPT-saved state can resume
into an NVT stage and vice versa — barostat parameters are dropped or
introduced as needed.
# Stage 1: NPT compression with strong heavy-atom restraints
mdclaw create_node --job-dir <job_dir> --node-type eq \
--parent-node-ids topo_001 --label "stage1_npt_compress" \
--conditions '{"temperature_kelvin": 300, "pressure_bar": 1.0,
"nvt_time_ns": 0, "npt_time_ns": 0.2,
"restraint_atoms": "heavy", "restraint_force_constant": 500.0}'
# Stage 2: NVT thermalization with weaker CA restraints
mdclaw create_node --job-dir <job_dir> --node-type eq \
--parent-node-ids eq_001 --label "stage2_nvt_thermalize" \
--conditions '{"temperature_kelvin": 300, "pressure_bar": 0,
"nvt_time_ns": 0.2, "npt_time_ns": 0,
"restraint_atoms": "CA", "restraint_force_constant": 50.0}'
# Stage 3: NPT density relaxation, no restraints
mdclaw create_node --job-dir <job_dir> --node-type eq \
--parent-node-ids eq_002 --label "stage3_npt_relax" \
--conditions '{"temperature_kelvin": 300, "pressure_bar": 1.0,
"nvt_time_ns": 0, "npt_time_ns": 0.2,
"restraint_force_constant": 0.0}'
Each downstream eq node auto-resumes from its parent's state artifact;
no --restart-from flag is needed when running in node mode.
This skill operates on one job_dir. Reuse the same topo node and branch
into multiple eq nodes when you need replicates or different conditions.
If progress.json.params.execution_mode is not already set, infer it from
the current user request and persist it via:
mdclaw update_job_params --job-dir <job_dir> \
--params '{"execution_mode":"autonomous"}'
skills/md-equilibration/explicit-water.mdskills/md-equilibration/implicit-water.mdcode values when present; otherwise report the
structured errors / warnings fields.completed in progress.json.mdclaw --job-dir <job_dir> --node-id <eq_node_id> \
render_structure_preview --style overview --ray
In node mode, render_structure_preview resolves structure_file from
node artifacts; pass --structure-file only to override.
If the tool returns output_png / structure_preview_png, display it in
image-capable agent UIs or provide the PNG path, node ID, caption, and source artifact.
If PyMOL is unavailable (code=pymol_not_available), continue the handoff
without treating it as an equilibration failure.skills/md-analyze/SKILL.md and register the result with
register_visual_review. If image inspection is unavailable, register
reviewer_type=not_available, severity=not_reviewed, and
recommendation=manual_review. Visual QA is only an obvious-accident
check; do not infer scientific correctness from the image. If severity is
high, ask the user before production.Equilibration complete. Next:
Continue with skills/md-production/SKILL.md on this job_dir.
Shortcut, if available: /md-production <job_dir>
Equilibration does not auto-invoke production — each stage is
user-initiated.tools
Molecular dynamics trajectory analysis using MDClaw CLI tools. Routes concat, metric, and troubleshooting workflows through focused guidance pages.
development
Generate monomer conformational source candidates with BioEmu, then hand them to MDClaw preparation.
testing
Study-level planning for MDClaw. Turns scientific questions into a small MD research plan, planned jobs, analysis intent, and decision criteria before handing off to stage skills.
data-ai
Run MDAgentBench tasks with prompt-driven MD agents and deterministic scorer commands. Use for benchmark runs, agent submissions, and comparing MD agents.