/atomistic-skills:mat-ionic-substitutionfrom Atomistic Skills
Discovers new crystal structures via data-mined ionic substitution: forward mode proposes substituted variants from an existing structure, reverse mode finds structures for a target composition.
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 discover new crystal structures using data-mined ionic substitution (Hautier et al. 2011). Two modes:
The substitution probability model is trained on the ICSD (Inorganic Crystal Structure Database) and captures empirical chemical rules about which ions commonly substitute for each other.
[!TIP] After generating candidate structures, relax them with an MLIP and compute their stability (E_hull) to prioritize the most thermodynamically viable candidates.
Prepare a source structure (CIF or POSCAR). Ensure it is an ordered structure.
Run the forward proposal script:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/propose_substitutions.py \
--structure source.cif \
--threshold 0.001 \
--output_dir proposed_substitutions/
The script will:
substitution_manifest.json with substitution maps and probabilitiesReview and filter results: Higher probability → more likely to be stable. Relax top candidates with an MLIP.
Run the reverse search script:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/find_structures_for_composition.py \
--composition LiCl \
--threshold 0.001 \
--output_dir structures_for_LiCl/
The script will:
SubstitutionPredictor to find precursor compositions whose ions map to the targetstructure_manifest.json with full provenanceInterpret results: Each candidate includes:
"materials_project" (direct match) or "substitution" (derived){Na+→Li+} and probabilityIf you already know the exact substitution you want to make on a specific structure, you can immediately generate the new structure using the base MCP server's modify_structure tool:
modify_structure tool: Maps an existing element to a new element or fraction.
substitution_dict_json='{"Na": "Li"}' (Replaces all Na with Li)substitution_dict_json='{"Na": {"Li": 0.5, "Na": 0.5}}' (Creates a 50/50 random mixture)${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/propose_substitutions.py \
--structure NaCoO2.cif \
--threshold 0.001 \
--output_dir NaCoO2_substitutions/
Expected output includes: LiCoO₂, KCoO₂, NaNiO₂, NaMnO₂, LiNiO₂, etc.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/find_structures_for_composition.py \
--composition LiCl \
--output_dir LiCl_structures/
Expected output includes: LiCl from MP + NaCl(Na→Li), KCl(K→Li), NaBr(Na→Li, Br→Cl), etc.
AutoOxiStateDecorationTransformation, but exotic compositions may fail.MP_API_KEY environment variable to query Materials Project.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/Li2ZrCl6_reverse/000_Li2ZrCl6_from_Li2ZrF6_mp-542219.cif (opens in a new tab)examples/Li2ZrCl6_reverse/001_Li2ZrCl6_from_Li2ZrF6_mp-556176.cif (opens in a new tab)examples/Li2ZrCl6_reverse/002_Li2ZrCl6_from_Li2ZrF6_mp-4002.cif (opens in a new tab)examples/Li2ZrCl6_reverse/003_Li2ZrCl6_from_Rb2ZrCl6_mp-27831.cif (opens in a new tab)examples/Li2ZrCl6_reverse/004_Li2ZrCl6_from_Na2ZrF6_mp-27307.cif (opens in a new tab)examples/Li2ZrCl6_reverse/README.md (opens in a new tab)examples/Li2ZrCl6_reverse/structure_manifest.json (opens in a new tab)examples/NaCoO2_forward/000_NaFeO2.cif (opens in a new tab)examples/NaCoO2_forward/001_NaScO2.cif (opens in a new tab)examples/NaCoO2_forward/002_NaCrO2.cif (opens in a new tab)examples/NaCoO2_forward/003_NaAlO2.cif (opens in a new tab)examples/NaCoO2_forward/004_NaMnO2.cif (opens in a new tab)examples/NaCoO2_forward/016_LiCoO2.cif (opens in a new tab)examples/NaCoO2_forward/README.md (opens in a new tab)examples/NaCoO2_forward/substitution_manifest.json (opens in a new tab)scripts/find_structures_for_composition.py (opens in a new tab)scripts/propose_substitutions.py (opens in a new tab)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