pymatgen

Convert and analyze crystal structures for computational materials science workflows.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill pymatgen-jasrajtulsi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/jasrajtulsi/GRAD-SCOPE/tree/main/.claude/skills/pymatgen
Command: npx skills add https://github.com/jasrajtulsi/GRAD-SCOPE --skill pymatgen-jasrajtulsi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps computational materials scientists convert, inspect, analyze, and compare crystal structures while connecting those structures to phase stability, electronic properties, surfaces, and database-backed materials workflows.

Core Features & Use Cases

  • Structure conversion: Move between common materials file formats such as CIF, POSCAR, XYZ, PDB, JSON, and YAML.
  • Structure and symmetry analysis: Report composition, lattice parameters, space group information, coordination environments, distance matrices, and related geometric details.
  • Materials Project workflows: Query Materials Project data, build phase diagrams, inspect stability, and retrieve structures or electronic-property data.
  • Practical use cases: Convert an input structure file, analyze its symmetry and neighbors, generate a phase diagram for a chemical system, or prepare workflows for VASP and other electronic-structure codes.

Quick Start

Use the pymatgen skill to analyze the attached structure file, summarize its composition and symmetry, and report any phase-diagram or Materials Project insights relevant to its chemical system.

Frequently Asked Questions about pymatgen

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

FAQPage Schema
How do I convert a CIF file to POSCAR format for computational materials science workflows?

You can convert CIF files to POSCAR format by loading the structure and applying transformation workflows. The Skill detects file formats automatically and supports CIF, POSCAR, XYZ, PDB, JSON, and YAML conversions.

How do I analyze crystal structures and determine space group information using pymatgen?

Analyzing crystal structures with pymatgen involves loading the structure file to extract composition, lattice parameters, space group information, coordination environments, and distance matrices for geometric characterization.

Can I build phase diagrams and query Materials Project data using an mp-api integration?

Yes, you can query Materials Project data and build phase diagrams using mp-api integration. This requires API-key authenticated database access to retrieve structures, inspect stability, and gather electronic-property data.

Does this Skill require an API key to access Materials Project workflows and electronic structure data?

Yes, accessing Materials Project workflows and electronic structure data requires API-key authenticated database access. You need both pymatgen and mp-api dependencies installed to query and retrieve materials data.

What's the best way to prepare VASP workflows from a crystal structure file?

Preparing VASP workflows involves converting your input structure to POSCAR format, analyzing its symmetry and neighbors, and generating the necessary structure files for electronic-structure calculation codes.