chem-sorption-widom
Skill174 starsChanged 6 months agoMITView on GitHub
Calculates Henry coefficient and heat of adsorption for a gas in a porous framework using Widom insertion with any supported MLIP.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Perform Widom Insertion: Use the run_widom.py script, specifying the structure, gas, temperature, and your MLIP of choice.
- Very specific: line 70
Model Compatibility: Ensure the selected MLIP and its corresponding task-name are suitable for non-covalent interactions (e.g., omol for …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
chem-sorption-widom
Goal
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.
Prerequisites
- Input: A relaxed framework structure in CIF (or XYZ) format. The structure should ideally be processed by chem-sorption-relax to ensure proper supercell dimensions.
- Conda environment: Depends on the MLIP used (e.g.,
fairchem-agent,mace-agent,matgl-agent).
Instructions
- Perform Widom Insertion: Use the
run_widom.pyscript, specifying the structure, gas, temperature, and your MLIP of choice.
# Env: fairchem-agent (if using fairchem), mace-agent (if using mace), etc.
python .agents/skills/chem-sorption-widom/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 ./resultsParameters
--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.,omolfor 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 thewidom_results.json.
Examples
Example 1: Using FairChem UMA-S-1p2 for CO2 adsorption at 298K
# Env: fairchem-agent
python .agents/skills/chem-sorption-widom/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 ./resultsConstraints
- Cell Size: The periodic boundary conditions of the framework must be large enough ($> 12$ Å minimum interplanar distance) to prevent artificial self-interactions of the inserted gas molecules across boundaries. It is highly recommended to use chem-sorption-relax first.
- Statistical Noise: Increasing
--num-insertions(e.g., to 100,000) improves the convergence of $K_H$ and $\Delta H_{ads}$, at the cost of increased computation time. - Model Compatibility: Ensure the selected MLIP and its corresponding
task-nameare suitable for non-covalent interactions (e.g.,omolfor UMA, or dispersion-corrected MACE/MatGL models).
Author: Artur Lyssenko Contact: GitHub @arturlyssenko12
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

