mat-pourbaix-diagram

Generate Pourbaix (pH–potential) diagrams by evaluating aqueous-phase electrochemical stability using energies from water-corrected machine-learned interatomic potentials (MLIPs) together with pymatgen.

Last repository push
GitHub Stars
193
Forks
37
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mat-pourbaix-diagram" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c51bad67070ea50c95fdf23a0682b99214ce76dbca0916ea083ab19cbddfd297. Verify the upstream source and version against https://github.com/learningmatter-mit/AtomisticSkills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Generate Pourbaix (pH–potential) diagrams by evaluating aqueous-phase electrochemical stability using energies from water-corrected machine-learned interatomic potentials (MLIPs) together with pymatgen.

0 Downloads

Introduction source: third_party · learningmatter-mit · 0.0.1 Reference

SkillPi interpretation

Tasks
Calculate Pourbaix (pH-voltage) diagrams for aqueous electrochemical stability using water-corrected MLIP energies and pymatgen.
Limits and differences
**Energy Consistency**: All structures (molecules + solids) MUST be relaxed with the **same MLIP model**. **Water Correction**: REQUIRED for thermodynamic consistency. Skipping water correction will produce incorrect diagrams. **Convergence**: Use `fmax ≤ 0.02 eV/Å` for both molecules and solids. **Chemical System**: Automatically determined from target material and MP ion data. **Temperature**: Calculations assume 298 K (25°C). **Reference Electrode**: Results are vs. Standard Hydrogen Electrode (SHE). **Materials Project Access**: Requires `MP_API_KEY` environment variable. **DFT Validation**: For publication-quality results, validate critical stability boundaries with DFT.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: mat-pourbaix-diagram
description: Calculate Pourbaix (pH-voltage) diagrams for aqueous electrochemical stability using water-corrected MLIP energies and pymatgen.
category: [materials]

Pourbaix Diagram

Goal

To calculate thermodynamically consistent Pourbaix (pH-voltage) diagrams for assessing the aqueous electrochemical stability of materials. This skill uses Machine Learning Interatomic Potentials (MLIPs) for solid phase energies combined with Materials Project data for aqueous species, following the rigorous methodology of Persson et al. (2012)¹.

Applications:

  • Alkaline-stable solid-state electrolytes (Li-air batteries)
  • Corrosion-resistant materials
  • Aqueous battery electrodes
  • Electrochemical stability screening

Features

  • Automated Referenced: Fetches elemental energies from elemental-energies skill to fill missing terminal entries (e.g., if you relaxed LiCoO2 but forgot Li metal, it will be auto-loaded).
  • H2O Reference: Checks resources/h2o_energies.json values matching the MLIP checkpoint. If found, uses this pre-calculated energy. If not found, falls back to look for H2O relaxation in the --relaxed_solids directory.
  • MP2020 Compatibility: Automatically detects if compatibility corrections are needed via gga-ggau-mixed-mlips.yaml.

Background

Pourbaix Diagrams

A Pourbaix diagram shows the thermodynamically stable phases as a function of pH and electrochemical potential (voltage vs. SHE). The diagram maps stability domains for solids and dissolved ions in aqueous environments.

Critical: Thermodynamic Consistency

The Challenge: Mixing computational (MLIP/DFT) solid energies with experimental aqueous ion data creates energy scale mismatch.

The Solution (Persson et al. 2012)¹: Water correction that aligns MLIP water formation energy with experimental Gibbs free energy. We use a robust cycle that fixes the hydrogen reference to the Standard Hydrogen Electrode (SHE) scale.

3. Automated Referencing

The script calculate_pourbaix.py automatically:

  1. Fetches per-atom elemental energies from the elemental-energies skill.
  2. Applies thermodynamic corrections for H₂ gas ($S^\circ$, $\Delta H$) to deriving $\mu_H$.
  3. Uses a locally relaxed H₂O structure to derive $\mu_O$, ensuring correct water formation energy.
    • H2O Reference: Checks resources/h2o_energies.json values matching the MLIP checkpoint. If found, uses this pre-calculated energy. If not found, falls back to look for H2O relaxation in the --relaxed_solids directory.

