/atomistic-skills:mat-disorderfrom Atomistic Skills
Generates ordered atomic configurations from disordered starting structures with fractional occupancies. Uses Ewald energy ranking to produce candidates for DFT calculations, phase stability analysis, or MLIP training.
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 generate clean, ordered atomic configurations from disordered starting structures (e.g., experimental structures with fractional occupancies). These ordered candidates can be used for ground-state property calculations, phase stability analysis, or as starting points for MLIP training.
Identify Disordered Structures: Ensure your input structure (typically a CIF file) contains fractional occupancies or partial site occupancies.
Generate Ordered Candidates: Use the ranking and sampling strategy based on Ewald energy to pick configurations that satisfy stoichiometry while minimizing electrostatic repulsion.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_ordering.py disordered.cif \
--n_structures 50 --target_atoms 50 --output_dir ordered_results
The script uses pymatgen's OrderDisorderedStructureTransformation with a fast Ewald-based solver (ALGO_FAST). It generates a large pool of candidates, ranks them by Ewald energy, and samples across the spectrum to ensure both low-energy (ground-state-like) and higher-energy (excited-state-like) configurations are captured.
For structures with very few atoms per cell or complex stoichiometry, the script automatically searches for a supercell expansion that:
--target_atoms (default: 50).--target_atoms too high (>120) if you plan to follow up with DFT calculations.from .agents.skills.mat_disorder.scripts.order_disorder_sampler import OrderDisorderSampler
from ase.io import read
atoms = read("disordered.cif")
sampler = OrderDisorderSampler(
atoms=atoms,
n_structures=20,
target_atoms=60,
include_perturbation=1
)
ordered_structures = sampler.sample()
For more accurate Cluster Expansions, use the iterative training workflow which cycles between structure generation, relaxation, model fitting, and Monte Carlo sampling to fully explore the configuration space.
[!TIP] Train your CE model first: Please refer to the ml-cluster-expansion skill to train a robust Cluster Expansion model. This skill focuses on using that trained model for simulations.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/iterative_ce_training.py \
primordial.cif \
--iterations 5 \
--n_samples 20 \
--mlip_model MACE-MP-medium \
--output_dir ce_results
cpu for basic sampling, iterative training and smol-based analysis._atom_site_occupancy).ALGO_FAST for efficiency; while fast, it may not find the global Ewald minimum for extremely large cells.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/CuAg_MC/README.md (opens in a new tab)examples/CuAg_MC/cluster_expansion.json (opens in a new tab)examples/CuAg_MC/mc_300K_energy.png (opens in a new tab)examples/CuAg_MC/mc_300K_final.cif (opens in a new tab)examples/CuAg_MC/mc_300K_initial.cif (opens in a new tab)examples/CuAg_MC/primordial.cif (opens in a new tab)scripts/iterative_ce_training.py (opens in a new tab)scripts/order_disorder_sampler.py (opens in a new tab)scripts/relax_wrapper.py (opens in a new tab)scripts/run_ordering.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