pymatgen

Analyze crystal structures and query DFT properties via the Materials Project API.

298|27|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/jaechang-hits/SciAgent-Skills --skill pymatgen-jaechang-hits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/jaechang-hits/SciAgent-Skills/tree/main/skills/scientific-computing/pymatgen
Command: npx skills add https://github.com/jaechang-hits/SciAgent-Skills --skill pymatgen-jaechang-hits

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, enabling users to analyze, predict, and design new materials with greater efficiency.

Core Features & Use Cases

  • Structure Analysis: Parse, manipulate, and analyze crystal structures from various file formats (CIF, POSCAR).
  • Materials Project Integration: Query a vast database of DFT-computed properties like band gaps and formation energies.
  • Thermodynamic Modeling: Construct and analyze phase diagrams and Pourbaix diagrams.
  • Simulation Input Generation: Create input files for popular DFT codes like VASP.
  • Use Case: Predict the stability and electronic properties of a novel Li-ion battery material by querying the Materials Project database and simulating its X-ray diffraction pattern.

Quick Start

Load the structure from 'material.cif', analyze its space group, and print its formula.

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 for materials science?

To analyze crystal structures, you can parse and manipulate CIF or POSCAR files to extract space groups, chemical formulas, and structural properties for materials discovery and property prediction.

How do I query DFT-computed properties like band gaps from the Materials Project database?

You can query DFT-computed properties like band gaps and formation energies by integrating with the Materials Project API to retrieve data for thermodynamic stability assessment and materials design.

What's the best way to generate VASP input files for DFT simulations?

Generating VASP input files for DFT simulations is achieved by loading your crystal structure and using the simulation input generation features to create the necessary computational files.

Can I construct and analyze phase diagrams and Pourbaix diagrams for thermodynamic modeling?

Yes, you can construct and analyze phase diagrams and Pourbaix diagrams to perform thermodynamic modeling and assess the stability of new materials.

Does this toolkit require pymatgen and mp-api to predict materials properties?

Yes, the toolkit requires both pymatgen and mp-api dependencies to perform materials analysis, query the Materials Project database, and predict properties of novel materials.