Is calculate_water_correction.py still needed? No. The correction logic is now internal to calculate_pourbaix.py to simplify the workflow.

Resources

  • resources/h2o_energies.json: A dictionary mapping MLIP checkpoint names (e.g., MACE-MP-medium, uma-s-1_omat) to the relaxed energy of H2O per atom. This avoids the need for manual H2O relaxation when using supported MLIPs.

Methods: MLIP vs. Pure Materials Project

There are two ways to generate Pourbaix diagrams using this skill. Prioritize Method 1 (Pure MP) if the target chemical system's energies are likely present and accurate in the Materials Project database. Use Method 2 (MLIP) when investigating novel materials, specific polymorphs not in MP, or when high-fidelity MLIP energies are preferred.

Method 1: Pure Materials Project (Recommended for existing materials)

Use calculate_pourbaix_mp.py to fetch entries directly from Materials Project. This requires no local relaxation and uses MP's internal DFT energies.

# Env: base-agent
python .agents/skills/mat-pourbaix-diagram/scripts/calculate_pourbaix_mp.py \
    --comp_dict "Li=1,Fe=1" \
    --output ./output_dir

Method 2: MLIP-Calculated Workflow (For novel/specific structures)

Use this workflow to calculate stability using specific MLIP models. This involves fetching structures, relaxing them, and then generating the diagram.

1. Get Structures from Materials Project

Query all relevant solid phases and reference molecules:

# Env: base-agent
python .agents/skills/mat-pourbaix-diagram/scripts/get_pourbaix_structures.py \
    --chemsys "Zn" \
    --output_dir ./structures/

This retrieves:

  • All solid phases in the chemical system (e.g., Zn, ZnO, ZnO2, etc.)
  • Reference molecule: H₂O (Required for water correction)

2. Select Foundation Potential

Choose an appropriate MLIP based on your system (see .agents/skills/ml-foundation-potentials/SKILL.md).

[!IMPORTANT] Recommended for Pourbaix diagrams: MatPES-r2SCAN To ensure energy scale compatibility with Materials Project aqueous ions (which are often based on r2SCAN or compatible corrections), prioritize using r2SCAN-trained MLIPs.

  • MatGL: CHGNet-MatPES-r2SCAN-2025.2.10-2.7M-PES
  • MACE: MACE-MH-1 with matpes_r2scan head.

3. Relax Reference H₂O

The script get_pourbaix_structures.py automatically copies H₂O into the references/ subdirectory. Relax it using the same MLIP model to allow internal calibration:

# Example with FairChem UMA-small (recommended)
mcp_fairchem_load_model(model_name="uma-s-1p1")

# Relax H2O reference
mcp_fairchem_relax_structure(
    structure_data="./structures/references/H2O.cif",
    fmax=0.02,
    steps=500,
    relax_cell=True,
    output_dir="./relaxed_solids/" # SAVE TO SAME DIR AS SOLIDS
)

Critical: Use fmax ≤ 0.02 eV/Å for reliable energies. Note: H₂ and O₂ references are NOT required to be relaxed locally because the script uses pre-computed elemental energies for gas phase corrections. Only H₂O is needed for determining the specific water formation energy offset.

4. Relax Solid Phases

Relax all solid phases (and included H2O) using the same MLIP:

# Batch relax all solids with same MLIP
# (Model already loaded from step 3)
mcp_fairchem_relax_structure(
    structure_data="./structures/structures/",  # Directory with all CIF files
    relax_cell=True,
    fmax=0.02,
    steps=500,
    output_dir="./relaxed_solids/"
)

Critical: Use the same MLIP model for molecules and solids!

5. Calculate Pourbaix Diagram

Construct the diagram using automated referencing (fetching elemental energies and deriving corrections internally):

