/mdclaw:md-analyzefrom mdclaw
Analyzes molecular dynamics trajectories using MDClaw CLI tools. Routes concat, metric, and troubleshooting workflows through focused guidance pages.
Ships in mdclaw. 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.
For display-only requests (trajectory playback, interactive rotation, or a
still image), follow skills/common/visual-qa.md and stop after display;
reuse display-ready artifacts. If PBC correction, subsampling, or requested
fitting is needed, follow its trajectory-display procedure for derived artifacts.
Follow skills/common/preamble.md, skills/common/run-loop.md (the canonical
node loop), and skills/common/tool-output.md for error handling.
Use mdclaw inspect_job --job-dir <job_dir> to confirm the job state
and identify the production or analysis node(s) that answer the analysis
question.
Run this skill when the current request directly asks for analysis, or when a
production handoff still needs analysis or a scientific answer. In harnesses
with slash commands, /md-analyze is the shortcut.
If the job belongs to a study with study_plan.json, use the plan's analysis
list as the starting point for metric selection. Treat it as scientific intent,
not as a brittle execution contract: missing or incomplete plan fields should
not block normal analysis.
Follow the canonical loop in skills/common/run-loop.md, specialized here as:
inspect_job to confirm the job state and find the production/analysis
node(s) that answer the question.skills/md-analyze/concat.md.analyze node per metric and run the tool with --job-dir /
--node-id: skills/md-analyze/metrics.md.For an analysis-only request, report the requested node results and stop. For a scientific-answer request:
inspect_job to verify those prod and analyze nodes are completed;
do not use the evidence report's status as the completion check.generate_md_report --study-dir <study_dir> (--plan-id for a selected
non-active plan). If report_selection_required, ask which targets to combine
as replicas, separate, or omit; do not guess even in autonomous mode. Pass the
selected {job_dir,node_id,label} objects via --targets and --grouping.
Synthesize the actual results against the plan's decision criteria and record
the conclusion with record_study_log --record-type decision.Read by task:
skills/md-report/SKILL.md.skills/md-analyze/collective-variables.mdrun_sst2) runs: MBAR reweighting of all rungs, the dF(t) sampling verdict,
weight convergence verdict, per-frame weights and the fixed-weight handoff:
skills/md-analyze/tempering.md (run it before any metric on SST2 data)run_metadynamics) walkers: dF between two states versus
time, one number and one figure, with the verdict:
skills/md-analyze/metadynamics.mdwe_resample policy nodes, segments
prod_<scheme>_r<round>_w<replica>): rates, verdicts, the convergence
figure (we_convergence.png: the rate had the run stopped after each
round, judged over the second half like analyze_metadynamics) and weighted
distributions come from analyze_we, skills/md-we/kinetics.md; frames of
a weighted ensemble are averaged with their walker weights
(we_frames.csv), never as equal framescode/hints. Do not silently switch atom selections; ask the
user if the requested selection does not match the topology.Confirm these fields before running analysis:
| Parameter | Value |
|---|---|
| Target | job directory |
| Analysis data scope | segment, production_chain, or comparison (alchemical exists for fep parents; that is md-fep's analyze_fep, not this skill) |
| Analysis subjects | optional for segment/production_chain; for trajectory comparisons declare two (with comparison_mapping) — create_node accepts a bare comparison scope, the metric tool then refuses without them |
| Comparison mapping | required for different chains/topologies; initial types: residue_number, atom_selection |
| Validation | require analysis_data_scope; comparison is binary/pairwise (two analyze parents; when declared, two unique subject labels) |
| Leaf prod node | requested node or deepest continuation leaf |
| Atom selection | mdtraj selection, default "protein" |
| Region annotation | source and residue mapping, when comparing named biological regions |
| Stride | integer, default 1 |
For comparisons between two branches in the same job DAG, create the node with
explicit subjects and mapping. For different job_dirs, compare the separate
analysis artifacts during study-level synthesis instead.
production_chain analyze nodes.analysis_subjects and comparison_mapping on the comparison node
itself, not on the parent nodes. The resolver still exposes multi-parent
inputs as branches_input for tool compatibility.residue_number mapping: each reference is subject_label:residue_id, where
residue_id is a string, not a number.atom_selection mapping: selection values are mdtraj selection strings.mdclaw create_node --job-dir <job_dir> --node-type analyze \
--parent-node-ids <analyze_apo> <analyze_holo> \
--label "apo_vs_holo" \
--conditions '{"analysis_data_scope": "comparison",
"analysis_subjects": [
{"label": "apo"},
{"label": "holo"}
],
"comparison_mapping": {
"type": "residue_number",
"pairs": [["apo:10", "holo:10"]]
}}'
Create an analyze node first, then run analysis tools with both --job-dir
and --node-id.
The structure-preview and visual-review procedure is shared across all stages.
Follow skills/common/visual-qa.md when the user asks for playback, interactive
rotation, a structural snapshot, or a visual check. Do not render one on your
own judgement that an artifact "would benefit" from it — previews are large images and go unused
unless someone asked to look at them.
For residue, bond, charge, or historical-status discrepancies, follow chemistry diagnostics.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub matsunagalab/mdclaw --plugin mdclaw14 skills in this plugin
/bioemu-sampleGenerate monomer conformational source candidates with BioEmu, then hand them to MDClaw preparation./boltz-predictAI-driven protein structure prediction using Boltz-2 for single proteins, multimers, and protein-ligand complexes./commonDisplay existing molecular structures, MD trajectories, or the progress of a running job: route prepared full-system views, playback and interactive rotation to Molstar (MCP viewer in Codex, an Artifact page in Claude Code, or a local browser), still images to PyMOL, and troubleshoot remote Molstar display. Also supplies shared MDClaw job-loop, output, solvent, chemistry, and handoff conventions for md-* skills./hpc-runSLURM-based HPC submission for MDClaw workflow nodes. Handles cluster inspection, single-node and job-array submission, status sync to the DAG, and production restart extensions./md-abfeAbsolute binding free energy of one neutral, non-covalent ligand to a protein by double decoupling with MDClaw CLI tools and OpenMM. One job holds both legs: the complex (build_decoupled_system -> min -> eq -> add_boresch_restraint -> run_fep -> analyze_fep) and, as a prep child of its prep node, the ligand alone (extract_ligand -> ... -> analyze_fep); a comparison analyze node (estimate_binding_dg) closes the cycle. Before any state-changing command, follow the pre-command gate in this skill./md-equilibrationStandalone minimization plus equilibration of a prepared MD system using MDClaw CLI tools, including low-temperature NVT warmup, NVT heating, and optional NPT density. Creates min and eq DAG nodes and writes restart artifacts for production handoff.Other plugins' skills for the same job