/atomistic-skills:chem-sorption-widomfrom Atomistic Skills
Calculates Henry coefficient and heat of adsorption for gases in porous frameworks (MOFs, COFs) using Widom insertion with MLIPs like MACE, FairChem, or MatGL.
Ships in Atomistic Skills. 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; scripts run unread.
To determine the initial affinity of a porous material (e.g., MOFs, COFs) for a specific gas molecule at infinite dilution. This is done by computing the Henry coefficient ($K_H$) and the isosteric heat of adsorption ($\Delta H_{ads}$) using Widom insertion, calculating interaction energies with a generic Machine Learning Interatomic Potential (MLIP) such as MACE, FairChem, or MatGL.
fairchem for FairChem; mlip for MACE and MatGL).run_widom.py script, specifying the structure, gas, temperature, and your MLIP of choice.# (if using fairchem), venv/mlip (if using mace), etc.
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/run_widom.py \
--structure path/to/relaxed_supercell.cif \
--name MY_FRAMEWORK \
--calculator fairchem \
--model-name uma-s-1p2 \
--task-name omol \
--gas CO2 \
--temperature 298 \
--output-dir ./results
--structure: Path to the relaxed host framework (must be large enough, see Constraints).--name: Identifier for the output files.--calculator: The backend MLIP (fairchem, mace, matgl).--model-name: Name or path to the MLIP weights (e.g., uma-s-1p1.pt, MACE-MH-1).--task-name: Optional, but highly recommended for multi-task models (e.g., omol for FairChem UMA and MACE-MH).--gas: The adsorbate gas (e.g., CO2, N2, CH4).--temperature: Temperature in Kelvin.--num-insertions: Number of Monte Carlo insertion attempts (default: 50,000).--output-dir: Directory to save the widom_results.json.Example 1: Using FairChem UMA-S-1p2 for CO2 adsorption at 298K
${CLAUDE_SKILL_DIR}/../../venv/run fairchem python ${CLAUDE_SKILL_DIR}/scripts/run_widom.py \
--structure ./results/COF-1_supercell.cif \
--name COF-1 \
--calculator fairchem \
--model-name uma-s-1p2 \
--task-name omol \
--gas CO2 \
--temperature 298 \
--output-dir ./results
--num-insertions (e.g., to 100,000) improves the convergence of $K_H$ and $\Delta H_{ads}$, at the cost of increased computation time.task-name are suitable for non-covalent interactions (e.g., omol for UMA, or dispersion-corrected MACE/MatGL models).Author: Artur Lyssenko Contact: GitHub @arturlyssenko12
examples/README.md (opens in a new tab)examples/input_configs.yaml (opens in a new tab)examples/test_widom.sh (opens in a new tab)scripts/run_widom.py (opens in a new tab)scripts/widom_common.py (opens in a new tab)scripts/widom_src/widom/LICENSE (opens in a new tab)scripts/widom_src/widom/NOTICE (opens in a new tab)scripts/widom_src/widom/README.md (opens in a new tab)scripts/widom_src/widom/__init__.py (opens in a new tab)scripts/widom_src/widom/analyze.py (opens in a new tab)scripts/widom_src/widom/pyproject.toml (opens in a new tab)scripts/widom_src/widom/run.py (opens in a new tab)scripts/widom_src/widom/sample_compute_energies.py (opens in a new tab)scripts/widom_src/widom/structure_preparation.py (opens in a new tab)scripts/widom_src/widom/utils.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job