Agent skill

Qmmm Adaptive

by lamm-mit in lamm-mit/scienceclaw

QM/MM hybrid simulations with adaptive sampling for enzyme mechanisms and reaction dynamics.

LGPL-3.0Auto-check passedResearch & Science

Install Qmmm Adaptive

skills CLI
$ npx skills add lamm-mit/scienceclaw --skill qmmm-adaptive -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lamm-mit/scienceclaw qmmm-adaptive --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lamm-mit/scienceclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/qmmm_adaptive .claude/skills/qmmm-adaptive && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
qmmm-adaptive
GitHub stars
244
Token cost
~2.7k tokens
SKILL.md length
601 words
Files
7 (incl. scripts)
Skills in repo
86
Repo updated
First seen
Licence
LGPL-3.0

At a glance

QM/MM hybrid simulations with adaptive sampling for enzyme mechanisms and reaction dynamics.

  • Works in 6 steps: QM/MM Setup and Equilibration → Metadynamics - Explore Reaction Coordinate → Umbrella Sampling - Precise Barrier… → …
  • Research & Science work in your project
  • SKILL.md covers Overview, Core Capabilities, QM Methods (QM Region) and MM Methods (MM Region), plus 7 more sections
  • Runs Python scripts from its folder; calls python

What it does

Qmmm Adaptive is an agent skill from lamm-mit/scienceclaw. QM/MM hybrid simulations with adaptive sampling for enzyme mechanisms and reaction dynamics. Combines quantum mechanics (reactive center) with molecular mechanics (protein/solvent) for accurate transition state and reaction pathway calculations. Supports metadynamics, umbrella sampling, and accelerated MD for enhanced conformational sampling.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts (for example `scripts/qmmm_mechanism.py`, `scripts/qmmm_metadynamics.py` and `scripts/qmmm_setup.py`).

It sits in Research & Science. The licence is LGPL-3.0.

When your agent uses it

  • Research & Science work in your project

Example prompts

  • “/qmmm-adaptive”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. QM/MM Setup and Equilibration
  2. Metadynamics - Explore Reaction Coordinate
  3. Umbrella Sampling - Precise Barrier Calculation
  4. Accelerated MD (aMD) - Escape Barriers
  5. Transition State Finding
  6. Enzyme Mechanism Studies

What it can do on your machine

Read from SKILL.md and the folder at commit ab9aba1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Qmmm Adaptive loads about 2.7k tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 601 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~90
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from lamm-mit/scienceclaw at commit ab9aba1, republished under its LGPL-3.0 licence (© lamm-mit). 601 words, ~2,698 tokens.

Download SKILL.mdSave it as .claude/skills/qmmm-adaptive/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
qmmm-adaptive
description
QM/MM hybrid simulations with adaptive sampling for enzyme mechanisms and reaction dynamics. Combines quantum mechanics (reactive center) with molecular mechanics (protein/solvent) for accurate transition state and reaction pathway calculations. Supports metadynamics, umbrella sampling, and accelerated MD for enhanced conformational sampling.
license
LGPL
metadata.skill-author
K-Dense Inc.
metadata.domain
computational-chemistry, enzyme-mechanisms, computational-biology

QM/MM Adaptive Dynamics Simulations

Overview

QM/MM (Quantum Mechanics/Molecular Mechanics) hybrid simulations enable accurate computational investigation of enzyme mechanisms, chemical reactions in biological environments, and reaction pathways. This skill combines quantum mechanical accuracy for reactive regions with classical force fields for the surrounding protein and solvent, enabling study of phenomena inaccessible to pure classical or pure quantum approaches.

Adaptive sampling techniques (metadynamics, umbrella sampling, accelerated MD) overcome energy barriers and efficiently explore reaction coordinates, making QM/MM practical for computational drug discovery and enzyme engineering.

Core Capabilities

1. QM/MM Setup and Equilibration

Hybrid System Preparation:

Build QM/MM systems with defined quantum and classical regions:

python
from qmmm import QMMMSystem

# Define QM region (reaction center)
qm_atoms = ["C1", "C2", "N3", "O4"]  # Reactive atoms
qm_method = "MOPAC"  # or ORCA, TeraChem for higher accuracy

