free-energy

free-energy is a skill for Claude Code from Kdevos12/ALKYL. It costs 63 tokens per session (1,106 once invoked), scanned A, original, MIT.

Methods for estimating the energy change when a molecule binds, dissolves, or changes into another molecule. In drug discovery, free energy is used to compare how strongly compounds may bind to a protein.

In plain words
What is it for?
Use it for relative or absolute binding calculations, solvation estimates, lead optimization, force-field checks, and convergence analysis with FEP, TI, BAR, or MBAR.
Why use it?
It provides a physics-based way to rank related compounds and check whether simulations have produced reliable results.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the alkyl plugin — 27 skills shipped together

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.

agentmods
npx agentmods add skills/kdevos12/alkyl/free-energy
Any agent
npx skills add Kdevos12/ALKYL --skill free-energy
Clone the repo
git clone --depth 1 https://github.com/Kdevos12/ALKYL

Made for: Claude Code.

Or install alkyl, the plugin that ships this one along with the rest of its 27 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kdevos12/alkyl/free-energy.svg)](https://agentmods.dev/skills/kdevos12/alkyl/free-energy)
Your own site
<a href="https://agentmods.dev/skills/kdevos12/alkyl/free-energy"><img src="https://agentmods.dev/badge/skills/kdevos12/alkyl/free-energy.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00063 $0.01106
Opus 5 $0.00032 $0.00553
Sonnet 5 $0.00013 $0.00221
Haiku 4.5 $0.00006 $0.00111

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

Security

Grade A, and why

free-energy 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 6d 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/free-energy/SKILL.md · 92 lines

How it starts

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

Free Energy Calculations

Compute ΔG of binding, solvation, or mutation via alchemical transformations — coupling/decoupling atoms along a λ pathway. Gold standard for lead optimization in drug discovery: accuracy ~1 kcal/mol for congeneric series.

When to Use This Skill

  • Predict ΔΔG_bind between two ligands (RBFE / lead optimization)
  • Compute absolute ΔG_bind of a ligand to a protein (ABFE)
  • Calculate ΔG_solvation or ΔG_hydration for ADME
  • Rank compounds from a small congeneric series (~5-50 molecules)
  • Validate force field parameters against experimental affinities
  • Analyze convergence of FEP simulations (MBAR, overlap matrix)

Key Methods

Method Estimator Windows Notes
FEP (Zwanzig) Exponential avg Any High variance; avoid for large ΔG
TI Numerical integration of ⟨∂H/∂λ⟩ 10-20 Requires smooth integrand
BAR Bennett Acceptance Ratio Adjacent pairs Better than TI for same data
MBAR Multistate BAR All pairs Best variance; recommended
RBFE Relative: A→B via alchemical 12-24 λ Lead optimization
ABFE Absolute: ligand → unbound ~20 λ More expensive, independent

Accuracy Expectations

System Typical error Sim. time per edge
Congeneric RBFE (neutral) 0.5-1.5 kcal/mol 5-10 ns/window
RBFE with charge change 1-3 kcal/mol 10-20 ns/window
ABFE 1-3 kcal/mol 20-50 ns/window
Solvation ΔG 0.3-1.0 kcal/mol 2-5 ns/window

Quick Start

# pymbar: MBAR from energy matrix (u_kln)
import numpy as np
from pymbar import MBAR

# u_kln[k, l, n] = u_l(x_n^k) / kBT
# k: state from which sample was drawn
# l: state at which energy is evaluated
# n: sample index

K = 12  # number of lambda windows
N_k = np.array([1000] * K)  # samples per window

# u_kln shape: (K, K, max(N_k))
mbar = MBAR(u_kln, N_k)
results = mbar.compute_free_energy_differences()

dG = results['Delta_f'][0, -1]           # ΔG (kBT units)
ddG = results['dDelta_f'][0, -1]         # uncertainty
kBT = 0.5961  # kcal/mol at 298 K

print(f"ΔG = {dG * kBT:.2f} ± {ddG * kBT:.2f} kcal/mol")

Read the full file on GitHub · 92 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 92 lines · 63 tokens per session scan A c10f6f3a51a7

Subscribe to this mod's changes

free-energy is a skill published in the GitHub repository Kdevos12/ALKYL (6 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 1,106 once invoked, about $0.0003 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

molecular-optimization

Iterative lead optimization with analyze-reason-generate-verify-evaluate loop. Paper-backed (MT-Mol, DrugR, MultiMol).

synthetic-sciences/openscience · 34 tokens

smiles-validation

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

synthetic-sciences/openscience · 24 tokens

synplanner-usage

Plan retrosynthetic routes, curate reaction data, extract reaction rules, train retrosynthesis policy and value networks, and analyse synthetic routes with the installed SynPlanner package. SynPlanner is built on chython (chython-synplan, formerly CGRtools), not RDKit. Use when the user imports synplan., asks for a…

Laboratoire-de-Chemoinformatique/SynPlanner · 182 tokens

patsnap-chemical-molecular

Patsnap Chemical Molecular MCP for AI agents. Search 160M+ chemical structures, synthetic routes, and bioactivity data via specialized chemistry tools.

patsnap/mcp · 38 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