Skip to content

Toolkit for crystal structures, phase diagrams, electronic structure, and Materials Project queries in Python.

CCM score
65 of 100
skills.sh installs
368
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers structure creation, symmetry analysis, format conversion, phase diagram construction, and band structure and DOS analysis
  • Includes helper scripts such as structure_converter.py, structure_analyzer.py, and phase_diagram_generator.py with batch and export options
  • Supports over 100 file formats, including CIF, POSCAR, and XYZ, plus VASP, Gaussian, and Quantum ESPRESSO outputs
  • Designed for computational materials scientists who need programmatic access to Materials Project data through mp-api

Install

$ npx -y skills add davila7/claude-code-templates --skill pymatgen -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Pymatgen - Python Materials Genomics

Overview

Pymatgen 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.

When to Use This Skill

This skill should be used when:

  • Working with crystal structures or molecular systems in materials science
  • Converting between structure file formats (CIF, POSCAR, XYZ, etc.)
  • Analyzing symmetry, space groups, or coordination environments
  • Computing phase diagrams or assessing thermodynamic stability
  • Analyzing electronic structure data (band gaps, DOS, band structures)
  • Generating surfaces, slabs, or studying interfaces
  • Accessing the Materials Project database programmatically
  • Setting up high-throughput computational workflows
  • Analyzing diffusion, magnetism, or mechanical properties
  • Working with VASP, Gaussian, Quantum ESPRESSO, or other computational codes

Details

Repository
github.com/davila7/claude-code-templates
Categories
Research & Academic, Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the pymatgen skill do for Claude Code?

The pymatgen skill is a materials science toolkit that helps the agent work with crystal structures in CIF and POSCAR formats. It covers phase diagrams, band structure, density of states, Materials Project integration, and format conversion for computational materials science.

Who is the pymatgen skill for?

It is aimed at researchers doing computational materials science who work with crystal structures, electronic structure data, or the Materials Project database. It also suits anyone converting structure files between codes such as VASP, Gaussian, and Quantum ESPRESSO.

How do I install the pymatgen skill?

Run npx -y skills add davila7/claude-code-templates --skill pymatgen -y in a project to install it. Once installed, the agent can read and write structure files, analyze symmetry and coordination, and build phase diagrams with pymatgen.

Where does pymatgen stand in the Research and Academic category?

Pymatgen is listed in the Research and Academic category on Claude Marketplaces, alongside skills such as research, paper-context-resolver, and repo-intake-and-plan. Its specific focus is crystal structures, phase diagrams, and electronic structure in materials science.

Does the pymatgen skill need a Materials Project API key?

Only for Materials Project features. The skill describes setting the MP_API_KEY environment variable so the mp-api client can fetch structures and entries, while local structure work and format conversion do not require it.

More from davila7/claude-code-templates

All 398

Similar to Pymatgen

More Research & Academic