# Define MM region (protein + solvent)
mm_forcefield = "AMBER14"

# Create hybrid system
system = QMMMSystem(
    structure="enzyme_complex.pdb",
    qm_atoms=qm_atoms,
    qm_method=qm_method,
    mm_forcefield=mm_forcefield,
    qm_charge=0,
    qm_multiplicity=1,
    buffer_distance=15  # Å from QM center
)

# Equilibrate in stages
system.equilibrate_qm_region(steps=5000)     # Fix MM atoms
system.equilibrate_hybrid(steps=10000)       # Allow coupling
system.equilibrate_full(steps=50000)         # Full system

Key Parameters:

  • QM region size (3-30 atoms typically)
  • Link atom treatment (capping vs. effective)
  • Electrostatic embedding (mechanical vs. electronic)
  • Boundary handling
2. Metadynamics - Explore Reaction Coordinate

Free Energy Landscape Calculation:

Map reaction pathways and identify transition states:

python
# Define collective variable (reaction coordinate)
cv = ReactionCoordinate(
    atoms=["C1", "C2"],
    type="distance"  # or angle, dihedral, custom
)

# Run metadynamics
metad = Metadynamics(
    system=qmmm_system,
    cv=cv,
    sigma=0.1,           # Width of Gaussian hills
    height=5.0,          # Energy height (kcal/mol)
    stride=100,          # Add hill every N steps
    temperature=300,     # K
    timestep=1.0         # fs
)

trajectory = metad.run(steps=100000)  # 100 ps with ~1000 hills

# Get free energy profile
free_energy = trajectory.get_free_energy()
barriers = free_energy.analyze_barriers()

Outputs:

  • Free energy profile along reaction coordinate
  • Transition state geometry and energy
  • Multiple transition pathways (if present)
  • Diffusion coefficient along coordinate
3. Umbrella Sampling - Precise Barrier Calculation

Constrained MD for PMF Calculation:

Systematically sample reaction coordinate windows:

python
# Define windows along reaction coordinate
windows = [(1.5 + i*0.1) for i in range(20)]  # 1.5 Å to 3.5 Å

umbrella = UmbrellaSampling(
    system=qmmm_system,
    cv=cv,
    windows=windows,
    force_constant=100.0,  # kcal/mol/Ų
    timestep=1.0,
    temperature=300
)

# Run each window (can be parallelized)
umbrella.run_windows(
    equilibration=5000,   # 5 ps equilibration per window
    production=20000,     # 20 ps production per window
    save_frequency=100,   # Save every 0.1 ps
    n_parallel=4          # Run 4 windows in parallel
)

# Analyze using WHAM
free_energy = umbrella.analyze_wham()

Advantages:

  • Higher resolution along coordinate
  • Precise barrier heights (±0.5 kcal/mol)
  • Error estimation via bootstrap
  • Umbrella integration for rate constants
4. Accelerated MD (aMD) - Escape Barriers

Enhanced Sampling via Potential Energy Boost:

Accelerate sampling by reducing energy barriers:

python
amd = AcceleratedMD(
    system=qmmm_system,
    boost_type="dual",        # Boost both dihedral + total energy
    e_threshold=10.0,         # Boost below E+10 kcal/mol
    alpha_dihedral=5.0,       # Dihedral boost strength
    alpha_total=10.0,         # Total energy boost strength
    timestep=2.0,
    temperature=300
)

trajectory = amd.run(steps=200000)  # 400 ps with acceleration

# Reweight trajectory to remove boost
free_energy = trajectory.reweight_by_boost_energy()

Applications:

  • Escape local energy minima
  • Sample multiple conformational states
  • Identify transient intermediates
  • Transition pathway discovery
5. Transition State Finding

Locate and Characterize TS Structures:

python
# From metadynamics trajectory
ts_finder = TransitionStateFinder(
    metad_trajectory=metad_traj,
    free_energy_surface=fe_profile
)

# Find TS structure (highest energy on MEP)
ts_structure = ts_finder.find_ts(
    refine=True,
    opt_method="L-BFGS"
)

