pymatgen-symmetry

Identify space groups and generate high-symmetry k-paths for crystal structures.

16|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/Hongyu-yu/matsci-ai-skills --skill pymatgen-symmetry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen-symmetry
Source: https://github.com/Hongyu-yu/matsci-ai-skills/tree/main/skills/pymatgen-symmetry
Command: npx skills add https://github.com/Hongyu-yu/matsci-ai-skills --skill pymatgen-symmetry

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Pymatgen symmetry utilities help you identify space groups, analyze symmetry operations, standardize crystal structures, and generate high-symmetry k-paths for band-structure calculations.

Core Features & Use Cases

  • Space Group Analysis: Use SpacegroupAnalyzer to determine the space group, conventional cell, and symmetry operations.
  • Symmetry Operations: Access symmetry operations and point-group properties to understand structural symmetry.
  • K-Path Generation: Create high-symmetry k-paths for electronic-structure calculations with HighSymmKpath.
  • Use Case: A researcher preparing DFT inputs can analyze a crystal, standardize its cell, and extract a k-path for band-structure runs.

Quick Start

Load your structure into pymatgen, instantiate SpacegroupAnalyzer to fetch symmetry data, and generate a k-path for band-structure analysis.

Frequently Asked Questions about pymatgen-symmetry

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

FAQPage Schema
How do I identify the space group of a crystal structure using pymatgen?

To identify the space group of a crystal structure, load your structural data into a pymatgen Structure object and instantiate SpacegroupAnalyzer to fetch the space group, conventional cell, and symmetry operations.

How do I generate a high-symmetry k-path for band-structure calculations?

Generate a high-symmetry k-path for band-structure calculations by passing your pymatgen Structure object to the HighSymmKpath module, which extracts the necessary k-path data for DFT runs.

What is the best way to standardize a crystal cell before running DFT workflows?

Standardize a crystal cell before DFT workflows by applying symmetry analysis with SpacegroupAnalyzer to transform the original Structure into its conventional standardized form.

Can I extract point-group properties and symmetry operations with pymatgen?

Yes, you can extract point-group properties and symmetry operations by running SpacegroupAnalyzer on your crystal structure to access its detailed symmetry operation data.

Do I need pymatgen installed to analyze crystal symmetry and prepare k-paths?

Yes, you need the pymatgen package installed because this functionality relies entirely on the pymatgen.symmetry module to operate on Structure data for symmetry and k-path generation.

Why does my k-path generation fail when analyzing a non-standard crystal structure?

K-path generation may fail on non-standard structures because HighSymmKpath requires correctly parsed symmetry data; standardizing the cell with SpacegroupAnalyzer first ensures accurate k-path extraction.