# Env: base-agent
python .agents/skills/mat-pourbaix-diagram/scripts/calculate_pourbaix.py \
    --relaxed_solids ./relaxed_solids/ \
    --target "Zn" \
    --mlip_name "uma-s-1p1" \
    --output ./pourbaix_results/ \
    --apply_solid_compat

Parameters:

  • --relaxed_solids: Directory with MLIP-relaxed solid structures (MUST include the relaxed H2O)
  • --target: Target metal element (or use --comp_dict for multi-element)
  • --comp_dict: (Optional) Composition dictionary for K-nary systems (e.g. "Li=1,Fe=1")
  • --mlip_name: Name for the plot title (and for looking up elemental energies)
  • --output: Output directory
  • --apply_solid_compat: (Optional) Apply Materials Project 2020 compatibility corrections. Use only if your MLIP is trained on MP data (e.g. MACE-MP, CHGNet). Do NOT use for UMA or generic potentials unless verified.
  • --ion_concentration: Ion concentration in M (default: 1e-6)

Critical: Use the same MLIP for all structures in a single workflow!

6. Interpret Results

The scripts generate:

  • pourbaix_diagram.png: Visual representation
  • stable_entries.json: List of all stable phases in the diagram
  • Stability domains for each phase across pH/V space

Interpretation:

  • Solid domain: Material is thermodynamically stable as a solid
  • Ion domain: Material dissolves into aqueous ions
  • Passivation: Material covered by protective oxide layer

Constraints

  • Energy Consistency: All structures (molecules + solids) MUST be relaxed with the same MLIP model.
  • Water Correction: REQUIRED for thermodynamic consistency. Skipping water correction will produce incorrect diagrams.
  • Convergence: Use fmax ≤ 0.02 eV/Å for both molecules and solids.
  • Chemical System: Automatically determined from target material and MP ion data.
  • Temperature: Calculations assume 298 K (25°C).
  • Reference Electrode: Results are vs. Standard Hydrogen Electrode (SHE).
  • Materials Project Access: Requires MP_API_KEY environment variable.
  • DFT Validation: For publication-quality results, validate critical stability boundaries with DFT.

Theoretical Background

Following Persson et al. (2012)¹, the grand Pourbaix potential is:

ϕ_pbx = G - μ_H·N_H - μ_O·N_O - eV·Q

The water correction aligns MLIP solid energies (computational scale) with MP aqueous ion free energies (experimental scale) by enforcing:

ΔGf(H₂O)_corrected = -2.4583 eV (experimental)

This allows thermodynamically consistent mixing of:

  • MLIP total energies for solids
  • MP Gibbs free energies for aqueous ions

References

  1. K. A. Persson, B. Waldwick, P. Lazic, G. Ceder. "Prediction of solid-aqueous equilibria: Scheme to combine first-principles calculations of solids with experimental aqueous states." Physical Review B 85, 235438 (2012). DOI:10.1103/PhysRevB.85.235438

  2. Hierarchical screening methodology: arXiv:2511.20964

  3. Pymatgen Pourbaix module: https://pymatgen.org/pymatgen.analysis.pourbaix_diagram.html

  4. Related skills:

Author: Bowen Deng Contact: GitHub @learningmatter-mit

