pymatgen
Agent skill fromzLanqing/codex-claude-academic-skills
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
How to install pymatgen
install pymatgen
# install the codex-claude-academic-skills pack with the skills CLI
npx skills add zLanqing/codex-claude-academic-skills# or add only this skill to Claude Code: copy the folder
scientific-toolkit-skill/references/scientific-skills/pymatgen/
# into
~/.claude/skills/pymatgen/ (all projects)
.claude/skills/pymatgen/ (one project)
1# Pymatgen - Python Materials Genomics23## Overview45Pymatgen is a comprehensive Python library for materials analysis that powers the Materials Project. Create, analyze, and manipulate crystal structures and molecules, compute phase diagrams and thermodynamic properties, analyze electronic structure (band structures, DOS), generate surfaces and interfaces, and access Materials Project's database of computed materials. Supports 100+ file formats from various computational codes.67## When to Use This Skill89This skill should be used when:10- Working with crystal structures or molecular systems in materials science11- Converting between structure file formats (CIF, POSCAR, XYZ, etc.)12- Analyzing symmetry, space groups, or coordination environments13- Computing phase diagrams or assessing thermodynamic stability14- Analyzing electronic structure data (band gaps, DOS, band structures)15- Generating surfaces, slabs, or studying interfaces16- Accessing the Materials Project database programmatically17- Setting up high-throughput computational workflows18- Analyzing diffusion, magnetism, or mechanical properties19- Working with VASP, Gaussian, Quantum ESPRESSO, or other computational codes2021## Quick Start Guide2223### Installation2425```bash26# Core pymatgen27uv pip install pymatgen2829# With Materials Project API access30uv pip install pymatgen mp-api3132# Optional dependencies for extended functionality33uv pip install pymatgen[analysis] # Additional analysis tools34…
Excerpt shown under the repository's MIT license.
