Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Phonopy

ASecurity

Run phonon calculations using Phonopy. Computes phonon band structures, density of states, thermal properties, and checks dynamical stability. Works with VASP, QE, ABINIT, and other DFT codes as the force calculator.

199 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentpythongoshellapi

Works with

api

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add Hello-QM/catgo-LRG --skill phonopy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Phonopy?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Phonopy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hello-qm-phonopy/badge)](https://www.skillsdirectory.com/skills/hello-qm-phonopy)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: phonopy
description: >
  Run phonon calculations using Phonopy. Computes phonon band structures,
  density of states, thermal properties, and checks dynamical stability.
  Works with VASP, QE, ABINIT, and other DFT codes as the force calculator.
compatibility: >
  Requires phonopy Python package (pip install phonopy). Requires a DFT code
  (VASP, QE, etc.) for force calculations on displaced structures.
catalog-hidden: true
---

# Phonopy — Phonon Calculations

## When to Use

- User needs phonon band structure or phonon DOS
- User wants to check dynamical stability (imaginary phonon modes)
- User needs thermodynamic properties (heat capacity, entropy, free energy) from phonons
- User wants to compute thermal expansion or Gruneisen parameters
- User has a relaxed structure and wants vibrational properties beyond the Gamma point

## Prerequisites

1. phonopy installed (`phonopy --version`)
2. A DFT code (VASP, QE, ABINIT) for computing forces on displaced structures
3. A fully relaxed structure (forces < 0.001 eV/Ang on all atoms)
4. Tight SCF convergence in force calculations (EDIFF=1e-8 for VASP)

## Workflow Overview

Phonopy uses the finite-displacement method:

1. Generate supercells with displaced atoms
2. Run DFT force calculations on each displaced supercell
3. Collect forces and compute force constants
4. Post-process: band structure, DOS, thermal properties

## Workflow Steps

### 1. Create supercells with displacements

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonopy_displace",
  "command": "phonopy -d --dim 2 2 2 -c POSCAR",
  "input_files": {
    "POSCAR": "<relaxed structure>"
  },
  "system_name": "phonon_setup"
})
```

This generates `POSCAR-001`, `POSCAR-002`, ..., `phonopy_disp.yaml`.

### 2. Run DFT on each displaced structure

For each displaced POSCAR, run a VASP single-point calculation:

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonon_forces_001",
  "command": "cd disp-001 && vasp_std > vasp.out 2>&1",
  "depends_on": ["phonopy_displace"],
  "system_name": "phonon_disp_001"
})
```

VASP INCAR for force calculations:

```
PREC    = Accurate
ENCUT   = 520
EDIFF   = 1e-8      # Must be tight for phonons
IBRION  = -1
NSW     = 0
ISMEAR  = 0
SIGMA   = 0.05
LREAL   = .FALSE.    # Must be FALSE for phonons
LWAVE   = .FALSE.
LCHARG  = .FALSE.
```

### 3. Collect forces and compute force constants

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonopy_forces",
  "command": "phonopy -f disp-001/vasprun.xml disp-002/vasprun.xml ...",
  "depends_on": ["phonon_forces_001", "phonon_forces_002"],
  "system_name": "phonon_fc"
})
```

### 4. Compute phonon band structure

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonopy_band",
  "command": "phonopy -p band.conf",
  "input_files": {
    "band.conf": "DIM = 2 2 2\nBAND = AUTO\nBAND_POINTS = 101\nBAND_LABELS = AUTO"
  },
  "depends_on": ["phonopy_forces"],
  "system_name": "phonon_band"
})
```

## Configuration Files

### band.conf — Band structure

```
DIM = 2 2 2
BAND = AUTO
BAND_POINTS = 101
```

### mesh.conf — DOS and thermal properties

```
DIM = 2 2 2
MP = 20 20 20
TPROP = .TRUE.
TMIN = 0
TMAX = 1000
TSTEP = 10
```

### pdos.conf — Projected DOS

```
DIM = 2 2 2
MP = 20 20 20
PDOS = 1 2, 3 4 5 6
```

Atom indices are 1-based. Groups separated by commas.

## Python API

```python
import phonopy
from phonopy import Phonopy

ph = phonopy.load("phonopy_disp.yaml")
# Forces already set via phonopy -f

# Band structure
ph.auto_band_structure(plot=True)
ph.save("phonopy_results.yaml")

# Thermal properties
ph.run_mesh([20, 20, 20])
ph.run_thermal_properties(t_min=0, t_max=1000, t_step=10)
tp = ph.get_thermal_properties_dict()
# tp['temperatures'], tp['free_energy'], tp['entropy'], tp['heat_capacity']
```

## Parameter Guidance

| Parameter | Typical value | Notes |
|---|---|---|
| DIM | 2 2 2 or 3 3 3 | Supercell size; larger = more accurate but more DFT calcs |
| MP | 20 20 20 | q-point mesh for DOS; denser = smoother DOS |
| BAND | AUTO | Auto high-symmetry path; or specify manually |
| displacement | 0.01 Ang | Default; increase for very stiff materials |
| TPROP | .TRUE. | Enable thermal property calculation |

## Interpreting Results

- **No imaginary modes** — structure is dynamically stable
- **Imaginary modes at Gamma** — structure is unstable; re-optimize or try different cell
- **Imaginary modes at zone boundary** — possible CDW or structural phase transition
- **Flat acoustic modes** — check supercell size; may need larger DIM

## Common Pitfalls

1. **Structure not fully relaxed** — residual forces cause spurious imaginary modes. Relax to < 0.001 eV/Ang.
2. **LREAL=Auto in VASP** — must use `LREAL = .FALSE.` for phonon force calculations. Real-space projection introduces noise.
3. **Supercell too small** — DIM = 1 1 1 gives only Gamma phonons. Use at least 2 2 2 for bulk.
4. **SCF not converged** — use EDIFF=1e-8 (not 1e-5). Loose SCF causes noisy force constants.
5. **Symmetry mismatch** — phonopy uses symmetry to reduce displacements. Ensure the input structure has correct symmetry.
6. **Many displacements** — low-symmetry structures can generate 100+ displaced supercells. Budget DFT time accordingly.
7. **Acoustic sum rule** — slight violations are normal. Phonopy applies corrections automatically.

Attribution

Hello-QMHello-QM
View sourceMore from Hello-QM →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →