jinzhezenggroup/xtb
Prepare and explain xTB semiempirical quantum-chemistry workflows for single-point energy, forces, charges, dipole, geometry optimization, and molecular dynamics. Use when the user asks for xTB calculations directly, or wants to use xTB through Python/ASE/dpdata bridges while keeping xTB as the primary method rather than as an ASE-only backend.
npx skills add https://github.com/jinzhezenggroup/computational-chemistry-agent-skills --skill xtb
Use this skill as the top-level xTB orchestration layer.
This skill should:
This skill should not:
dpdisp-submit if execution/submission is requestedUse this skill when the user asks for:
GFN0-xTB, GFN1-xTB, or GFN2-xTBIf the user wants Python scripting, ASE integration, or ASE workflows, use:
from xtb.ase.calculator import XTB
Treat ASE as an integration layer, not the primary identity of the method.
If the user wants labeled data or geometry minimization through dpdata, bridge via the ASE driver/minimizer while still presenting xTB as the force/energy method.
For one-off Python scripts, prefer uv run instead of uvx because this is a Python package used inside a Python script, not a standalone CLI tool.
Recommended pattern for the ASE bridge:
uv run --no-project --with ase --with xtb --with typing_extensions python your_script.py
Notes:
xtb.xtb-python.ModuleNotFoundError: typing_extensions appears, add --with typing_extensions explicitly.GFN2-xTB: default choice for most molecular single-point and force evaluationsGFN1-xTB: use when there is a user or literature reasonGFN0-xTB: use when the workflow specifically needs xTB-level stress through the ASE bridgeFor copy-paste-ready command and script patterns, see:
references/commands-and-workflow.mdUse that reference when the user specifically wants a minimal runnable example for:
from ase.build import molecule
from xtb.ase.calculator import XTB
atoms = molecule("H2O")
atoms.calc = XTB(method="GFN2-xTB")
print(atoms.get_potential_energy())
print(atoms.get_forces())
print(atoms.get_charges())
Common calculator arguments:
methodaccuracyelectronic_temperaturemax_iterationssolventcache_apiProperty support through the ASE bridge includes:
energy / free_energyforcesdipolechargesstress for GFN0-xTB onlyIf the user wants dpdata labeling:
from dpdata.system import System
from xtb.ase.calculator import XTB
sys = System("input.xyz", fmt="xyz")
ls = sys.predict(driver="ase", calculator=XTB(method="GFN2-xTB"))
This connects naturally to tools/dpdata-driver.
If the user wants dpdata geometry minimization:
from dpdata.driver import Driver
from dpdata.system import System
from xtb.ase.calculator import XTB
sys = System("input.xyz", fmt="xyz")
ase_driver = Driver.get_driver("ase")(calculator=XTB(method="GFN2-xTB"))
ls = sys.minimize(minimizer="ase", driver=ase_driver, fmax=0.05, max_steps=200)
This connects naturally to tools/dpdata-minimizer.
Provide:
dpdisp-submit if execution/submission is requestedTake jinzhezenggroup/xtb from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.