pymatgen

Analyze crystal structures and construct phase diagrams with pymatgen.

2|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill pymatgen-lord1egypt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/Lord1Egypt/scientific-agent-toolkit/tree/main/scientific-skills/pymatgen
Command: npx skills add https://github.com/Lord1Egypt/scientific-agent-toolkit --skill pymatgen-lord1egypt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymatgen, mp-api, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity of materials science research by providing a unified, automated interface for crystal structure manipulation, thermodynamic analysis, and electronic structure calculations.

Core Features & Use Cases

  • Structure Analysis: Perform symmetry analysis, coordination environment identification, and diffraction pattern generation.
  • Thermodynamic Modeling: Construct phase diagrams and Pourbaix diagrams to predict material stability and reaction pathways.
  • Use Case: A researcher needs to screen potential battery cathode materials; this Skill can automatically retrieve structures from the Materials Project, calculate their energy above the convex hull, and generate a phase diagram to assess thermodynamic stability.

Quick Start

Use the pymatgen skill to analyze the symmetry and coordination environment of the crystal structure provided in the POSCAR file.

Frequently Asked Questions about pymatgen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze the symmetry and coordination environment of a crystal structure from a POSCAR file?

To analyze a crystal structure from a POSCAR file, this Skill performs automated symmetry analysis and identifies the coordination environment of the atoms. It directly supports structure manipulation for computational materials science workflows.

Can I calculate the energy above the convex hull to screen battery cathode materials?

Yes, you can calculate the energy above the convex hull to screen battery cathode materials. This Skill retrieves structures from the Materials Project and assesses their thermodynamic stability automatically.

How do I construct phase diagrams and Pourbaix diagrams to predict material stability?

You construct phase diagrams and Pourbaix diagrams to predict material stability by applying the thermodynamic modeling features of this Skill. It calculates reaction pathways and stability profiles for high-throughput materials discovery.

Do I need the mp-api package to retrieve structures from the Materials Project database?

Yes, you need the mp-api package along with pymatgen to retrieve structures from the Materials Project. These dependencies are required for full functionality and automated integration with the database.

What is the best way to automate high-throughput workflows for electronic structure property prediction?

The best way to automate high-throughput workflows for electronic structure property prediction is using this Skill. It provides a unified interface for electronic structure calculations and supports automated analysis of crystal systems, surfaces, and interfaces.

Does this approach work for generating diffraction patterns and analyzing crystal surfaces?

Yes, this approach works for generating diffraction patterns and analyzing crystal surfaces. The Skill provides comprehensive structure analysis capabilities, including symmetry identification and automated analysis of surfaces and interfaces.