Md Simulation logo

Md Simulation

Community
sagirimo
md-simulation

Run a short molecular dynamics simulation of a protein (optionally a protein-ligand complex) with OpenMM — fix the structure, minimize, equilibrate, run a brief production trajectory, and report backbone RMSD stability over time. Use to relax/equilibrate a structure and check its stability, not for long production MD or free-energy calculations.

Overview

Publishersagirimo
RepositoryBioDSH
Skill namemd-simulation
Stars
65
Forks
2
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by sagirimo on GitHub. Read the source before you install it.

Installation

Install the Md Simulation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/md-simulation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sagirimo/BioDSH.git /tmp/BioDSH
mkdir -p .claude/skills
cp -r /tmp/BioDSH/biodsh-core/skills/md-simulation .claude/skills/md-simulation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Md Simulation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Md Simulation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Md Simulation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Molecular dynamics simulation (OpenMM)

Use this skill when the user wants to relax and equilibrate a protein structure and check how stable it is — e.g. clean up a homology model or a docked pose, remove clashes, and see whether the backbone holds together over a short trajectory. Good follow-up to the drug-docking skill for sanity-checking a complex.

Do not use it for: long production MD (µs), binding free-energy / FEP, or docking (use drug-docking). The defaults here are deliberately short so a run finishes in minutes on a laptop.

Install the heavy libraries first (compute-heavy)

The base analysis env does not ship the MD stack. Install it once with the app's package tool before the first run:

bash
uv pip install openmm pdbfixer mdtraj
  • openmm — the MD engine and force fields.
  • pdbfixer — repairs the input structure (missing atoms/residues, hydrogens).
  • mdtraj — reads the trajectory and computes RMSD.

Notes: OpenMM is compute-heavy; it is easiest and fastest via conda/mamba (mamba install -c conda-forge openmm pdbfixer mdtraj), which also pulls in CUDA/OpenCL support for GPU speed, but pip wheels exist and work on CPU. The script auto-selects the fastest available platform (CUDA > OpenCL > CPU) and falls back to CPU if no accelerator is present.

Required inputs

  • --pdb — the protein structure (.pdb). If it contains a bound ligand/hetero groups you can keep or drop them (--keep-hetero, --keep-water); by default heterogens and water are removed and only the protein is simulated.

Exact run command

bash
bioenv/.venv/bin/python "<skill dir>/run.py" \
  --pdb protein.pdb \
  --solvent implicit \
  --steps 50000 \
  --temperature 300 \
  --outdir md_out

Options and defaults:

  • --ff (default amber14-all.xml amber14/tip3pfb.xml) — force-field XML files; accepts several, space-separated. For implicit solvent an implicit model XML (implicit/gbn2.xml) is added automatically.
  • --solvent implicit|explicit (default implicit) — implicit GBn2 is much faster and is the default; explicit builds a TIP3P water box (slower, more realistic).
  • --steps N (default 50000 ≈ 100 ps at 2 fs) — production steps. Scale up for real work: 500,000 steps ≈ 1 ns, 5,000,000 ≈ 10 ns; expect roughly linear wall-time.
  • --temperature K (default 300).
  • --equil-steps N (default 5000), --report-interval N (default 1000 steps between trajectory/log frames), --dt-fs (default 2.0), --seed, --keep-water, --keep-hetero.

Reading the outputs

Everything lands in --outdir:

  • minimized.pdb — the fixed, energy-minimized starting structure (and the RMSD reference frame).
  • trajectory.dcd — the production trajectory (open with minimized.pdb as topology).
  • energy_log.csv — per-frame step, potential energy (kJ/mol), temperature (K), elapsed time.
  • rmsd.csv — backbone RMSD (nm) vs the minimized frame, per trajectory frame, with a time (ps) column.
  • rmsd.png — RMSD over time; the curve should rise then plateau if the structure is stable.
  • md_summary.json — n_atoms, steps, dt, temperature, solvent, platform, final/mean RMSD, wall-time.

The script prints a short summary to stdout. Report the mean/final RMSD and the absolute path of rmsd.png.

Caveats

  • A flat, low RMSD plateau (a few Å) suggests a stable structure; a curve that keeps climbing suggests it is unfolding or the model/pose is poor — do not over-interpret a short run either way.
  • Implicit solvent (default) trades accuracy for speed; for publication-grade dynamics use --solvent explicit and far more steps.
  • If PDBFixer cannot parse or repair the input (badly broken PDB, non-standard residues, missing a matching force field), the script exits with a clear error — clean the structure or supply the right --ff.
  • Ligand parameters are not auto-generated: an arbitrary small molecule kept via --keep-hetero will usually fail force-field matching. For protein–ligand MD you must supply ligand parameters (e.g. GAFF/OpenFF) — out of scope for this quick skill.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Md Simulation AI skill do?

Run a short molecular dynamics simulation of a protein (optionally a protein-ligand complex) with OpenMM — fix the structure, minimize, equilibrate, run a brief production trajectory, and report backbone RMSD stability over time. Use to relax/equilibrate a structure and check its stability, not for long production MD or free-energy calculations.

Why use Md Simulation on TypingMind?

Because you install it once and use it with any model. Md Simulation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Md Simulation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/md-simulation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Md Simulation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Md Simulation?

As many as you like. As long as a model supports skills, you can use Md Simulation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Md Simulation AI skill free?

Yes. It is published on GitHub by sagirimo under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