Phonopy

From jinzhezenggroup/computational-chemistry-agent-skills · View interactive version

Phonopy is an AI agent skill from the GitHub repository jinzhezenggroup/computational-chemistry-agent-skills. General phonon-workflow skill built around phonopy, independent of force backend. USE WHEN you need to prepare finite-displacement phonon calculations, build force constants, and analyze phonon properties (band structure, DOS, thermal quantities) while obtaining forces from different engines such as

How to use this skill

Skill file

Phonopy (Backend-Agnostic)

Use this skill as a general phonon orchestration layer.

It treats force calculation as a pluggable backend step and focuses on phonopy data flow.

Scope

This skill should:

This skill should not:

If execution/submission is required, hand off run steps to submission skills (for example dpdisp-submit) and backend-specific input skills.

Hard requirement

Phonon workflows require both:

If either is missing, stop and ask for it.

Backend abstraction

Force provider may be one of:

The role split should be:

  1. phonopy skill: displacement generation, dataset/force-constant assembly, phonon analysis
  2. backend skill: compute forces for each displaced supercell

Expected workflow

  1. Read and validate initial structure.
  2. Confirm phonon objective (band, dos, thermal, combinations).
  3. Choose supercell and displacement settings.
  4. Generate displaced supercells (phonopy -d style).
  5. Route displaced structures to selected backend for force evaluation.
  6. Collect forces and build FORCE_SETS or force constants.
  7. Run requested phonon analysis and export outputs.
  8. Report assumptions, convergence caveats, and next steps.

For concrete command patterns, see references/commands-and-workflow.md.

Parameters to collect

Must provide

as POSCAR, .cif, or other backend-compatible structure formats)

Usually should be explicit

Task-specific

For band:

For dos/thermal:

Required behavior

  1. Validate structure periodicity and cell.
  2. Make backend boundary explicit before running force steps.
  3. Keep traceable mapping between each displacement and force file.
  4. Check force dataset completeness before force-constant build.
  5. Report non-analytic corrections / long-range settings status when relevant.
  6. Flag unresolved scientific choices instead of guessing silently.

Defaulting policy

Allowed only for low-risk defaults with explicit labels.

Reasonable defaults:

Do not silently invent:

Expected output

Provide:

  1. generated displacement task layout
  2. force-data assembly status (FORCE_SETS/force constants)
  3. requested phonon outputs (band/DOS/thermal files)
  4. explicit assumptions and unresolved decisions
  5. handoff guidance if backend execution/submission is pending

Common failure points

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.