Agent skill · Data & Analytics

pymatgen

Analyze, validate, convert, and transform materials structures and computed materials data with current pymatgen APIs, including local phase diagrams, symmetry sensitivity, electronic-structure I/O, and explicitly bounded Materials Project queries.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill pymatgen --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 15
SKILL.md size: 15 KB
Bundled scripts: yes
Version: 1.2
Allowed tools: ReadWriteBashGlobPython
Requires: Python 3.11+ with uv. The verified snapshot uses pymatgen 2026.5.4, pymatgen-core 2026.7.16, and mp-api 0.46.4. Bundled…
Path: skills/pymatgen/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# pymatgen Use pymatgen for explicit, provenance-preserving work with compositions, molecules, periodic structures, computed entries, symmetry, phase diagrams, electronic structures, and electronic-structure-code files. Treat every parse, conversion, symmetry assignment, transformation, and database result as method- and parameter-dependent. The MIT frontmatter license covers this skill. `pymatgen` and `pymatgen-core` are MIT; `mp-api` declares BSD-3-Clause-LBNL. Materials Project data is generally CC BY 4.0, while contributed data remains owned by its contributors. Check the exact artifact and data terms before redistribution. ## Verified snapshot (2026-07-23) - `pymatgen==2026.5.4` is the latest stable wrapper release (2026-05-04). Package metadata requires Python 3.11+ and directly requires `pymatgen-core>=2026.4.16`. - `pymatgen-core==2026.7.16` is the latest stable core release (2026-07-16). It now contains core objects, symmetry/lattice operations, and the I/O layer, all under the existing `pymatgen.*` namespace. - `mp-api==0.46.4` is the latest stable Materials Project client (2026-06-15), requires Python 3.11+, and depends on `pymatgen>2024.2.20`. - The current API site is

What's inside
Steps it walks through
  1. Verified snapshot (2026-07-23)
  2. Required workflow
  3. Core objects
  4. Safe local structure intake
  5. Symmetry
  6. Conversion and parser/writer I/O
  7. Transformations and provenance
  8. Local phase diagrams
  9. Band structures, DOS, VASP, and Q-Chem
  10. Materials Project: plan before network
  11. Bundled CLIs
  12. References
  13. Sources (verified 2026-07-23)
Ships with 14 files
  • references/analysis_modules.md
  • references/core_classes.md
  • references/io_formats.md
  • references/materials_project_api.md
  • references/transformations_workflows.md
  • scripts/_common.py
  • scripts/artifact_manifest.py
  • scripts/composition_structure_validator.py
  • scripts/io_conversion_plan.py
  • scripts/mp_query.py
  • scripts/phase_diagram_generator.py
  • scripts/structure_analyzer.py
  • scripts/structure_converter.py
  • scripts/symmetry_sensitivity_report.py
Commands it runs
uv init --python 3.11
uv add "pymatgen==2026.5.4" "pymatgen-core==2026.7.16" "mp-api==0.46.4"
uv lock
uv sync --frozen
uv venv --python 3.11 .venv-pymatgen
uv pip install --python .venv-pymatgen/bin/python \
python scripts/composition_structure_validator.py composition "Fe2O3"
python scripts/composition_structure_validator.py structure structure.cif
python scripts/structure_analyzer.py structure.cif --symmetry
python scripts/symmetry_sensitivity_report.py structure.cif \
More from scientific-agent-skills
All skills →
About this skill
What does the pymatgen skill do?

Analyze, validate, convert, and transform materials structures and computed materials data with current pymatgen APIs, including local phase diagrams, symmetry sensitivity, electronic-structure I/O, and explicitly bounded Materials Project queries.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill pymatgen --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going