free-energy-md

free-energy-md is a skill for Claude Code, Codex from SFETNI/Deep-Matter-Chem-Skills. It costs 3 tokens per session (16,883 once invoked), scanned A, original, MIT.

A guide to calculating free-energy changes from molecular-dynamics simulations, which model how atoms move over time.

In plain words
What is it for?
Use it for alchemical free-energy calculations, potential-of-mean-force calculations, thermodynamic cycles, sampling setup, overlap checks, and uncertainty analysis.
Why use it?
It covers methods for estimating quantities such as binding or solvation free energy when ordinary simulation averages are not enough.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for alchemical free-energy calculations, potential-of-mean-force calculations, thermodynamic cycles, sampling setup, overlap checks, and uncertainty analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfetni/deep-matter-chem-skills/free-energy-md
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SFETNI/Deep-Matter-Chem-Skills --skill free-energy-md
Clone the repo
git clone --depth 1 https://github.com/SFETNI/Deep-Matter-Chem-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for free-energy-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/free-energy-md/github.svg)](https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/free-energy-md)
Your own site
<a href="https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/free-energy-md"><img src="https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/free-energy-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for free-energy-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/free-energy-md"><img src="https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/free-energy-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 16,883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00003 $0.16883
Opus 5 $0.00002 $0.08441
Sonnet 5 $0.00001 $0.03377
Haiku 4.5 $0.00000 $0.01688

Measured 12d ago against content hash f4025e76134b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

free-energy-md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/atomistic-md/free-energy-md/SKILL.md · 1,009 lines

How it starts

The opening of the file, as written. The whole thing — 1,009 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Free-Energy MD

Description

This skill covers quantitative free-energy calculations from molecular dynamics: alchemical methods (free energy perturbation, thermodynamic integration, BAR, MBAR), potential of mean force from umbrella sampling, absolute and relative binding/hydration/solvation free energies, thermodynamic cycles, lambda schedules and soft-core potentials, overlap diagnostics, standard-state corrections, and statistical uncertainty analysis using pymbar and alchemlyb. GROMACS provides the simulation engine with the lambda free-energy infrastructure; PLUMED provides CV-based PMF calculations; pymbar/alchemlyb provide statistically optimal analysis. Invoke this skill when a quantitative ΔG, ΔΔG, or PMF is the target observable and cannot be obtained from plain MD averages.

Domain Context

Free-energy calculations in MD operate on two distinct paradigms:

Alchemical methods compute ΔG by coupling a Hamiltonian H(λ) that interpolates between two physical end-states (λ = 0 and λ = 1) through unphysical intermediate states. The Zwanzig relation gives ΔG = −k_B T ln⟨exp(−ΔU/k_B T)⟩₀, which converges only when the configuration spaces of the two states overlap sufficiently. BAR and MBAR exploit bidirectional sampling across multiple lambda windows to give statistically optimal estimates. No physical trajectory connects the two end-states; the path is a computational construction, but the endpoint free-energy difference is exact in the limit of convergence.

PMF methods compute F(ξ) = −k_B T ln P(ξ) directly along a physical collective variable (CV) by enhanced sampling. The PMF is a projection of the true free energy landscape onto one or two coordinates; its accuracy depends on the quality of the CV as a reaction coordinate.

Several physical constraints govern applicability:

  • Phase-space overlap requirement: For FEP (Zwanzig), the configurations sampled at λ = 0 must include configurations representative of λ = 1. A metric: if exp(−ΔU/k_B T) is dominated by a handful of frames (effective sample size N_eff ≪ N), the estimate is unreliable. BAR/MBAR relax this by pooling data from all intermediate windows.
  • Soft-core potentials at lambda endpoints: At λ → 0 or λ → 1, a fully decoupled particle has a core that overlaps with solvent, creating numerical singularities in dU/dλ and instability in the integrator. Soft-core (Beutler) potentials replace the Lennard-Jones core with a regularized form that remains finite at λ = 0. All production alchemical FEP requires soft-core LJ.
  • Standard-state correction for binding: Absolute binding free energies ΔG_bind are referenced to a standard state of 1 M (1 mol/L). Restraints that confine the ligand during alchemical annihilation impose a loss of translational/rotational entropy that must be corrected analytically (Boresch correction). Omitting this correction can introduce errors of 10–30 kJ/mol. [EXPERT REVIEW NEEDED]
  • Thermodynamic cycle closure: Free energies are state functions. The sum of ΔG around a closed thermodynamic cycle must equal zero. A non-zero cycle closure error ≥ 1 kJ/mol indicates either a numerical problem (insufficient sampling in a window) or a force-field inconsistency. Use cycle closure as a convergence diagnostic.
  • Force-field accuracy is the dominant error source. A perfectly converged FEP calculation with a poorly parameterized force field gives a precisely wrong answer. Experimental validation of the method on a known binding affinity series is required before applying it to novel systems.

Read the full file on GitHub · 1,009 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 1,009 lines · 3 tokens per session scan A f4025e76134b

Subscribe to this mod's changes

free-energy-md is a skill published in the GitHub repository SFETNI/Deep-Matter-Chem-Skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 3 tokens to every session and 16,883 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters…

synthetic-sciences/openscience · 67 tokens

smiles-validation

Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.

synthetic-sciences/openscience · 24 tokens

patsnap-biological-modality

Biological sequence and modality intelligence via Patsnap MCP.

patsnap/mcp · 19 tokens

patsnap-scientific-translational-evidence

Patsnap Scientific & Translational Evidence MCP for AI agents. Retrieval platform focusing on scientific literature and translational outcomes, covering academic publication queries and translational medicine record tracking.

patsnap/mcp · 47 tokens

patsnap-target-disease

Patsnap Target & Disease MCP for AI agents. Target and disease profiling tool, covering target characterization, disease profiling, and epidemiology evidence retrieval.

patsnap/mcp · 37 tokens

patsnap-solution-engine

Patsnap TRIZ Concept Solution Engine MCP for AI agents. Generates innovation or product cost-reduction concepts through asynchronous TRIZ and TRIZ/DFMA workflows. Use for engineering problem solving, concept alternatives, cost-reduction analysis, task-progress retrieval, and selected-solution details.

patsnap/mcp · 64 tokens