/atomistic-skills:mat-phase-diagramfrom Atomistic Skills
Retrieves and visualizes pre-computed phase diagrams from Materials Project for thermodynamic stability analysis. Plots convex hulls and competing phases.
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.
Retrieve pre-computed phase diagrams from Materials Project to analyze thermodynamic stability, competing phases, and convex hull relationships. Phase diagrams are essential for understanding:
Retrieve a phase diagram for a chemical system:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_phase_diagram.py \
--chemsys "Li-O" \
--output li_o_phase_diagram.json
Output: JSON file containing the phase diagram data (entries, energies, hull)
Add --plot flag to create a visualization:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_phase_diagram.py \
--chemsys "Li-O" \
--output li_o_pd.json \
--plot li_o_pd.png
Output: PNG plot showing the convex hull and stable/unstable phases
By default, retrieves GGA+U phase diagrams. For R2SCAN data:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_phase_diagram.py \
--chemsys "Li-Fe-P-O" \
--thermo_type "R2SCAN" \
--output lifepo4_r2scan_pd.json \
--plot lifepo4_r2scan_pd.png
Thermo types:
GGA_GGA+U (default): Standard PBE with U correctionsR2SCAN: Meta-GGA functional (more accurate)GGA: Pure PBE without U correctionsmaterial-stability SkillUse phase diagrams to visualize competing phases:
# 1. Get phase diagram
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_phase_diagram.py \
--chemsys "Li-O" \
--output li_o_pd.json \
--plot li_o_pd.png
# 2. Check specific material's position on hull
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/../mat-db-mp/scripts/query_mp.py \
--formula "Li2O" \
--properties energy_above_hull formation_energy_per_atom \
--output li2o_stability.json
Query stable structures from a chemical system for training data:
# 1. Visualize phase diagram to understand stable phases
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/get_phase_diagram.py \
--chemsys "Li-S" \
--output li_s_pd.json \
--plot li_s_pd.png
# 2. Query all stable structures
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/../mat-db-mp/scripts/query_mp.py \
--chemsys "Li-S" \
--e_above_hull_max 0.0 \
--properties energy_above_hull formation_energy_per_atom \
--output li_s_stable.json
MP_API_KEY environment variablecpu environmentmp-api, pymatgen, matplotlib (all installed in cpu)Use MP Phase Diagrams (this skill) when:
Calculate Custom Phase Diagrams when:
For custom phase diagram construction, see material-stability skill which can build phase diagrams from user-provided energies.
See examples/ directory for:
Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/Li-O/README.md (opens in a new tab)examples/Li-O/li_o_example.sh (opens in a new tab)examples/Li-O/li_o_phase_diagram/li2o_stability.json (opens in a new tab)examples/Li-O/li_o_phase_diagram/li_o_pd.json (opens in a new tab)examples/Li-O/li_o_phase_diagram/li_o_pd.png (opens in a new tab)scripts/get_phase_diagram.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