Skip to content
Back to skills

Vasp Ase

BSecurity

Professional skill for setting up, executing, and debugging VASP DFT calculations using the Atomic Simulation Environment (ASE).

  • 30 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 12, 2026
ai-agentspythongobashdebuggingperformance

Security analysis

B75/100
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill vasp-ase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vasp Ase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vasp Ase
[![Security: B β€” Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-vasp-ase-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-vasp-ase-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vasp_ase
description: Professional skill for setting up, executing, and debugging VASP DFT calculations using the Atomic Simulation Environment (ASE).
version: 1.0.0
---

# VASP ASE Skill

This skill allows the agent to interface with VASP on high-performance computing (HPC) systems like the DGX A100. It focuses on using ASE as the wrapper for clean Pythonic control.

## πŸ›  Prerequisites
- **Environment Variables:** `VASP_PP_PATH` must point to the directory containing `potpaw_PBE`, etc.
- **Dependencies:** `ase` and `pymatgen` (optional but recommended for analysis) must be installed in the `(base)` conda environment.
- **VASP Executable:** Access to `vasp_std`, `vasp_gam`, or `vasp_ncl`.

## πŸ“œ Execution Instructions

### 1. Setup & Initialization
Always initialize the VASP calculator using the `ase.calculators.vasp.Vasp` class. 
- **Default Check:** If the user doesn't specify, use `xc='PBE'`, `kpts=(4, 4, 4)`, and `encut=520`.
- **Parallelization:** On this DGX system, use `mpirun` or `srun`. Example command: 
  `command='mpirun -np 16 vasp_std > vasp.out'`

### 2. Geometry Optimization Template
```python
from ase.io import read
from ase.calculators.vasp import Vasp
from ase.optimize import BFGS

atoms = read('POSCAR')
calc = Vasp(directory='run_dir',
            command='mpirun -np 16 vasp_std',
            xc='PBE',
            encut=520,
            ismear=0,
            sigma=0.05,
            lreal='Auto',
            nsw=100,
            ibrion=2)
atoms.set_calculator(calc)
energy = atoms.get_potential_energy()
```

### 3. Error Handling & Troubleshooting
If a calculation fails, the agent should parse `OUTCAR` or `stdout` and apply these fixes:

| Error/Issue | Diagnostic | Fix Strategy |
| :--- | :--- | :--- |
| **Electronic Convergence** | `NELM` reached without `dE < ediff` | Set `ALGO = Normal` or `Fast`; increase `NELM` to 100; try `AMIX = 0.2`. |
| **Ionic Convergence** | Max steps reached | Restart from the last `CONTCAR`; check if forces are oscillating. |
| **Memory/A100 Crash** | Segmentation fault | Reduce `NCORE` or `KPAR`; ensure `LREAL = Auto`. |
| **Missing POTCAR** | `RuntimeError: POTCAR not found` | Verify `VASP_PP_PATH` is exported in `~/.bashrc`. |

## πŸ§ͺ Validation Step
Before running large productions, the agent should run a "Dry Run" by setting `LSTOP = .TRUE.` in the INCAR or running a single-point energy on a 2-atom cell to verify the environment pathing.

## πŸ“‚ Output Management
- Always capture `energy_free`, `forces`, and `stress`.
- Store results in a structured JSON or CSV for the user to download from the DGX server.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.