/atomistic-skills:chem-sorption-relaxfrom Atomistic Skills
Prepares porous frameworks (MOFs, COFs) for molecular sorption by checking interplanar distances, building supercells when needed, and relaxing structures with MLIP tools (FairChem, MACE, 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.
[!NOTE] Steps written
server.toolare MCP tool calls:fairchem.relax_structureis therelax_structuretool of thefairchemserver (mcp__fairchem__relax_structure, ormcp__plugin_atomistic-skills_fairchem__relax_structurewhen installed as a plugin). Without a connected server, run the same tools from the shell. Tools named in one command share a process, so a model loaded byload_modelstays loaded:${CLAUDE_SKILL_DIR}/../../venv/run fairchem python -m src.mcp_server.cli fairchem relax_structure key=value load_model key=value ${CLAUDE_SKILL_DIR}/../../venv/run mlip python -m src.mcp_server.cli mace relax_structure key=value ${CLAUDE_SKILL_DIR}/../../venv/run mlip python -m src.mcp_server.cli matgl relax_structure key=value
To process porous frameworks (e.g., MOFs, COFs) for downstream molecular sorption calculations. It checks if the unit cell's interplanar distances are large enough (usually ≥ 12 Å for typical gases) to avoid self-interaction of gas molecules across periodic boundaries. If not, it builds an appropriate supercell. Finally, it uses a standard Machine Learning Interatomic Potential (MLIP) workflow to relax the structure.
fairchem.relax_structure, mace.relax_structure, or matgl.relax_structure.cpu for the supercell builder logic, followed by the specific environment for the chosen MLIP (fairchem for FairChem, mlip for MACE and MatGL).${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/build_supercell.py \
--structure path/to/framework.cif \
--min-plane-dist 12.0 \
--output-cif ./out/framework_supercell.cif
[!TIP] If the script output indicates a
1x1x1supercell was created (i.e. no expansion needed), you can just use your original CIF or the output CIF, as they will be identical.
# (via MCP server)
fairchem.load_model(
model_name="uma-s-1p2",
device="auto"
)
fairchem.relax_structure(
structure_data="./out/framework_supercell.cif",
fmax=0.05,
steps=500,
optimizer="LBFGS",
relax_cell=True,
output_dir="./out/relaxed_framework"
)
--structure: Path to input CIF or XYZ.--name: Identifier used in output filenames.--calculator: Backend MLIP (fairchem, mace, matgl).--model-name: Named model (e.g. uma-s-1p2) or full path to checkpoint.--task-name: Multi-task head (omol, omat, odac, oc20, omc).--optimizer: LBFGS (default) or FIRE.--fmax: Force convergence threshold in eV/Å (default: 0.05).--steps: Maximum optimizer steps (default: 500).--relax-cell: Relax unit cell (default: True). Use --fixed-cell to fix cell.--output-dir: Directory to save <name>.relaxed.cif and relax_results.json../out/relaxed_framework/<name>.relaxed.cif) from step 2 is now ready for use in chem-sorption-widom and chem-sorption-gcmc.Full workflow:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/build_supercell.py \
--structure my_cof.cif \
--min-plane-dist 12.0 \
--output-cif ./results/COF-1_supercell.cif
fairchem.load_model(
model_name="uma-s-1p2",
device="auto"
)
fairchem.relax_structure(
structure_data="./results/COF-1_supercell.cif",
fmax=0.05,
steps=500,
optimizer="LBFGS",
output_dir="./results/relaxed"
)
--min-plane-dist should be at least 2 × (cut-off radius) of the probe gas interaction length (typically 12 Å for CO2 or N2).Authors: Artur Lyssenko, Sauradeep Majumdar Contact: GitHub @arturlyssenko12, GitHub @sauradeep93
What SKILL.md sets; muted values are Claude Code's defaults
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