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

Gpaw

ASecurity

Generate and manage GPAW Python-based DFT calculations. Use when the user requests GPAW, Python DFT, real-space grid DFT, or LCAO-DFT with ASE integration.

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

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

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

Installs into .claude/skills of the current project.

Are you the author of Gpaw?

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

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

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

Download Zip
Files
SKILL.md
---
name: gpaw
description: >
  Generate and manage GPAW Python-based DFT calculations. Use when the user requests
  GPAW, Python DFT, real-space grid DFT, or LCAO-DFT with ASE integration.
compatibility: >
  Requires GPAW and ASE installed in the Python environment on the HPC target.
  PAW datasets must be installed (gpaw install-data).
---

# GPAW (Python DFT)

## When to Use

- User explicitly requests GPAW
- User wants tight ASE integration (optimize with ASE, calculate with GPAW)
- User needs real-space grid, LCAO, or plane-wave modes in a single code
- User wants Python-scripted DFT workflows (no input files, pure Python)

## Prerequisites

1. GPAW + ASE installed on HPC (`gpaw --version`, `python -c "import gpaw"`)
2. PAW datasets installed (`gpaw install-data`)
3. Structure loaded in viewer — verify with `catgo_view(action="get_state")`

## Workflow Steps

### 1. Verify structure

```
catgo_view(action="get_state")
```

### 2. Create workflow

```
catgo_workflow_engine(action="create", params={"name": "GPAW PBE relaxation"})
```

### 3. Add GPAW task via shell script

CatGo does not yet have a native GPAW engine. Use `task_type: "shell"` with a Python script.

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "gpaw_relax",
  "command": "python gpaw_relax.py",
  "input_files": {
    "gpaw_relax.py": "<script content>",
    "structure.json": "<pymatgen dict>"
  },
  "system_name": "TiO2_relax"
})
```

When a `@register_engine("gpaw")` is added to CatGo, use `task_type: "geo_opt"` with `software: "gpaw"` instead.

## Script Template — SCF

```python
from ase.io import read
from gpaw import GPAW, PW

atoms = read('structure.json')

calc = GPAW(
    mode=PW(500),            # Plane-wave mode, 500 eV cutoff
    xc='PBE',
    kpts={'density': 3.0},   # ~0.03 A^-1 k-point density
    txt='gpaw_scf.txt',
    occupations={'name': 'fermi-dirac', 'width': 0.05},
    convergence={'energy': 1e-5},
)

atoms.calc = calc
energy = atoms.get_potential_energy()
print(f'Total energy: {energy:.6f} eV')
```

## Script Template — Relaxation

```python
from ase.io import read, write
from ase.optimize import BFGS
from ase.constraints import FixAtoms
from gpaw import GPAW, PW

atoms = read('structure.json')

# Freeze bottom layers for slabs
c = FixAtoms(indices=[i for i, a in enumerate(atoms)
                      if a.position[2] < atoms.cell[2][2] * 0.4])
atoms.set_constraint(c)

calc = GPAW(
    mode=PW(500),
    xc='PBE',
    kpts={'density': 3.0},
    txt='gpaw_relax.txt',
    convergence={'energy': 1e-5},
)
atoms.calc = calc

opt = BFGS(atoms, trajectory='relax.traj', logfile='relax.log')
opt.run(fmax=0.02)

write('CONTCAR.vasp', atoms)
```

## Parameter Guidance

| Parameter | Typical value | Notes |
|---|---|---|
| mode | PW(500) | Plane-wave cutoff in eV; PW(600) for accurate forces |
| mode | LCAO(dzp) | LCAO mode for large systems (1000+ atoms) |
| xc | 'PBE' | Also: 'RPBE', 'BEEF-vdW', 'mBEEF' |
| kpts | {'density': 3.0} | Auto k-mesh; higher = denser |
| convergence | {'energy': 1e-5} | In eV; tighten for phonon calcs |
| occupations | fermi-dirac, 0.05 | Smearing width in eV |
| parallel | {'domain': 2, 'band': 2} | Domain decomposition for MPI |

## Calculation Modes

| Mode | Best for | Speed |
|---|---|---|
| PW (plane-wave) | Accurate bulk/surface | Moderate |
| LCAO | Large systems, screening | Fast |
| FD (finite-difference) | Real-space, nanostructures | Slow but flexible |

## Common Pitfalls

1. **Forgetting `txt` parameter** — without it, GPAW writes no log and debugging is impossible
2. **LCAO basis not installed** — run `gpaw install-data` with `--basis` flag
3. **Memory for large PW calculations** — GPAW PW mode stores wavefunctions in memory; use LCAO for >500 atoms
4. **No restart file** — add `calc.write('checkpoint.gpw')` after SCF for restart capability
5. **Parallel decomposition mismatch** — `domain * band * kpt` must equal total MPI ranks
6. **Slab k-points** — use `kpts={'size': (N, N, 1)}` to avoid k-points along vacuum direction

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 →