xtb
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "xtb" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e3e8c82a50189322046d087c003c024f1cfcfc3aca62ed615eea3c22f20cc91f. Verify the upstream source and version against https://github.com/jinzhezenggroup/computational-chemistry-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Prepare and explain xTB semiempirical quantum‑chemical workflows covering single‑point energies, forces, charges, dipoles, geometry optimizations, and molecular dynamics; use this workflow when a user explicitly requests xTB calculations or wants to invoke xTB as the core method via Python/ASE/dpdata interfaces.
Introduction source: third_party · jinzhezenggroup · 1.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Inputs and outputs
- Provide: 1. the selected xTB usage mode 1. runnable command or script pattern 1. method/solvent/accuracy assumptions 1. unresolved scientific choices 1. handoff to `dpdisp-submit` if execution/submission is requested
- Testing
- Not tested
Browse files
Frontmatter
name: xtb
description: 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.
compatibility: Requires a runnable xTB environment. Python-based workflows can use the `xtb` package; for reproducible ad hoc runs with uv, prefer `uv run --no-project --with ase --with xtb --with typing_extensions python ...` when using the ASE bridge.
license: LGPL-3.0-or-later
metadata:
author: njzjz-bot
version: '1.0'
repository: https://github.com/grimme-lab/xtb-pythonxTB
Use this skill as the top-level xTB orchestration layer.
Scope
This skill should:
- identify whether the user wants direct xTB usage or a Python bridge workflow
- classify the task as static, optimization, or MD-style usage
- keep xTB as the primary method in the user-facing framing
- provide runnable examples for direct Python/ASE integration when appropriate
- document how to connect xTB to dpdata driver/minimizer flows
This skill should not:
- force the user into ASE if they asked for xTB itself
- hide xTB-specific scientific choices behind generic backend wording
- submit jobs directly; use
dpdisp-submitif execution/submission is requested
Supported usage patterns
1. Direct xTB-oriented tasks
Use this skill when the user asks for:
- xTB single-point energy
- xTB forces / charges / dipole
- xTB geometry optimization
- xTB molecular dynamics
- xTB method choice such as
GFN0-xTB,GFN1-xTB, orGFN2-xTB - xTB solvent settings
2. xTB through the ASE bridge
If 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.
3. xTB through dpdata
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.
Practical installation notes
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:
- The PyPI package name is
xtb. - The upstream docs/project are often referred to as
xtb-python. - If
ModuleNotFoundError: typing_extensionsappears, add--with typing_extensionsexplicitly.
Method selection guidance
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 bridge
Detailed runnable examples
For copy-paste-ready command and script patterns, see:
references/commands-and-workflow.md
Use that reference when the user specifically wants a minimal runnable example for:
- single-point energy / forces
- geometry optimization
- dpdata driver labeling
- dpdata minimization
ASE bridge example
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_api
Property support through the ASE bridge includes:
energy/free_energyforcesdipolechargesstressforGFN0-xTBonly
dpdata driver bridge
If 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.
dpdata minimizer bridge
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.
Output expectations
Provide:
- the selected xTB usage mode
- runnable command or script pattern
- method/solvent/accuracy assumptions
- unresolved scientific choices
- handoff to
dpdisp-submitif execution/submission is requested
Current listing version
1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供xTB半经验量子化学的完整工作流程,涵盖单点能、力、电荷、偶极矩、几何优化和分子动力学等核心计算场景
- 明确区分直接xTB使用与Python/ASE/dpdata桥接两种模式,满足不同用户需求
- 包含可运行的代码示例和安装指导,实用性强
Areas to improve
-
触发词覆盖完整性 Reported severity: Minor
触发描述非常全面,但缺少显式的'When to Use'章节标题
Recommendation: 建议添加显式的'When to Use'章节以进一步提升触发清晰度
Highlights
- 触发描述精准覆盖xTB直接计算和Python/ASE/dpdata桥接场景
- 明确界定xTB作为主要方法而非ASE后端的定位
- 边界清晰,不易与其他量子化学工具混淆
Areas to improve
-
文档结构完整性 Reported severity: Minor
缺少显式的'When to Use'章节
Recommendation: 建议添加'When to Use'章节以完善文档结构
Highlights
- Phase划分清晰,包含Scope、Supported usage patterns等逻辑章节
- 提供完整的端到端代码示例
- frontmatter完整,包含兼容性、许可证等必要信息
Areas to improve
-
异常处理覆盖 Reported severity: Minor
代码示例中未显式展示异常处理机制
Recommendation: 建议在代码示例中添加try-catch等异常处理以增强可靠性
Highlights
- 工具来源明确(xtb包、ASE桥接)
- 参数说明完整,涵盖method、accuracy、solvent等关键参数
- 提供多种安装和使用模式,适应不同环境
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.