This is the main computational materials science library in Python, powering the Materials Project. You use it to manipulate crystal structures, convert between 100+ file formats (CIF, POSCAR, XYZ), analyze symmetry and space groups, compute phase diagrams, and process electronic structure data like band structures and DOS. It integrates directly with Materials Project's database and handles output from VASP, Gaussian, and Quantum ESPRESSO. The API is straightforward: Structure.from_file() reads anything, structure.to() writes to any format, and SpacegroupAnalyzer gives you symmetry info. If you're doing DFT calculations or working with crystallographic data, you're probably already using this or you should be.

skills.sh installs
368
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Code Review & Quality, Marketing & SEO
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1dinerojs avatardinero-best-practicesdinerojs/skillsCore best practices for the Dinero.js money library. Use when writing, reviewing, or refactoring code that creates Dinero objects, performs arithmetic on moneta368skills.sh installs
2pproenca avatarvitepproenca/dot-skillsVite performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Vite configuration and projects to ensure optimal pe367skills.sh installs
3adobe avataradobe-retouch-portraitsadobe/skillsBulk-retouch a folder of portrait photos using Adobe tools — designed for wedding photographers and event photographers who need fast, walk-away batch processin366skills.sh installs
4davila7 avatarcopy-editingdavila7/claude-code-templatesWhen the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'p366skills.sh installs
5onewave-ai avatarconversation-archaeologistonewave-ai/claude-skillsMine ALL past Claude conversations to build a living 'User Manual About You'. Extract writing style, business context, goals, preferences, and patterns. Make al366skills.sh installs
6oldwinter avatarpersonal-productivityoldwinter/skillsBuild a Personal Productivity System Pack (weekly timebox plan, capture+to-do system, daily/weekly review rituals, and a 7-day rollout). Use for timeboxing, cal365skills.sh installs