Version history

  1. v2.0.0 GitHub ↗
    Original release notes

    ## What's Changed > [!WARNING] > **BREAKING MAJOR RELEASE**: AtomisticSkills 2.0.0 completely overhauls the runtime architecture, replacing legacy manual conda environments with unified, deterministic `uv` projects and container fallbacks, restructuring skills to comply with the standard Agent Skills specification, and consolidating MCP servers. Existing 1.x installations, conda environments, and configurations are not backwards-compatible. Please review the migration guide below. ### Repository Stats | Component | v1.3.4 | v2.0.0 | Added | |--------------|--------|--------|-------| | Skills | 129 | 133 | +4 | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 10 | — | ### New Skills | Skill | Description | Author | |-------|-------------|--------| | `general-atomisticskills-rules` | Working rules for atomistic research with AtomisticSkills -- how to scope a request, set up a research directory and a plan before simulating, run skills and MCP tools, stay within GPU memory, and report results. | @bowen-bd | | `general-atomisticskills-setup` | Set up, check or troubleshoot how AtomisticSkills runs on this machine -- creating its Python environments, connecting its MCP servers, choosing uv or a container runtime, and configuring API keys. | @bowen-bd | | `general-publisher-access-guard` | Avoid bot-blocking publisher websites by routing paper retrieval through legal open-access APIs and mirrors. | @bowen-bd | | `mat-wannier-tight-binding` | Construct and validate Wannier tight-binding models, inspect orbital localization and hopping amplitudes, and interpolate electronic bands from DFT or existing Wannier90 files. | @bowen-bd | ### Breaking Changes: 1.x to 2.0.0 Overview | Area | 1.x | 2.0.0 | | :--- | :--- | :--- | | **Python Environments** | ~20 manual conda environments (`base-agent`, `mace-agent`, etc.) | Deterministic `uv` projects (`venv/cpu`, `venv/mlip`, `venv/fairchem`) + pinned research stacks (`adit`, `diffcsp`, `mattergen`, `msms`, `reactot`, `scd`) | | **Execution Launcher** | `conda run -n <env> python ...`, `# Env:` annotations | Unified launcher `venv/run <venv>[+extra] <cmd>`; SKILL commands invoke `${CLAUDE_SKILL_DIR}/../../venv/run` | | **MCP Server Config** | Fragmented per-server configs with hardcoded interpreter paths | Consolidated 10 multi-tool servers started via `venv/run --server <name>` | | **MCP Shell Fallback** | Required running standalone agent scripts | Direct shell CLI fallback: `venv/run <venv> python -m src.mcp_server.cli <server> <tool> key=value ...` sharing process state | | **Claude Plugin** | Custom layout under `.agents/skills`, unrecognised spec keys | Root plugin via `.claude-plugin/plugin.json`, skills at `skills/` adhering to standard 6-key Agent Skills spec | | **Container Images** | Custom Dockerfiles (`atomisticskills-lightweight`, `-mace`, etc.) | Dual-architecture OCI images (`-cpu`, `-mlip`, `-fairchem`, `-generative`) locked from uv dependencies with Apptainer support | | **MatGL & CHGNet** | MatGL with DGL backend; 2025 MatPES checkpoint | MatGL ≥ 4 (PyTorch Geometric only); default CHGNet is `CHGNet-PES-MatPES-PBE-1M-2026.9` | | **GPU / CUDA** | Generic CUDA 12 builds | Dynamic runtime detection: CUDA 13 (driver ≥ 580) vs CUDA 12.6 (drivers 525–579) PyTorch builds | --- ### Conda to UV & Docker Migration: Runtime Dispatch Rules Conda environments have been entirely eliminated (`conda-envs/` is removed). AtomisticSkills now uses a unified launcher backend driven by `venv/run`: #### 1. When is Native `uv` Used? By default (`ATOMISTIC_RUNTIME=auto`), `venv/run` inspects the host platform and executes natively with `uv` when: - The OS is Linux on `x86_64` or `aarch64`. - The host `glibc` meets the requirement declared in `venv/platforms.tsv` for the requested project (e.g. glibc ≥ 2.34 for OpenMM, glibc ≥ 2.32 for generative PyG wheels, glibc ≥ 2.28 for base CPU). - A host C compiler (`gcc` / `clang`) is available for any package source builds. - Environments sync on-demand inside the repository under `venv/<project>/.venv` in seconds using Astral `uv`. #### 2. When is Container Execution (Docker / Apptainer / Podman) Used? A container is dispatched automatically or explicitly when: - **Automatic Fallback**: The host system does not satisfy the platform criteria (e.g., glibc is older than required, running on non-Linux, or lacking native PyG/CUDA compilers on arm64). - **HPC Environments**: On high-performance computing clusters where users lack root/docker permissions, `ATOMISTIC_RUNTIME=apptainer` builds or reuses SquashFS SIF images directly in `~/.cache/atomisticskills/images/` and passes GPUs via `--nv`. - **Explicit Override**: Setting `ATOMISTIC_RUNTIME=docker`, `podman`, or `apptainer` forces container execution. Host workspaces, project directories, and source checkouts are mounted at identical paths so output file ownership and permissions belong directly to the user. #### 3. Why Three Shared Environments + Pinned Research Stacks? Rather than a single bloated environment, three shared `uv` projects resolve fundamental package incompatibilities: 1. `venv/cpu`: Fast, lightweight environment for ASE, pymatgen, RDKit, pycalphad, MDAnalysis (Python 3.12, NumPy 2.5+, no PyTorch). 2. `venv/mlip`: MACE and MatGL (PyTorch 2.14.1, `mace-torch 0.3.16` pinning `e3nn==0.4.4`, `matgl 4.1.0`, NumPy 2.3.5). 3. `venv/fairchem`: FairChem foundation models (PyTorch 2.13.0, `fairchem-core 2.23.0` requiring `e3nn>=0.5`, NumPy 2.3.5). 4. **Pinned Research Stacks**: Stacks requiring legacy PyTorch versions or custom C++/CUDA extensions (`adit`, `diffcsp`, `mattergen`, `msms`, `reactot`, `scd`) run in isolated uv projects replicating their exact verified dependency sets without perturbing shared foundations. --- ### Modernized Model Context Protocol (MCP) Integration - **10 Consolidated Multi-Tool Servers**: Replaced 20 fragmented single-purpose servers with 10 coherent domain servers: `base`, `atomate2`, `drugdisc`, `smol`, `mace`, `matgl`, `fairchem`, `adit`, `diffcsp`, and `mattergen`. - **Unified Server Launcher**: Every server is started through the launcher: ```bash venv/run --server <server_name> ``` `configure_mcp.py` automatically generates compliant configurations for Claude Desktop, Claude Code, Gemini CLI, Cursor, and Windsurf. - **Headless Shell CLI Fallback**: Any MCP tool can be invoked directly from the terminal without an active MCP JSON-RPC connection: ```bash venv/run <venv> python -m src.mcp_server.cli <server> <tool> key=value ... ``` Multiple tools chained in a single invocation share process memory, allowing stateful workflows (e.g., `load_model` followed immediately by `relax_structure`). - **Harness Separation**: Agent harness utilities (`task_boundary`, `notify_user`) are strictly decoupled from the MCP server interfaces. --- ### Claude Plugin Architecture & Spec Compliance - **Standard Plugin Layout**: Configured via `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` at repository root. - **Spec-Compliant Frontmatter**: All skills now reside at `skills/<skill_name>/SKILL.md` (with `.agents/skills` maintained as a compatibility symlink). Frontmatter strictly follows the 6-key Agent Skills specification; categories are nested under `metadata.category` and required environments under `metadata.venv`. - **Self-Locating Executables**: Skill command templates use `${CLAUDE_SKILL_DIR}/../../venv/run <venv> python ...`, ensuring flawless path resolution across project skills, personal skills, and plugin installations. - **Runtime Configuration Options**: Plugin users can configure runtime preferences via plugin settings: `runtime` (`auto`, `uv`, `docker`, `apptainer`), `image_registry`, and `image_tag`. Simulation artifacts write directly into the active user workspace rather than internal plugin directories. --- ### Upgrade Instructions #### For Claude Plugin Users ```bash claude plugin marketplace update atomistic-skills claude plugin update atomistic-skills@atomistic-skills ``` Restart Claude Code. Environments are generated automatically on first use or initialized ahead of time via `venv/run --setup`. #### For Clone / Local Users ```bash git pull origin main venv/run --setup # Initializes venv/cpu, venv/mlip, and venv/fairchem venv/run --doctor # Validates runtime status and detected CUDA drivers python configure_mcp.py # Rewrites agent MCP configurations ``` --- ### Other Highlights & Enhancements - **MLIP Models & Weights**: Upgraded MatGL to 4.x (PyTorch Geometric backend, dropping DGL), defaulted CHGNet to the latest `CHGNet-PES-MatPES-PBE-1M-2026.9` checkpoint, and added opt-in batched GPU inference via NValchemi. - **Elasticity Refactor**: Overhauled `mat-elasticity` to use pymatgen `ElasticTensor` and `ComplianceTensor` directly with relaxed-ion defaults and off-axis compliance verification. - **Equation of State**: Corrected Birch-Murnaghan minimum parameter fit extraction and energy-volume curve export in `mat-equation-of-state`. - **Spectrometry**: Ported `chem-msms-predict` to ICEBERG 2.1 (ms-pred 2.1) on a dedicated uv project with automated MassSpecGym weights download. - **LAMMPS Integration**: Added dedicated build scripts in `mat-lammps-md` targeting `venv/mlip` (`mlip+lammps`) and `fairchem+lammps`. - **DFT Robustness**: Fixed `Atomate2Handler.check_status` job lookup by UUID via JobController's custom query interface.

  2. v1.3.4 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.3 | v1.3.4 | Added | |--------------|--------|--------|-------| | Skills | 128 | 129 | +1 | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### New Skills | Skill | Description | Author | |-------|-------------|--------| | `mat-edi-mobility` | Compute defect-limited carrier mobility and electron-defect scattering matrix elements in 2D and 3D semiconductors from first principles with Quantum ESPRESSO and the EDI plugin. | @cz2014 | ### Other Highlights - **Defect-Limited Mobility**: Added the [mat-edi-mobility](file://.agents/skills/mat-edi-mobility/SKILL.md) skill to compute defect-limited carrier mobility and electron-defect scattering matrix elements in 2D/3D semiconductors using Quantum ESPRESSO and the EDI plugin. - **QHA Thermal Expansion**: Exposed `--fmax` and `--max_steps` in `mat-qha-thermal-expansion` to prevent convergence stalls on MLIP forces; added optional `--volume_window` control while preserving field-standard volume window defaults and updating strain convention documentation. - **Toxicity & Hazard Triage**: Added GHS acute oral toxicity category profiling and consensus GHS code extraction to `chem-hazard-toxicity`. - **Claude Code Native Integration**: Registered `.agents/skills` as native Claude Code project skills when configuring agent integrations. - **Synthesis Recommendation**: Enhanced Materials Project API compatibility in `mat-synthesis-recommendation` for newer `mp-api` synthesis endpoints. - **Linter & Code Hygiene**: Configured ruff `per-file-ignores` for `E402` in `pyproject.toml` and removed redundant inline noqa comments across MCP servers and skill scripts. - **Documentation & Citations**: Updated the paper citation in `README.md` to reflect publication year 2026.

  3. v1.3.3 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.2 | v1.3.3 | Added | |--------------|--------|--------|-------| | Skills | 127 | 128 | +1 | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### New Skills | Skill | Description | Author | |-------|-------------|--------| | `mat-epw-mobility` | Compute carrier mobility and mode-resolved electron-phonon coupling in 2D materials from first principles with Quantum ESPRESSO and EPW. | @cz2014 | ### Other Highlights - **Uncertainty Quantification**: Added detailed guidance and critical warnings to the committee uncertainty skill ([ml-committee-uncertainty](file:///home/bdeng/projects/AtomisticSkills/.agents/skills/ml-committee-uncertainty/SKILL.md)) regarding heterogeneous ensembles (multi-foundation models). Clarified that absolute energy standard deviation is not a valid disagreement signal when models do not share a common energy reference scale ($E_0$), and directed users to rank using force disagreement instead. - **Electron-Phonon Coupling**: Added the [mat-epw-mobility](file:///home/bdeng/projects/AtomisticSkills/.agents/skills/mat-epw-mobility/SKILL.md) skill to run Quantum ESPRESSO + EPW calculations for 2D semiconductors.

  4. v1.3.2 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.1 | v1.3.2 | Added | |--------------|--------|--------|-------| | Skills | 127 | 127 | — | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### Other Highlights - **NValchemi batched MD gating**: Re-benchmarked sequential vs. batched MD serially (no GPU contention) and found NValchemi batched MD is a win only for MACE (4.90x). Added a `_nvalchemi_supports_batch_md` flag that routes TensorNet and FairChem MD to the faster sequential path. TensorNet's light forward exposes a `torch.compile`/Warp neighbor-list stream race (officially supported by `matgl.ext.alchmtk`, so a hardware limitation, not an incompatibility) and is ~0.88x even when forced; FairChem uma-s-1p2's forward scales superlinearly per atom (1.57 ms/atom at batch=1 → 2.43 at batch=20) so batched MD is 0.64x. - **FairChem cutoff fix**: Corrected the NValchemi FairChem wrapper's cutoff inference, which fell back to 12 Å / 500 neighbors instead of the model's true 6 Å / 300 (wrong attribute paths), making `adapt_input` build ~530 edges/atom of work that uma-s-1p2 discards (it runs with `external_graph_gen=False`). Added a robust `_find_backbone` walk. - **NValchemi fixed-batch relaxation**: Switched to standard form cell mapping and scaled FIRE2 optimizer to prevent cell distortion during relaxation. Fixed trailing post-convergence step handling and enabled native convergence masking in fixed-batch mode. Disabled inflight batching for TensorNet to prevent neighbor-list OOB errors. - **MCP Server memory optimization**: Implemented automatic GPU memory cleanup (`gc.collect()` and `torch.cuda.empty_cache()`) within MACE, MatGL, and FairChem relaxation and molecular dynamics handlers to prevent VRAM accumulation. - **Skills & documentation**: Re-documented the NValchemi skill with corrected batched vs. sequential MD benchmarks for MACE, MatGL (TensorNet), and FairChem (UMA), and added a serial `run_md_benchmark.py` harness. Refined category tags on mass spectrometry and spectrum-matching skills.

  5. v1.3.1 GitHub ↗
    Original release notes

    ## What's Changed ### Repository Stats | Component | v1.3.0 | v1.3.1 | Added | |--------------|--------|--------|-------| | Skills | 127 | 127 | — | | Workflows | 9 | 9 | — | | MCP Tools | 49 | 49 | — | | Tool Servers | 20 | 20 | — | ### Other Highlights - **NValchemi Stability**: Fixed batch relaxation memory issues; added `PositionWrappingHook` and `ForceStressClippingHook` to prevent exploding trajectories during GPU-parallel relaxation. - **NValchemi Cell Relaxation**: Switched to `FIRE2VariableCell` with `dt=0.05` for more stable variable-cell relaxations. - **M3GNet / CHGNet**: Added `_nvalchemi_supports_relax=False` flag to skip NValchemi dispatch for models that do not support it; neighbor-list overflow and OOM errors now fall back gracefully to sequential relaxation. - **Tooling**: Updated `configure_mcp.py` to expose AtomisticSkills skills globally for all registered agents.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供专业的 Pourbaix 图计算功能,面向材料科学和电化学稳定性分析
  • 支持两种方法:纯 Materials Project 和 MLIP 工作流,适应不同场景需求
  • 自动化引用和热力学校正机制提升计算一致性
Trigger Precision90/100

Highlights

  • description 清晰描述核心功能,触发词精准
  • 应用场景和边界条件明确,减少误触风险
Structure and Standards95/100

Highlights

  • 文档结构完整,章节划分清晰
  • 提供详细的端到端示例和参数说明
  • frontmatter 完整,符合规范
Execution Reliability90/100

Highlights

  • 工具来源明确,参数说明详细
  • 覆盖主要异常情况处理机制
  • 强调关键约束条件(如使用相同 MLIP 模型)
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • arxiv.org
  • doi.org
  • github.com
  • pymatgen.org

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.