alterlab-pymatgen

Orchestrate pymatgen-based materials analysis workflows with CLI scripts.

58|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-pymatgen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alterlab-pymatgen
Source: https://github.com/AlterLab-IEU/AlterLab-Academic-Skills/tree/main/skills/domain-specific/alterlab-pymatgen
Command: npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-pymatgen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Materials scientists often spend excessive time orchestrating multiple tools to analyze crystal structures, generate phase diagrams, and interpret electronic structure data; this Skill provides a unified, scriptable workflow powered by pymatgen to streamline those tasks.

Core Features & Use Cases

  • Structure manipulation and analysis (read, modify, and analyze structures)
  • File format conversion and I/O across CIF, POSCAR, XYZ, and more
  • Phase diagrams, thermodynamics, and Materials Project data integration for high-throughput studies
  • Electronic structure analysis workflows (band structure, DOS, etc.)
  • Materials Project data access and integration for high-throughput research
  • CLI scripts for common tasks (conversion, analysis, phase diagrams)

Quick Start

Load a structure file (CIF, POSCAR, etc.) with Structure.from_file and run the quick-start workflow to generate a basic analysis and visualization.

Frequently Asked Questions about alterlab-pymatgen

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

FAQPage Schema
How do I automate pymatgen workflows for high-throughput materials analysis?

Automating pymatgen workflows for high-throughput materials analysis involves using scriptable CLI tools that orchestrate structure loading, format conversion, and phase diagram generation. This Skill provides those unified workflows to streamline computations across multiple crystal structures.

How do I generate phase diagrams and analyze thermodynamics using pymatgen?

To generate phase diagrams and analyze thermodynamics using pymatgen, this Skill integrates Materials Project data and provides CLI scripts for diagram generation. It automates the necessary thermodynamic calculations for high-throughput studies.

Can I convert CIF and POSCAR crystal structure files programmatically?

Yes, you can convert CIF and POSCAR crystal structure files programmatically using the format conversion and I/O CLI scripts provided. The Skill supports reading, modifying, and analyzing structures across CIF, POSCAR, and XYZ formats.

Do I need the mp-api package to access Materials Project data in pymatgen?

Yes, you need the mp-api package to access Materials Project data in pymatgen. This Skill requires Python 3.10+, pymatgen >= 2023.x, and mp-api specifically to enable Materials Project data integration for high-throughput research.

What is the best way to analyze electronic structure and DOS with pymatgen?

The best way to analyze electronic structure and DOS with pymatgen is through automated workflow scripts. This Skill provides dedicated electronic structure analysis workflows, including band structure and density of states processing.

Why does pymatgen structure loading fail when running high-throughput analysis scripts?

Pymatgen structure loading may fail during high-throughput analysis if the environment is misconfigured. Ensure your system meets the prerequisites: Python 3.10+ and pymatgen version 2023.x or higher are required for the CLI scripts to execute correctly.