# Characterize TS
ts_analysis = ts_structure.analyze()
print(f"TS Energy: {ts_analysis['energy']:.2f} kcal/mol")
print(f"Barrier height: {ts_analysis['barrier_forward']:.2f} kcal/mol")
print(f"Barrier height (reverse): {ts_analysis['barrier_reverse']:.2f} kcal/mol")
print(f"TS geometry verified: {ts_analysis['verified']}")
6. Enzyme Mechanism Studies

Multi-Step Reaction Mechanisms:

Study sequential bond breaking/forming:

python
# Example: Serine protease reaction mechanism
# Step 1: Nucleophilic attack (Ser195 on substrate)
# Step 2: Tetrahedral intermediate formation
# Step 3: Acyl-enzyme formation
# Step 4: Water activation and acyl hydrolysis

steps = [
    {
        "name": "Nucleophilic attack",
        "cv": Distance(["Ser195-OG", "C1-substrate"]),
        "expected_barrier": 12.0  # kcal/mol
    },
    {
        "name": "Proton transfer",
        "cv": Distance(["His57-NE", "Proton"]),
        "expected_barrier": 8.0
    },
    {
        "name": "Acylation",
        "cv": Distance(["Ser195-C", "Peptide-N"]),
        "expected_barrier": 5.0
    },
    {
        "name": "Deacylation",
        "cv": Distance(["Water-O", "Acyl-C"]),
        "expected_barrier": 15.0
    }
]

# Run each step with QM/MM
for step in steps:
    result = qmmm.study_step(step)
    print(f"{step['name']}: {result['barrier']:.1f} kcal/mol")

QM Methods (QM Region)

Fast (for MD)
  • MOPAC PM6-D3H4X - Semi-empirical, very fast
  • DFTB+ - Density functional tight binding
  • GFN2-xTB - Extended tight binding
Balanced (for TS finding)
  • ORCA B3LYP/6-31G(d) - DFT, good accuracy
  • TeraChem B3LYP - GPU-accelerated DFT
  • MOPAC PM7 - Improved semi-empirical
High Accuracy (for benchmarks)
  • ORCA DLPNO-CCSD(T) - Wave function theory
  • MOLPRO - High-level quantum chemistry

MM Methods (MM Region)

  • AMBER14 - Standard biomolecular FF
  • CHARMM36 - High accuracy for proteins
  • OPLS-AA - Good for organics

Sampling Techniques

TechniqueSpeedAccuracyUse Case
MetadynamicsFastGoodExplore landscape, find TS guess
Umbrella SamplingMediumExcellentPrecise barriers, PMF convergence
aMDVery FastMediumEscape local minima, sample states
Targeted MDFastGoodPull along specific pathway
Steered MDVery FastMediumNon-equilibrium pulling experiments
Show full SKILL.md (237 more words)Show less

Use Cases

Enzyme Mechanism Elucidation:

  • Identify transition states
  • Calculate barrier heights
  • Propose mechanistic models
  • Explain selectivity and reactivity

Drug Metabolism Prediction:

  • Predict metabolic pathways
  • Identify reactive metabolites
  • Calculate oxidation barriers
  • Assess bioactivation risk

Protein Engineering:

  • Design improved catalysts
  • Predict activity mutations
  • Optimize substrate selectivity
  • Lower activation barriers

Chemical Reactivity in Proteins:

  • Metal coordination mechanisms (metalloproteases, P450 oxidations)
  • Radical chemistry (peroxidases, LOX)
  • Photochemistry (retinal isomerization, photolyase)
  • Hydrolysis mechanisms (proteases, esterases)

Integration with Other Skills

Input:

  • Protein structures from pdb skill
  • Ligand/substrate SMILES from pubchem
  • Enzyme sequences from uniprot
  • Literature mechanistic insights from pubmed

Output:

  • TS structures for further analysis by ase
  • Barriers for publication/comparison
  • Mechanistic models for hypothesis testing
  • Reactive intermediates for openmm MD validation

Performance Characteristics

Computational Cost:

  • QM/MM equilibration: ~1-4 hours (500 atoms, 100 ps)
  • Metadynamics (100 ps): ~8-24 hours
  • Umbrella sampling (20 windows × 20 ps): ~40-120 hours
  • aMD (400 ps): ~4-12 hours

