pymatgen

Analyze crystal structures and convert materials file formats with pymatgen.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/yf8578/clawomics --skill pymatgen-yf8578
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/yf8578/clawomics/tree/main/skills/pymatgen
Command: npx skills add https://github.com/yf8578/clawomics --skill pymatgen-yf8578

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive toolkit for analyzing and manipulating materials structures, enabling in-depth computational materials science research and development.

Core Features & Use Cases

  • Structure Analysis: Analyze crystal structures, symmetry, and coordination environments.
  • File Format Conversion: Convert between numerous materials file formats (CIF, POSCAR, etc.).
  • Phase Diagram Generation: Construct and analyze phase diagrams using Materials Project data.
  • Use Case: A researcher needs to analyze the crystal structure of a newly synthesized compound, determine its space group, and visualize its atomic arrangement. This Skill can perform all these tasks and generate a report.

Quick Start

Use the pymatgen skill to analyze the structure file 'POSCAR'.

Frequently Asked Questions about pymatgen

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

FAQPage Schema
How do I analyze a crystal structure and determine its space group using Python?

You can analyze crystal structures and determine space groups using Python by loading structure files like POSCAR or CIF. This Skill performs symmetry analysis and coordination environment evaluation to extract structural details and generate reports.

Can I convert between CIF and POSCAR file formats for computational chemistry?

Yes, you can convert between CIF and POSCAR file formats. This Skill handles file format conversion for materials science, enabling seamless transitions between different crystallographic data formats for computational workflows.

How do I generate phase diagrams using Materials Project data?

To generate phase diagrams using Materials Project data, this Skill constructs and analyzes phase diagrams by interacting with the Materials Project database. It requires the mp-api dependency to fetch the necessary compound data for visualization.

Do I need to install pymatgen and mp-api to use this Skill for structure analysis?

Yes, you need to install pymatgen and mp-api for full functionality. These dependencies are required to execute structure manipulation, symmetry analysis, and database interaction with Materials Project for computational materials science.

What is the best way to visualize atomic arrangements of a newly synthesized compound?

The best way to visualize atomic arrangements is by creating and analyzing the crystal structure programmatically. This Skill enables crystal structure creation and symmetry analysis to help visualize and report on newly synthesized compounds.

Does pymatgen support symmetry analysis for complex crystallography workflows?

Yes, pymatgen supports symmetry analysis for complex crystallography workflows. It provides tools to analyze coordination environments and determine space groups, facilitating detailed structural characterization for materials research.