pymatgen-analysis
Skill19 starsChanged 10 months agoMITView on GitHub
Use for materials analysis tasks in pymatgen.analysis: phase/Pourbaix/chemical-potential diagrams, reactions, structure matching, surfaces/interfaces, local environments, diffraction, elasticity, magnetism, and related analyses.
- Installs packages
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Ensure pymatgen is installed in your Python environment:
- Distinctive: line 53
Run analysis and export plots or derived data.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pymatgen Analysis
Overview
Pymatgen analysis provides higher-level workflows for thermodynamics, reactions, structure comparison, surfaces, and property analyses. Use it once you have structures or entries ready.
Required Python Environment
Ensure pymatgen is installed in your Python environment:
pip install pymatgen
# or
conda install -c conda-forge pymatgenExample usage pattern:
from pymatgen.analysis.phase_diagram import PhaseDiagram
# your code hereWhen to Use This Skill
- Phase diagrams, reactions, Pourbaix, and thermochemistry
- Structure matching, dimensionality, or local environments
- Surface/interface analysis or property analysis (diffraction, elasticity, magnetism)
Core Capabilities
1. Thermodynamics and Phase Stability
- Phase and chemical potential diagrams
- Reaction energies and Pourbaix analysis
2. Structure Analysis
- Structure matching and comparison
- Coordination environments (ChemEnv) and dimensionality
3. Surfaces and Properties
- Slabs, Wulff shapes, and interfaces
- Diffraction, elasticity, magnetism, and related utilities
Quick Workflow
- Gather
Structure/MoleculeorEntryinputs. - Choose the analysis module (phase diagram, matcher, surface, etc.).
- Run analysis and export plots or derived data.
Resources
scripts/
Executable examples in the scripts/ directory:
2013-01-01-Calculating_Reaction_Energies_with_the_Materials_API.py- Reaction energies using Materials Project data.2013-01-01-Plotting_and_Analyzing_a_Phase_Diagram_using_the_Materials_API.py- Phase diagram plotting and analysis with MP data.2017-04-03-Slab_generation_and_Wulff_shape.py- Slab generation and Wulff shape construction.2017-12-15-Plotting_a_Pourbaix_Diagram.py- Pourbaix diagram plotting.2018-01-01-ChemEnv_-_How_to_automatically_identify_coordination_environments_in_a_structure.py- Automatic coordination environment identification (ChemEnv).2018-03-09-Computing_the_Reaction_Diagram_between_Two_Compounds.py- Reaction diagram between compounds.2018-07-24-Adsorption_on_solid_surfaces.py- Adsorption analysis on solid surfaces.2018-11-6-Dopant_suggestions_using_Pymatgen.py- Dopant suggestion workflows.2019-03-11-Interface_Reactions.py- Interface reaction analysis.2021-5-12-Explanation_of_Corrections.py- Energy correction explanations and usage.2023-03-10-Plotting_a_Pourbaix_Diagram-new.py- Updated Pourbaix diagram plotting example.2024-06-28-Charge_Density_Difference.py- Charge density difference analysis.
Note: Some scripts require Materials Project API access; set your API key before running.
references/
Detailed reference material (load as needed):
references/analysis-workflows.md- Common analyses and examplesreferences/docs/- Local API docs forpymatgen.analysis
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- SFETNI/Deep-Matter-Chem-Skills★ 10same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- astropySkill
- brainstormingSkill
- causal-inference-root-causeSkill
- decision-matrixSkill
- decomposition-reconstructionSkill
- design-of-experimentsSkill
- docxSkill
- equivariant-architecture-designerSkill
- estimation-fermiSkill
- fairchemSkill
- fluidsimSkill
- latex-postersSkill
- markitdownSkill
- materials-databasesSkill
- materials-propertiesSkill
- memorySkill
- meta-prompt-engineeringSkill
- model-equivariance-auditorSkill
- openmxSkill
- pdfSkill
- planningSkill
- postmortemSkill
- pptxSkill
- pymatgen-coreSkill
- pymatgen-electronic-structureSkill
- pymatgen-extSkill
- pymatgen-ioSkill
- pymatgen-io-vaspSkill
- pymatgen-phononSkill
- pymatgen-symmetrySkill
- python-aseSkill
- python-jaxSkill
- python-multiobjective-optimizationSkill
- python-optimizationSkill
- python-plottingSkill
- python-regression-statisticsSkill
- pytorch-lightningSkill
- scikit-learnSkill
- skill-creatorSkill
- symmetry-discovery-questionnaireSkill
- symmetry-group-identifierSkill
- symmetry-validation-suiteSkill
- sympySkill
- systems-thinking-leverageSkill
- torch-geometricSkill
- transformersSkill
- vaspSkill
- xlsxSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

