Skip to content
Back to skills

Pymatgen Crystal Structure Parsing Starter

ASecurity

Use this skill to parse one crystal structure file with `pymatgen` and return a deterministic structural summary with lattice, composition, density, and symmetry metadata.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill pymatgen-crystal-structure-parsing-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pymatgen Crystal Structure Parsing Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pymatgen Crystal Structure Parsing Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-pymatgen-crystal-structure-parsing-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-pymatgen-crystal-structure-parsing-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Pymatgen Crystal Structure Parsing Starter

Use this skill to parse one crystal structure file with `pymatgen` and return a deterministic structural summary with lattice, composition, density, and symmetry metadata.

## What it does

- Loads a structure file such as CIF with `pymatgen.core.Structure`.
- Summarizes formula, reduced formula, lattice parameters, volume, density, and species counts.
- Uses `SpacegroupAnalyzer` to report a space-group symbol, number, and crystal system when symmetry analysis succeeds.

## When to use it

- You need a runnable starter for the `crystal structure parsing` leaf.
- You want a lightweight structure summary before feature engineering or property modeling.

## Example

```bash
slurm/envs/materials/bin/python skills/materials-science-and-engineering/pymatgen-crystal-structure-parsing-starter/scripts/run_pymatgen_structure_summary.py \
  --input skills/materials-science-and-engineering/pymatgen-crystal-structure-parsing-starter/examples/cscl.cif \
  --out scratch/materials/cscl_structure_summary.json
```

## Verification

- Skill-local tests: `python3 -m unittest discover -s skills/materials-science-and-engineering/pymatgen-crystal-structure-parsing-starter/tests -p 'test_*.py'`
- Repository smoke: `python3 -m unittest tests.smoke.test_phase28_network_materials_cheminformatics_skills -v`

Files in this skill

  • SKILL.md1.3 KB
  • assets/README.md199 B
  • assets/cscl_structure_summary.json601 B
  • examples/README.md234 B
  • examples/cscl.cif756 B
  • metadata.yaml1.4 KB
  • refs.md230 B
  • scripts/run_pymatgen_structure_summary.py3.4 KB
  • tests/test_run_pymatgen_structure_summary.py3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…