pymatgen

Analyze crystal structures and generate phase diagrams with pymatgen.

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Sologa/codex-pipeline --skill pymatgen-sologa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/Sologa/codex-pipeline/tree/main/.codex/skills/pymatgen
Command: npx skills add https://github.com/Sologa/codex-pipeline --skill pymatgen-sologa

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies complex materials science computations and data analysis, making advanced computational materials science accessible.

Core Features & Use Cases

  • Structure Analysis: Analyze crystal structures, symmetry, and bonding.
  • Phase Diagrams: Generate and interpret phase diagrams for thermodynamic stability.
  • Electronic Structure: Analyze band structures and density of states.
  • Use Case: A researcher needs to predict the stability of a new alloy composition. They can use this Skill to generate a phase diagram and analyze the thermodynamic stability of their proposed material against known compounds.

Quick Start

Use the pymatgen skill to analyze the structure file 'POSCAR'.

Frequently Asked Questions about pymatgen

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

FAQPage Schema
How do I generate a phase diagram to check the thermodynamic stability of a new alloy?

To generate a phase diagram for thermodynamic stability analysis, you can use computational materials science tools to process your alloy composition and evaluate it against known compounds.

How do I convert crystal structure file formats like POSCAR for computational chemistry workflows?

You can convert crystal structure file formats like POSCAR by using structure manipulation functions to parse the input file and export it into the required format for your computational chemistry workflow.

Can I analyze electronic structure and density of states using the pymatgen library?

Yes, you can analyze electronic structure by calculating band structures and density of states from materials science data to understand the electronic properties of your crystal structures.

Do I need the mp-api package to integrate Materials Project database queries?

Yes, you need the mp-api package alongside pymatgen to enable full Materials Project database integration and query thermodynamic or structural data for your computations.

What is the best way to perform symmetry analysis on crystal structures?

The best way to perform symmetry analysis on crystal structures is to use a computational materials science toolkit that provides built-in functions to detect space groups and analyze bonding symmetry.