xtbloom-integrate-ase-dpdata
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "xtbloom-integrate-ase-dpdata":https://skillpi.com/zh/skills/deepskill-27aba50765bd569af2a5341bd5bc409b7fd10757150bf0cb28b94c072e5f079f。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
将 xTBloom 与 ASE 或 dpdata 集成,用于分子能量、力、电荷、标记、弛豫、优化器或动力学工作流。用于需要附加 xTBloom ASE 计算器、配置 dpdata 的 xtbloom 驱动或批量最小化器、保留适配器的 eV/Å 单位约定、选择可重现或热启动执行方式,或诊断不支持的周期性输入的场景。
介绍来源: third_party · jinzhezenggroup · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: xtbloom-integrate-ase-dpdata
description: Integrate xTBloom with ASE or dpdata for molecular energy, force, charge, labeling, relaxation, optimizer, or dynamics workflows. Use when an AI coding agent needs to attach the xTBloom ASE calculator, configure dpdata's xtbloom driver or batch minimizer, preserve the adapters' eV/angstrom conventions, choose reproducible versus warm-started execution, or diagnose unsupported periodic inputs.Integrate xTBloom with ASE and dpdata
Use xTBloom's public adapters instead of duplicating their unit conversion, charge/spin resolution, batching, or failure handling. Keep the surrounding framework responsible for its workflow: ASE owns optimizers and dynamics, while dpdata owns dataset containers and invokes xTBloom's driver or minimizer plugin.
Run Standalone Programs Ephemerally
For an agent-generated standalone program, add PEP 723 metadata and run it with
uv run --script workflow.py. Declare only the adapter being used:
# /// script
# requires-python = ">=3.10"
# dependencies = ["xtbloom[ase]>=0.1.1"]
# ///
Use xtbloom[dpdata]>=0.1.1 instead for dpdata. Add cuda12 to the same extra
list only when the selected Linux CUDA environment needs those user-space
libraries. Do not install ASE and dpdata together unless the program uses both.
Load the Relevant References
- Read integration-contract.md before changing an ASE or dpdata integration. It is the self-contained behavioral contract.
- Read recipes.md when writing or reviewing executable user code.
Choose the Integration Path
- Use
xtbloom.ase.XTBloomwhen the application already operates onase.Atoms, uses an ASE optimizer or dynamics driver, or expects ASE properties. - Use dpdata's
driver="xtbloom"orXTBloomDriverwhen labeling every frame of a moleculardpdata.Systemwith energies and forces. - Use dpdata's
minimizer="xtbloom"withXTBloomDriverwhen relaxing many molecular frames through the adapter's batch-native L-BFGS workflow. - Use xTBloom's lower-level Python interfaces instead when the task needs atomic-unit arrays, explicit point charges, charge-response operators, direct CUDA buffers, or per-system failure inspection not exposed by these adapters.
Do not route a periodic structure into either adapter. xTBloom has no lattice descriptor, and both integrations reject periodic inputs rather than treating them as isolated molecules.
Gather the Scientific Intent
Before editing code, determine:
- whether the input is one molecule, an ASE trajectory, or a multi-frame dpdata system;
- the total charge and spin multiplicity, including whether they are fixed or vary per frame;
- whether CPU fallback is acceptable (
backend="auto") or the requested backend must be enforced ("cpu"or"cuda"); - whether consecutive calls should share a compatible SCC starting state or remain independent and reproducible;
- whether the caller expects only single-point properties or a framework-owned optimization/dynamics workflow.
Never infer a nonzero charge, multiplicity, or periodic interpretation from geometry alone. Require the user or existing data model to provide scientifically meaningful values.
Implement an ASE Workflow
- Import
XTBloomfromxtbloom.aseand attach it toatoms.calc. - Pass
method="GFN1-xTB"ormethod="GFN2-xTB"explicitly in generated examples. GFN1-xTB is CPU-only; GFN2-xTB supports CPU and CUDA. - Set
backendexplicitly when silently changing backend would violate the request. - Set
chargeandmultiplicityexplicitly when known. Otherwise document ASE's fallback to initial charges and magnetic moments. - Choose
warm_start=Truefor compatible geometry sequences such as optimization or dynamics. Choosewarm_start=Falsefor independent calls whose SCC initialization must not depend on an earlier step. - Let ASE consume and report positions in angstrom, energies in eV, and forces in eV/angstrom. Do not manually convert values around the adapter.
- Close a long-lived calculator explicitly when the workflow ends so its native context and caches are released.
ASE optimizers and dynamics repeatedly call the calculator; they are not native xTBloom geometry optimization or molecular dynamics features. Preserve that distinction in code comments and user-facing explanations.
Implement a dpdata Workflow
For labeling:
- Select the registered
"xtbloom"driver or constructXTBloomDriverwhen an explicit reusable configuration is clearer. - Pass fixed
charge,uhf, ormultiplicityonly when those values apply to every frame. Otherwise preserve valid per-frame dpdata fields. - Treat driver failure as an error for the whole labeling operation. The adapter deliberately avoids publishing silent NaN labels when any frame fails SCC or the eigensolver.
- Keep dpdata coordinates in angstrom and accept returned energies in eV and forces in eV/angstrom.
For relaxation:
- Select
minimizer="xtbloom"and pass a configuredXTBloomDriverfor backend and electronic settings. - Interpret
fmaxin eV/angstrom andmax_stepsas geometry moves after the initial force evaluation. - Explain that the minimizer is an upper-level, batch-native L-BFGS adapter built from repeated xTBloom single-point calls.
- Preserve its all-or-error behavior for SCC/eigensolver failure or a stalled line search. Do not convert those failures into apparently valid relaxed structures.
Do not describe the dpdata minimizer as a native C-ABI optimizer, assume support for periodic cells, or imply that it implements arbitrary ASE constraints.
Validate the Integration
Run the narrowest real workflow available and check all of the following:
- the input is explicitly molecular:
atoms.pbcis false for ASE or dpdata marks the system nonperiodic; - the requested backend is enforced when fallback is unacceptable;
- energy and force arrays are finite and have the expected framework shapes;
- reported units are eV and eV/angstrom at both adapter boundaries;
- charge and multiplicity reach the adapter through the intended fixed or per-frame path;
- a geometry update triggers a new calculation rather than reusing stale results;
- independent calculations use
warm_start=False, while sequential workflows use warm start only intentionally; - the calculator or driver-owned native resources are released when the host workflow ends.
When a requested feature lies outside these adapters, state the boundary and switch to the appropriate xTBloom interface instead of simulating unsupported behavior.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 xTBloom 与 ASE/dpdata 集成的完整工作流,解决分子能量、力、弛豫等科学计算任务
- 面向专业用户,实用性强,覆盖多种集成路径和验证步骤
亮点
- 触发描述精准完整,覆盖多种使用场景(如 ASE 计算器、dpdata 驱动、批量最小化器等)
- 边界清晰,用户可明确判断是否适用
待提升项
-
缺少 When to Use 显式章节 原报告严重程度:轻微
文档未设置显式的 'When to Use' 章节标题,尽管描述中已包含使用场景
改进建议:建议添加 'When to Use' 章节以提升可读性
-
文档长度略长 原报告严重程度:轻微
文档内容约 600 行,略超出理想长度
改进建议:可考虑拆分部分内容为子文档或折叠示例代码
亮点
- 结构清晰,分节合理,包含集成路径、科学意图、工作流实现和验证
- 提供具体代码示例和 PEP 723 元数据,便于直接执行
待提升项
-
边缘异常处理未显式覆盖 原报告严重程度:轻微
未显式说明依赖安装失败等边缘场景的处理方式
改进建议:建议补充对依赖安装失败等常见边缘异常的处理建议
亮点
- 工具来源明确,参数说明清晰,单位约定一致(eV/angstrom)
- 覆盖了主要异常场景(如周期性输入拒绝、SCC 失败处理)
- 提供了资源释放和验证清单,确保执行可靠性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。