pymatgen

Analyze crystal structures and generate computational materials science inputs.

8|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/hxk622/TokenDance --skill pymatgen-hxk622
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pymatgen
Source: https://github.com/hxk622/TokenDance/tree/main/backend/app/skills/builtin/scientific/physics/pymatgen
Command: npx skills add https://github.com/hxk622/TokenDance --skill pymatgen-hxk622

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies complex materials science tasks, from analyzing crystal structures and phase diagrams to setting up computational workflows, making advanced materials research more accessible.

Core Features & Use Cases

  • Structure Analysis: Read, create, and manipulate crystal structures from various file formats. Analyze symmetry, coordination environments, and electronic properties.
  • Materials Project Integration: Seamlessly query the Materials Project database for material properties and data.
  • Computational Workflow Setup: Generate input files for popular computational codes like VASP, Gaussian, and Quantum ESPRESSO.
  • Use Case: A researcher needs to find stable phases of a ternary oxide system. They can use this Skill to query the Materials Project for relevant entries, construct a phase diagram, and identify the most stable compositions.

Quick Start

Use the pymatgen skill to read the structure from the file 'POSCAR' and print its reduced 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 and calculate their reduced formula from a POSCAR file?

To analyze crystal structures from a POSCAR file, you can read the file and print its reduced formula. This Python library enables the creation, manipulation, and analysis of crystal structures and molecules directly from various file formats.

How do I construct a phase diagram for a ternary oxide system using Materials Project data?

Constructing a phase diagram for a ternary oxide system involves querying the Materials Project database for relevant entries. You can then use the retrieved data to identify the most stable compositions within that specific oxide system.

Can I generate input files for VASP and Quantum ESPRESSO computational workflows?

Yes, you can generate input files for VASP, Gaussian, and Quantum ESPRESSO. This toolkit supports input generation for popular computational materials science codes to automate your computational workflow setup.

What is the best way to query material properties from the Materials Project database for materials discovery?

The best way to query material properties is by directly integrating with the Materials Project database. This toolkit allows you to seamlessly retrieve material data to address challenges in materials discovery and property prediction.

Does this materials science toolkit support analyzing electronic structure and symmetry?

Yes, this materials science toolkit supports analyzing electronic structure, symmetry, and coordination environments. It provides comprehensive analysis capabilities for crystal structures to assist in advanced computational chemistry research.