pymatgen

Analyze crystal structures, phase diagrams, and electronic structures with pymatgen.

321|26|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mkurman/tamux --skill pymatgen-mkurman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/mkurman/tamux/tree/main/skills/scientific-skills/pymatgen
Command: npx skills add https://github.com/mkurman/tamux --skill pymatgen-mkurman

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Pymatgen provides a comprehensive toolkit for analyzing and transforming materials data, enabling researchers to extract meaningful insights from crystal structures, phase diagrams, and electronic structure calculations with reproducible workflows.

Core Features & Use Cases

  • Crystal structure handling: read, convert, and manipulate CIF/POSCAR/XYZ structures.
  • Phase diagram and thermodynamics: build phase diagrams, compute hulls, and analyze stability.
  • Electronic structure analysis: process band structures and DOS, and interface with Materials Project data.
  • Integration and automation: chain analyses into end-to-end workflows and batch processing across datasets.

Quick Start

Install pymatgen and run basic analysis scripts to load CIF/POSCAR files, convert formats, and access Materials Project data.

Frequently Asked Questions about pymatgen

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

FAQPage Schema
How do I analyze crystal structures from CIF and POSCAR files?

You can analyze crystal structures by loading CIF, POSCAR, or XYZ files into pymatgen workflows, which read, convert, and manipulate structural data to extract meaningful materials insights reproducibly.

How do I build phase diagrams and compute hulls for thermodynamic stability?

Pymatgen workflows build phase diagrams and compute convex hulls from materials data, enabling you to analyze thermodynamic stability and phase equilibria efficiently.

Can I process band structure and DOS data using Materials Project workflows?

Yes, pymatgen workflows process band structures and DOS by interfacing with Materials Project data via the mp-api, enabling comprehensive electronic structure analysis and automation.

Do I need Python 3.10 or higher to run pymatgen materials analysis scripts?

Yes, running pymatgen and mp-api materials analysis scripts requires Python 3.10 or higher to process crystal structures, phase diagrams, and electronic structure data.

What is the best way to batch process materials datasets and chain analyses?

Pymatgen workflows offer integration and automation features to chain analyses into end-to-end pipelines, enabling efficient batch processing across multiple materials datasets.

Why use pymatgen over other tools for materials data transformation?

Pymatgen provides a comprehensive toolkit specifically for materials data transformation, offering reproducible workflows for crystal structures, phase diagrams, and electronic structures that generic data tools lack.