VASP Skills is an agent-oriented toolkit for VASP workflows. It automates the following tasks:
- Generate input files (INCAR/POSCAR/KPOINTS/POTCAR)
- Run and chain multi-step calculation workflows
- Validate inputs and diagnose common runtime errors
- Parse outputs and export/visualize results
- Materials simulation automation (high-throughput DFT)
- LLM agents that need callable, verifiable, and recoverable VASP capabilities
- Standardized skill components for VASP task orchestration
This repository provides:
agent_skill.yaml: skill definition, capabilities, input/output contract, and failure policy
Agents can use it for:
- Capability discovery
- Argument validation
- Result interpretation
- Error recovery
pip install -e .pip install -e .[dev]vasp-skills generate relax -p POSCAR -d relax_jobvasp-skills validate -d relax_jobvasp-skills check -d relax_jobvasp-skills parse energy -d relax_job
vasp-skills parse forces -d relax_job
vasp-skills parse gap -d relax_jobvasp-skills workflow bandstructure -p POSCAR -d band_workflow --write-only- Structure input is POSCAR by default (CIF conversion is supported in some scenarios)
- At minimum, generation requires:
POSCAR - Validation requires:
INCAR/POSCAR/KPOINTS/POTCAR
- Generation commands produce VASP input files
- Parsing commands produce structured physical metrics (energy, force, band gap, etc.)
- Export commands produce CSV/JSON files
- Invalid arguments: command fails fast with a non-zero exit code
- Missing input files: validator returns explicit error list
- Common VASP failures: ErrorHandler returns actionable recovery suggestions
tests/provides baseline unit tests.github/workflows/ci.ymlprovides minimal CI (install + test)pyproject.tomlprovides unified build and test configuration
Run tests:
pytest -qvasp_skills/
calculation/ # Calculation templates and execution logic
core/ # Core INCAR/POSCAR/KPOINTS/POTCAR utilities
workflow/ # Workflow chaining, validation, and error handling
postprocess/ # Parsing, exporting, and plotting
- This project does not include the VASP binary; users must have a valid VASP environment and license.
- Default POTCAR path and runtime commands can be configured in
config.yaml. - On HPC systems, tune
vasp_cmdand parallel parameters based on cluster policies.