Hardware:

  • CPU: Excellent for MOPAC/DFTB based QM/MM
  • GPU: Required for TeraChem or faster convergence
  • Parallelization: Windows/replicas parallelize perfectly

Limitations

  • QM region size limited (~30 atoms for DFT)
  • Boundary effects at QM/MM interface
  • Charge transfer between QM/MM regions approximated
  • Polarization effects sometimes underestimated
  • Requires quality starting structure

Example Workflow

bash
# 1. Prepare QM/MM system
python qmmm_setup.py --pdb enzyme_complex.pdb \
    --qm-atoms "catalytic_residues.txt" \
    --qm-method MOPAC --force-field AMBER14

# 2. Equilibrate
python qmmm_equilibrate.py --system prepared_qmmm.inp \
    --temperature 300 --steps 50000

# 3. Run metadynamics to explore
python qmmm_metad.py --system equilibrated.inp \
    --cv "distance C1 C2" --duration 100 \
    --output metad_landscape.txt

# 4. Find transition state
python qmmm_ts_finder.py --metad-traj metadynamics.dcd \
    --refine true --output ts_structure.pdb

# 5. Run umbrella sampling for precise barrier
python qmmm_umbrella.py --system equilibrated.inp \
    --cv "distance C1 C2" --windows 20 \
    --window-width 0.1 --output pmf.txt

# 6. Analyze mechanism
python qmmm_mechanism.py --ts-structure ts_structure.pdb \
    --umbrella-pmf pmf.txt --report mechanism.md

References

  • QM/MM review: Senn & Thiel (2007) Angew. Chem.
  • Metadynamics: Laio & Parrinello (2002) PNAS
  • Umbrella sampling: Torrie & Valleau (1977) J. Comp. Phys
  • aMD: Hamelberg et al. (2004) J. Chem. Phys
  • ORCA: Neese (2012) Wiley Interdiscip. Rev. Comput. Mol. Sci.
  • TeraChem: Ufimtsev & Martinez (2008) J. Chem. Phys

© lamm-mit, LGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts) in skills/qmmm_adaptive of lamm-mit/scienceclaw.

  • SKILL.md
  • scripts/__pycache__/qmmm_mechanism.cpython-313.pyc
  • scripts/__pycache__/qmmm_metadynamics.cpython-313.pyc
  • scripts/__pycache__/qmmm_setup.cpython-313.pyc
  • scripts/qmmm_mechanism.py
  • scripts/qmmm_metadynamics.py
  • scripts/qmmm_setup.py

Open the folder on GitHubat commit ab9aba1

Compare with similar skills

Qmmm Adaptive next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Qmmm Adaptive compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Qmmm Adaptive this skilllamm-mit/scienceclaw244—~2.7kAutomated safety check: PassLGPL-3.0
Hypothesis Generationspacering-net/codeg3.9k14 repos~3.6kAutomated safety check: NotesMIT
GitHub Deep Researchbytedance/deer-flow84k4 repos~1.3kAutomated safety check: PassMIT
Nature Paper CardYuan1z0825/nature-skills47k2 repos~2.1kAutomated safety check: PassApache-2.0
Content Research Writerweapp-tailwindcss/weapp-tailwindcss1.9k25 repos~3.5kAutomated safety check: PassMIT
Peer Reviewspacering-net/codeg3.9k17 repos~5.9kAutomated safety check: NotesMIT

Similar skills

  • Hypothesis Generation

    spacering-net/codeg

    Structured hypothesis formulation from observations. An agent skill from spacering-net/codeg.

    3.9k GitHub starsUsed in 14 repos~3.6k tokens
    Research & ScienceAuto-check: notes
  • GitHub Deep Research

    bytedance/deer-flow

    Researches a GitHub repository over four rounds using the GitHub API and web search, then writes a structured markdown report with timeline, metrics and Mermaid diagrams.

    84k GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed
  • Nature Paper Card

    Yuan1z0825/nature-skills

    Builds a structured deep-reading card for one scientific paper, covering methods, how experiments support claims, limitations and research ideas, with a script to prepare the source.

    47k GitHub starsUsed in 2 repos~2.1k tokens
    Research & ScienceAuto-check passed
  • Content Research Writer

    weapp-tailwindcss/weapp-tailwindcss

    Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section.

    1.9k GitHub starsUsed in 25 repos~3.5k tokens
    Research & ScienceAuto-check passed
  • Peer Review

    spacering-net/codeg

    Structured manuscript/grant review with checklist-based evaluation.

    3.9k GitHub starsUsed in 17 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Last30days

    mvanhorn/last30days-skill

    Research what people actually say about any topic in the last 30 days.

    64k GitHub stars~7.9k tokensUpdated today
    Research & ScienceAuto-check: notes

