Pymatgen crystal structure parsing starter
A framework for discovering, compiling, and validating reusable skills for scientific agents.From the repository description
npx -y skills add ma-compbio-lab/SkillFoundry --skill pymatgen-crystal-structure-parsing-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.3 KB, 306 tokens by cl100k_base, as published. Nobody here has run it
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
SpacegroupAnalyzerto 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 parsingleaf. - You want a lightweight structure summary before feature engineering or property modeling.
Example
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
What ships with it: 8 files
9.8 KB alongside SKILL.md, 2 of them executable
assets/
- cscl_structure_summary.json601 B
- README.md199 B
scripts/
- run_pymatgen_structure_summary.pyruns3.4 KB
tests/
- test_run_pymatgen_structure_summary.pyruns3.1 KB
- metadata.yaml1.4 KB
- refs.md230 B