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

Freq

ASecurity

VASP vibrational frequency calculation. Compute ZPE and thermodynamic corrections. Handles frozen atoms for slab systems with multiple freeze modes.

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

Works with

mcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

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

Installs into .claude/skills of the current project.

Are you the author of Freq?

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

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

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

Download Zip
Files
SKILL.md
---
name: vasp-freq
description: VASP vibrational frequency calculation. Compute ZPE and thermodynamic corrections. Handles frozen atoms for slab systems with multiple freeze modes.
---

# VASP Frequency Calculation

Compute vibrational frequencies using finite differences. Used for zero-point energy (ZPE), thermodynamic corrections, and checking transition states.

## When to Use

1. **After geometry optimization** — compute ZPE and Gibbs energy corrections
2. **Transition state verification** — confirm exactly one imaginary frequency
3. **IR/Raman spectra** — predict vibrational spectra
4. **Thermodynamic properties** — feed into gibbs_energy task

## Discussion Checkpoints

🔴 **Must discuss with user:**
- **freeze_mode** — which atoms vibrate determines the thermodynamic corrections; freezing too few atoms wastes compute, freezing the adsorbate itself gives wrong ZPE
- **LREAL=.FALSE.** — mandatory for frequency calculations; real-space projection introduces noise that corrupts finite-difference frequencies; this is non-negotiable

🟡 **Recommend confirming:**
- POTIM (default: 0.015) — displacement step size; reduce to 0.01 if numerical noise appears, increase to 0.02 for heavier atoms
- NFREE (default: 2) — central differences; increase to 4 for higher accuracy at 2x cost
- ENCUT — must match the preceding geo_opt to ensure consistent forces; mismatched ENCUT invalidates the frequency data

🟢 **Safe defaults:**
- IBRION = 5 (finite differences)
- NSW = 1
- EDIFF = 1E-6 (tighter than geo_opt for clean forces)

## Basic Frequency Calculation

```python
from catgo.workflow import Workflow
from catgo.workflow.builtins import geo_opt, freq, gibbs_energy

wf = Workflow("Frequency calculation")
struct = wf.add_task("structure_input", structure=optimized_json)
frq = wf.add_task(freq, structure=struct.output.structure,
                  system_name="CO_gas")
wf.submit()
```

**MCP equivalent:**
```
catgo_workflow_engine(action="create", params={"name": "Frequency calc"})

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "structure_input",
  "structure": "<optimized_json>"
})

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "freq",
  "software": "vasp",
  "structure": "{{t_001.output.structure}}",
  "system_name": "CO_gas"
})

catgo_workflow_engine(action="submit", params={"workflow_id": "wf_xxx"})
```

## Frozen Atoms for Slab Systems

For adsorbates on surfaces, freeze the slab atoms and only compute frequencies for the adsorbate (and optionally top surface layer). This dramatically reduces cost.

### freeze_mode Options

| Mode | Description | Example |
|---|---|---|
| `"none"` | All atoms vibrate (gas-phase molecules) | Small molecules |
| `"layers"` | Freeze bottom N layers by z-coordinate | `freeze_mode="layers", freeze_layers=4` |
| `"z_range"` | Freeze atoms below a z threshold | `freeze_mode="z_range", freeze_z_below=8.0` |
| `"element"` | Freeze specific elements | `freeze_mode="element", freeze_elements=["Ru", "O"]` |
| `"indices"` | Freeze specific atom indices | `freeze_mode="indices", freeze_indices=[0,1,2,3]` |
| `"manual"` | Use selective_dynamics from structure | Pre-set in POSCAR |

### Recommended: Freeze by Layers

For a typical slab with adsorbate:

```python
opt = wf.add_task(geo_opt, structure=slab_oh_json,
                  ISIF=2, freeze_layers=2, system_name="*OH")

frq = wf.add_task(freq, structure=opt.output.structure,
                  freeze_mode="layers",
                  freeze_layers=4,    # Freeze bottom 4 layers (all slab atoms)
                  system_name="*OH")
```