More from lamm-mit/scienceclaw

All 86 skills in this repo
  • Fred Economic Data

    lamm-mit/scienceclaw

    Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources.

    244 GitHub starsUsed in 4 repos~3k tokens
    Auto-check passed
  • Drug Research

    lamm-mit/scienceclaw

    Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.

    244 GitHub starsUsed in 3 repos~1.7k tokens
    Auto-check passed
  • Imaging Data Commons

    lamm-mit/scienceclaw

    Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index.

    244 GitHub starsUsed in 5 repos~11k tokens
    Auto-check passed
  • Rowan

    lamm-mit/scienceclaw

    Cloud-based quantum chemistry platform with Python API. An agent skill from lamm-mit/scienceclaw.

    244 GitHub starsUsed in 4 repos~3.1k tokens
    Auto-check: warnings
  • Infographics

    lamm-mit/scienceclaw

    Create professional infographics using Nano Banana Pro AI with smart iterative refinement.

    244 GitHub starsUsed in 6 repos~4.4k tokens
    Auto-check: notes
  • Disease Research

    lamm-mit/scienceclaw

    Generate comprehensive disease research reports using 100+ ToolUniverse tools.

    244 GitHub stars~946 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Qmmm Adaptive

What does Qmmm Adaptive do?

QM/MM hybrid simulations with adaptive sampling for enzyme mechanisms and reaction dynamics. Qmmm Adaptive is an agent skill from lamm-mit/scienceclaw. QM/MM hybrid simulations with adaptive sampling for enzyme mechanisms and reaction dynamics.

When should I use Qmmm Adaptive?

Qmmm Adaptive fits situations like: research & Science work in your project.

How do I install Qmmm Adaptive in Claude Code?

Run `npx skills add lamm-mit/scienceclaw --skill qmmm-adaptive -a claude-code`. Or copy the skill folder (skills/qmmm_adaptive in lamm-mit/scienceclaw) into .claude/skills/qmmm-adaptive in your project. Claude Code loads it when a task matches its description.

How do I install Qmmm Adaptive in Codex?

Run `npx skills add lamm-mit/scienceclaw --skill qmmm-adaptive -a codex`. Or copy the skill folder (skills/qmmm_adaptive in lamm-mit/scienceclaw) into .agents/skills/qmmm-adaptive in your project. Codex loads it when a task matches its description.

Can I use Qmmm Adaptive in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lamm-mit/scienceclaw --skill qmmm-adaptive -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/qmmm-adaptive, .gemini/skills/qmmm-adaptive, .github/skills/qmmm-adaptive and .opencode/skills/qmmm-adaptive in your project.

What does Qmmm Adaptive need to run?

Going by SKILL.md and its folder, Qmmm Adaptive needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Qmmm Adaptive access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Qmmm Adaptive safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Qmmm Adaptive use?

Qmmm Adaptive is published under the LGPL-3.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Qmmm Adaptive use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Qmmm Adaptive?

Skills that share tags, products or a category with Qmmm Adaptive: Hypothesis Generation (spacering-net/codeg, 3.9k stars), GitHub Deep Research (bytedance/deer-flow, 84k stars), Nature Paper Card (Yuan1z0825/nature-skills, 47k stars) and Content Research Writer (weapp-tailwindcss/weapp-tailwindcss, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Qmmm Adaptive?

lamm-mit (a GitHub user) maintains it in lamm-mit/scienceclaw, which has 244 GitHub stars. The repository holds 86 skills in this directory. The repository was last updated on August 21, 2026.

Source: lamm-mit/scienceclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.