skills/pymatgen-core/SKILL.md
Use for pymatgen core objects and structure manipulation: Element/Specie/Composition, Lattice/Site/Structure/Molecule, oxidation states, structure edits, transformations, and serialization.
npx skillsauth add Hongyu-yu/matsci-ai-skills pymatgen-coreInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Pymatgen core provides the fundamental objects for representing chemistry, lattices, sites, and structures. Use it to build, edit, and serialize structures and molecules before moving into specialized analysis or IO modules.
Ensure pymatgen is installed in your Python environment:
pip install pymatgen
# or
conda install -c conda-forge pymatgen
Example usage pattern:
from pymatgen.core import Structure, Lattice, Element
# your code here
Structure/Molecule objectsStructure/IStructure for periodic systemsMolecule/IMolecule for non-periodic systemsElement, Specie, Composition, and oxidation statesas_dict() / from_dict() serializationStructure, Molecule, or Composition).as_dict() or export via .to().Executable examples in the scripts/ directory:
2013-01-01-Basic_functionality.py - Basic structure, lattice, and composition operations.2013-01-01-Ordering_Disordered_Structures.py - Ordering disordered structures and site occupancy handling.Detailed reference material (load as needed):
references/modules.md - Core objects and usage patternsreferences/docs/usage.md - Local usage overviewreferences/docs/pymatgen.core.md - API detailstools
Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.
tools
Expert assistant for VASP (Vienna Ab initio Simulation Package) calculations - input file generation, parameter selection, workflow setup, and best practices for accurate DFT calculations
data-ai
This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning models on custom datasets.
tools
Graph Neural Networks (PyG). Node/graph classification, link prediction, GCN, GAT, GraphSAGE, heterogeneous graphs, molecular property prediction, for geometric deep learning.