agentleFS
Hongyu-yuHongyu-yu/matsci-ai-skills/skills/pymatgen-phonon/SKILL.md

pymatgen-phonon

Skill19 starsChanged 10 months agoMITView on GitHub

Use for phonon band structure/DOS, Gruneisen, and IR spectra analysis with pymatgen.phonon and phonopy-compatible outputs.

  • Installs packages

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Distinctive:

    Ensure pymatgen and phonopy are installed in your Python environment:

    line 16

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pymatgen Phonon

Overview

Pymatgen phonon tools analyze phonon band structures, DOS, Gruneisen parameters, and IR spectra, often from Phonopy outputs.

Required Python Environment

Ensure pymatgen and phonopy are installed in your Python environment:

pip install pymatgen phonopy
# or
conda install -c conda-forge pymatgen phonopy

Example usage pattern:

from pymatgen.phonon.bandstructure import PhononBandStructure
# your code here

When to Use This Skill

  • Analyze phonon band structures, DOS, or spectra
  • Work with Gruneisen parameters or phonopy outputs

Core Capabilities

1. Phonon Data Loading

  • Load phonon band structure and DOS from YAML

2. Plotting

  • Phonon dispersion and DOS plotting utilities

3. Gruneisen and IR

  • Gruneisen parameters and IR spectra utilities

Quick Workflow

  1. Load phonopy outputs or phonon objects.
  2. Compute or plot band structure/DOS/spectra.
  3. Export figures or derived data.

Resources

scripts/

Executable examples in the scripts/ directory:

  • 2016-09-25-Plotting_phonon_bandstructure_and_dos.py - Phonon band structure and DOS plotting.

references/

Detailed reference material (load as needed):

  • references/phonon-workflows.md - Phonon workflows and examples
  • references/docs/ - Local API docs for pymatgen.phonon

Download now (ZIP)

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.