pymatgen-analysis

pymatgen-analysis is a skill for Claude Code, Codex from SFETNI/Deep-Matter-Chem-Skills. It costs 5 tokens per session (7,889 once invoked), scanned A, original, MIT.

A Python framework for reading, checking, and changing chemical structures and materials data. It works with crystals, molecules, compositions, symmetry, energy-based phase diagrams, and common simulation file formats such as CIF and POSCAR.

In plain words
What is it for?
Use it to parse VASP files, standardize crystal cells, create supercells, slabs, defects, or substitutions, and analyze phase stability or formation energies.
Why use it?
Materials files contain chemical and crystal-specific details that general-purpose data tools may mishandle. It provides consistent ways to prepare structures and analyze computed results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to parse VASP files, standardize crystal cells, create supercells, slabs, defects, or substitutions, and analyze phase stability or formation energies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfetni/deep-matter-chem-skills/pymatgen-analysis
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SFETNI/Deep-Matter-Chem-Skills --skill pymatgen-analysis
Clone the repo
git clone --depth 1 https://github.com/SFETNI/Deep-Matter-Chem-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pymatgen-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/pymatgen-analysis/github.svg)](https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/pymatgen-analysis)
Your own site
<a href="https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/pymatgen-analysis"><img src="https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/pymatgen-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pymatgen-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/sfetni/deep-matter-chem-skills/pymatgen-analysis"><img src="https://agentmods.dev/badge/skills/sfetni/deep-matter-chem-skills/pymatgen-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,889 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00005 $0.07889
Opus 5 $0.00003 $0.03945
Sonnet 5 $0.00001 $0.01578
Haiku 4.5 $0.00001 $0.00789

Measured 12d ago against content hash 7c993bcd2f6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

pymatgen-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/scientific-data/pymatgen-analysis/SKILL.md · 627 lines

How it starts

The opening of the file, as written. The whole thing — 627 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pymatgen Analysis

Description

This skill covers pymatgen as a materials analysis and structure-processing framework: Structure, Molecule, Lattice, Composition, Element, Species, and Site objects; CIF/POSCAR/VASP output parsing; symmetry analysis; cell standardization; supercell, slab, defect, and substitution preparation; phase diagrams and formation energies; and interoperability with ASE, matminer, MP API, Phonopy, and visualization workflows. Invoke this skill when a workflow needs robust materials-domain parsing, symmetry-aware structure manipulation, VASP input/output analysis, or thermodynamic construction from computed energies.

Domain Context

pymatgen is a domain library for representing and manipulating materials data. Its core abstractions are chemically aware: a Composition knows oxidation states and reduced formulas; a Structure stores periodic sites in fractional coordinates with a Lattice; a Species can encode formal charge and spin; a Site can carry properties such as magnetic moment, selective dynamics, labels, or disorder. This is different from a generic coordinate container: pymatgen operations often use crystallographic assumptions, oxidation-state heuristics, and symmetry reductions.

The main strength of pymatgen is that it connects structure representation to analysis. The same Structure object can be standardized by spglib, converted to a VASP POSCAR, transformed into a slab, decorated with oxidation states, passed to matminer, converted to ASE, inserted into a phase diagram, or compared against entries from a database. This makes pymatgen a natural support layer for DFT workflows, dataset generation, visualization, and reproducibility.

The main risk is silent structure change. Symmetry analysis can reduce a distorted structure to a higher-symmetry prototype if tolerances are too loose. CIF parsing can expand partial occupancies or disorder in ways that are inappropriate for DFT. Conventional-cell choices differ between crystallographic, Setyawan-Curtarolo, and code-specific conventions. Site properties can be dropped during conversion. A structure that looks "standardized" may no longer be the structure actually computed.

Read the full file on GitHub · 627 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 627 lines · 5 tokens per session scan A 7c993bcd2f6a

Subscribe to this mod's changes

pymatgen-analysis is a skill published in the GitHub repository SFETNI/Deep-Matter-Chem-Skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 5 tokens to every session and 7,889 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters…

synthetic-sciences/openscience · 67 tokens

smiles-validation

Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.

synthetic-sciences/openscience · 24 tokens

patsnap-biological-modality

Biological sequence and modality intelligence via Patsnap MCP.

patsnap/mcp · 19 tokens

patsnap-scientific-translational-evidence

Patsnap Scientific & Translational Evidence MCP for AI agents. Retrieval platform focusing on scientific literature and translational outcomes, covering academic publication queries and translational medicine record tracking.

patsnap/mcp · 47 tokens

patsnap-target-disease

Patsnap Target & Disease MCP for AI agents. Target and disease profiling tool, covering target characterization, disease profiling, and epidemiology evidence retrieval.

patsnap/mcp · 37 tokens

patsnap-solution-engine

Patsnap TRIZ Concept Solution Engine MCP for AI agents. Generates innovation or product cost-reduction concepts through asynchronous TRIZ and TRIZ/DFMA workflows. Use for engineering problem solving, concept alternatives, cost-reduction analysis, task-progress retrieval, and selected-solution details.

patsnap/mcp · 64 tokens