xtb
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "xtb":https://skillpi.com/zh/skills/deepskill-e3e8c82a50189322046d087c003c024f1cfcfc3aca62ed615eea3c22f20cc91f。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
准备并解释 xTB 半经验量子化学工作流程,涵盖单点能、力、电荷、偶极矩、几何优化和分子动力学计算;当用户直接请求使用 xTB 计算或希望通过 Python/ASE/dpdata 接口以 xTB 为核心方法调用时,采用此工作流程。
介绍来源: third_party · jinzhezenggroup · 1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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
当前收录版本
1.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供xTB半经验量子化学的完整工作流程,涵盖单点能、力、电荷、偶极矩、几何优化和分子动力学等核心计算场景
- 明确区分直接xTB使用与Python/ASE/dpdata桥接两种模式,满足不同用户需求
- 包含可运行的代码示例和安装指导,实用性强
待提升项
-
触发词覆盖完整性 原报告严重程度:轻微
触发描述非常全面,但缺少显式的'When to Use'章节标题
改进建议:建议添加显式的'When to Use'章节以进一步提升触发清晰度
亮点
- 触发描述精准覆盖xTB直接计算和Python/ASE/dpdata桥接场景
- 明确界定xTB作为主要方法而非ASE后端的定位
- 边界清晰,不易与其他量子化学工具混淆
待提升项
-
文档结构完整性 原报告严重程度:轻微
缺少显式的'When to Use'章节
改进建议:建议添加'When to Use'章节以完善文档结构
亮点
- Phase划分清晰,包含Scope、Supported usage patterns等逻辑章节
- 提供完整的端到端代码示例
- frontmatter完整,包含兼容性、许可证等必要信息
待提升项
-
异常处理覆盖 原报告严重程度:轻微
代码示例中未显式展示异常处理机制
改进建议:建议在代码示例中添加try-catch等异常处理以增强可靠性
亮点
- 工具来源明确(xtb包、ASE桥接)
- 参数说明完整,涵盖method、accuracy、solvent等关键参数
- 提供多种安装和使用模式,适应不同环境
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。