pymatgen

Analyze, build, and transform crystal structures and materials data.

1|2|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/fuzzy-dynamics/strings --skill pymatgen-fuzzy-dynamics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/fuzzy-dynamics/strings/tree/main/packages/skills/pymatgen
Command: npx skills add https://github.com/fuzzy-dynamics/strings --skill pymatgen-fuzzy-dynamics

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 to analyze, build, and transform crystal structures and related materials data.

Core Features & Use Cases

  • Structure creation, manipulation, and format conversion (CIF, POSCAR, XYZ, etc.)
  • Phase diagrams, thermodynamics, and materials discovery workflows
  • Electronic structure analysis (band structure, DOS) and surface/interface studies
  • Materials Project integration via the mp-api for programmatic data access
  • High-throughput workflow support and code integration for research pipelines

Quick Start

Install pymatgen, then load a structure with Structure.from_file('POSCAR') and begin exploring basic operations.

Frequently Asked Questions about pymatgen

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

FAQPage Schema
How do I read and convert crystal structure files like CIF and POSCAR?

Read and convert crystal structure files using Structure.from_file to load formats like CIF or POSCAR, then apply transformations for supercell creation, symmetry analysis, and format export.

What is the best way to generate phase diagrams for materials discovery?

Generate phase diagrams for materials discovery by applying thermodynamic analysis modules to crystal structure data, enabling evaluation of compound stability and prediction of reaction pathways.

Can I retrieve Materials Project data programmatically for electronic structure analysis?

Retrieve Materials Project data programmatically using the mp-api package integration, which supports access to electronic structure properties including band structure and density of states.

Do I need Python 3.10 and mp-api to build crystal structures and run high-throughput workflows?

Python 3.10 or higher and the mp-api package are required to build crystal structures and run high-throughput workflows, ensuring compatibility with pymatgen analysis modules and Materials Project integration.

Does pymatgen work for surface and interface studies using crystal structure manipulation?

Pymatgen supports surface and interface studies through its crystal structure manipulation modules, allowing users to build, transform, and analyze structural slabs for materials research.

What are the limitations of using pymatgen for electronic structure and thermodynamic analysis?

Pymatgen requires correct structural inputs and valid Materials Project API access for electronic structure and thermodynamic analysis, and depends on Python 3.10+ compatibility for high-throughput workflow execution.