**Why freeze_layers=4 for freq but freeze_layers=2 for geo_opt?**
- geo_opt: freeze bottom half, let top surface layers relax with adsorbate
- freq: freeze ALL slab atoms, only vibrate the adsorbate + binding site atoms
- This is physically correct: slab phonons are not relevant for adsorption thermodynamics

### Freeze by Z-range

Useful when layer detection is ambiguous:

```python
frq = wf.add_task(freq, structure=opt.output.structure,
                  freeze_mode="z_range",
                  freeze_z_below=12.5,   # Angstrom
                  system_name="*OH")
```

## Chain: Optimization then Frequency then Gibbs Energy

The standard thermodynamics workflow:

```python
wf = Workflow("OH adsorption Gibbs energy")
struct = wf.add_task("structure_input", structure=slab_oh_json)

# Step 1: Optimize geometry
opt = wf.add_task(geo_opt, structure=struct.output.structure,
                  ISIF=2, freeze_layers=2, system_name="*OH")

# Step 2: Frequency on optimized structure
frq = wf.add_task(freq, structure=opt.output.structure,
                  freeze_mode="layers", freeze_layers=4,
                  system_name="*OH")

# Step 3: Gibbs energy from DFT energy + frequencies
gib = wf.add_task(gibbs_energy,
                  energy=opt.output.energy,
                  frequencies=frq.output.frequencies,
                  phase="adsorbed",       # Harmonic approximation for adsorbates
                  temperature=298.15,     # K
                  freq_cutoff=50,         # cm-1, replace low freqs with this value
                  system_name="*OH")

wf.submit()
```

## Gas-Phase Molecule Frequencies

For free molecules (H2, H2O, CO, etc.), do NOT freeze any atoms:

```python
frq = wf.add_task(freq, structure=molecule_json,
                  freeze_mode="none",    # All atoms vibrate
                  system_name="H2O_gas")

gib = wf.add_task(gibbs_energy,
                  energy=opt.output.energy,
                  frequencies=frq.output.frequencies,
                  phase="gas",           # Ideal gas partition function
                  system_name="H2O_gas")
```

**Gas vs adsorbed phase:**
- `phase="adsorbed"`: harmonic approximation, frustrated translations/rotations replaced by freq_cutoff
- `phase="gas"`: ideal gas approximation with translational + rotational contributions

## Key Parameters

| Parameter | Default | Purpose |
|---|---|---|
| IBRION | 5 | Finite differences |
| NFREE | 2 | Central differences (2-point) |
| POTIM | 0.015 | Displacement step size (Angstrom) |
| EDIFF | 1e-6 | Tight SCF convergence (tighter than geo_opt) |
| LREAL | .FALSE. | Must be exact for frequencies |

**LREAL=.FALSE. is mandatory.** Real-space projection introduces noise in forces that corrupts finite-difference frequencies. The config default overrides LREAL=Auto for freq tasks.

## Analyzing Results

```
# Check frequencies after completion
catgo_analyze(action="frequencies", params={"task_id": "t_freq"})
# Returns: list of frequencies (cm-1), ZPE, imaginary modes

# Get raw result
catgo_workflow_engine(action="get_result", params={"task_id": "t_freq"})
# Returns: {"frequencies": [...], "zpe": 0.543}
```

## Output

The freq task produces:
- `output.frequencies` — list of vibrational frequencies in cm-1 (negative = imaginary)
- `output.zpe` — zero-point energy in eV

## Troubleshooting

| Problem | Fix |
|---|---|
| Many imaginary frequencies | Structure not converged — re-optimize with tighter EDIFFG=-0.01 |
| One imaginary frequency | Could be a transition state (expected) or shallow minimum — check mode |
| Frequencies seem wrong | Ensure LREAL=.FALSE. and EDIFF=1e-6 |
| Calculation too expensive | Freeze more atoms (increase freeze_layers) |
| Numeric noise in frequencies | Reduce POTIM to 0.01 or increase NFREE to 4 |

## Cost Estimate

Frequency calculations require 6N single-point calculations where N is the number of free atoms (with NFREE=2). For a 5-atom adsorbate on a frozen slab, that is 30 SCF calculations — roughly 30x the cost of a single point.

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 →