Tooluck logoTooluck
SKILL.md

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)

scientific-toolkit-skill/references/scientific-skills/pymatgen/SKILL.md

MITFull file
1# Pymatgen - Python Materials Genomics
2
3## Overview
4
5Pymatgen 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.
6
7## When to Use This Skill
8
9This skill should be used when:
10- Working with crystal structures or molecular systems in materials science
11- Converting between structure file formats (CIF, POSCAR, XYZ, etc.)
12- Analyzing symmetry, space groups, or coordination environments
13- Computing phase diagrams or assessing thermodynamic stability
14- Analyzing electronic structure data (band gaps, DOS, band structures)
15- Generating surfaces, slabs, or studying interfaces
16- Accessing the Materials Project database programmatically
17- Setting up high-throughput computational workflows
18- Analyzing diffusion, magnetism, or mechanical properties
19- Working with VASP, Gaussian, Quantum ESPRESSO, or other computational codes
20
21## Quick Start Guide
22
23### Installation
24
25```bash
26# Core pymatgen
27uv pip install pymatgen
28
29# With Materials Project API access
30uv pip install pymatgen mp-api
31
32# Optional dependencies for extended functionality
33uv pip install pymatgen[analysis] # Additional analysis tools
34…

Excerpt shown under the repository's MIT license.

More skills in codex-claude-academic-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates