pymatgen

Analyze crystal structures, phase diagrams, and electronic properties from materials data.

22|4|Updated May 25, 2026
One-click install
npx skills add https://github.com/crazymsn/academic-skills --skill pymatgen-crazymsn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/crazymsn/academic-skills/tree/main/academic-skills/pymatgen
Command: npx skills add https://github.com/crazymsn/academic-skills --skill pymatgen-crazymsn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Pymatgen provides a robust, programmable toolkit to analyze crystal structures, compute phase diagrams, and interpret electronic and vibrational properties, enabling researchers to translate raw calculation outputs into actionable insights.

Core Features & Use Cases

  • Structure handling: read/write CIF/POSCAR/XYZ and manipulate lattice and site data
  • Phase diagrams and thermodynamics: build phase diagrams from computed entries, evaluate energy above hull, and decompose mixtures
  • Electronic structure analysis: band structure, density of states, and electronic properties from common codes
  • High-throughput workflows: generate inputs, automate analyses, and integrate with Materials Project data via mp-api
  • Materials data and visualization: compare compositions, plot diagrams, and summarize results

Quick Start

Install pymatgen and run Structure.from_file on a structure file to begin analysis.

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 or POSCAR files?▼

To analyze crystal structures, read CIF or POSCAR files using the Structure.from_file method, which parses lattice and site data for immediate symmetry and local environment analysis.

What is the best way to compute phase diagrams from computed entries?▼

Computing phase diagrams from computed entries involves building the diagram to evaluate energy above hull and decompose mixtures, translating raw calculation outputs into thermodynamic insights.

Can I integrate Materials Project data directly into my materials analysis workflow?▼

You can integrate Materials Project data directly into materials analysis workflows using mp-api, enabling automated input generation and high-throughput computational materials science tasks.

How do I extract band structure and density of states for electronic structure analysis?▼

Extracting band structure and density of states for electronic structure analysis requires parsing outputs from common calculation codes to interpret electronic and vibrational properties programmatically.

Do I need Python to run VASP-like workflows for high-throughput computational materials science?▼

Running VASP-like workflows for high-throughput computational materials science requires Python, utilizing pymatgen to generate inputs, automate analyses, and manipulate lattice and site data.