xtbloom-integrate-ase-dpdata

Integrate xTBloom with ASE or dpdata for workflows involving molecular energies, forces, charges, tags, relaxation, optimizers, or dynamics. Intended for cases that require attaching an xTBloom ASE calculator, configuring a xtbloom driver for dpdata or batch minimizers, preserving adapter eV/Å unit conventions, choosing reproducible or warm-start execution modes, or diagnosing unsupported periodic inputs.

Last repository push
GitHub Stars
166
Forks
30
Issues / PRs
0

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 "xtbloom-integrate-ase-dpdata" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-27aba50765bd569af2a5341bd5bc409b7fd10757150bf0cb28b94c072e5f079f. 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

Integrate xTBloom with ASE or dpdata for workflows involving molecular energies, forces, charges, tags, relaxation, optimizers, or dynamics. Intended for cases that require attaching an xTBloom ASE calculator, configuring a xtbloom driver for dpdata or batch minimizers, preserving adapter eV/Å unit conventions, choosing reproducible or warm-start execution modes, or diagnosing unsupported periodic inputs.

0 Downloads

Introduction source: third_party · jinzhezenggroup · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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

  1. Use xtbloom.ase.XTBloom when the application already operates on ase.Atoms, uses an ASE optimizer or dynamics driver, or expects ASE properties.
  2. Use dpdata's driver="xtbloom" or XTBloomDriver when labeling every frame of a molecular dpdata.System with energies and forces.
  3. Use dpdata's minimizer="xtbloom" with XTBloomDriver when relaxing many molecular frames through the adapter's batch-native L-BFGS workflow.
  4. 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

  1. Import XTBloom from xtbloom.ase and attach it to atoms.calc.
  2. Pass method="GFN1-xTB" or method="GFN2-xTB" explicitly in generated examples. GFN1-xTB is CPU-only; GFN2-xTB supports CPU and CUDA.
  3. Set backend explicitly when silently changing backend would violate the request.
  4. Set charge and multiplicity explicitly when known. Otherwise document ASE's fallback to initial charges and magnetic moments.
  5. Choose warm_start=True for compatible geometry sequences such as optimization or dynamics. Choose warm_start=False for independent calls whose SCC initialization must not depend on an earlier step.
  6. Let ASE consume and report positions in angstrom, energies in eV, and forces in eV/angstrom. Do not manually convert values around the adapter.
  7. 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:

  1. Select the registered "xtbloom" driver or construct XTBloomDriver when an explicit reusable configuration is clearer.
  2. Pass fixed charge, uhf, or multiplicity only when those values apply to every frame. Otherwise preserve valid per-frame dpdata fields.
  3. 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.
  4. Keep dpdata coordinates in angstrom and accept returned energies in eV and forces in eV/angstrom.

For relaxation:

  1. Select minimizer="xtbloom" and pass a configured XTBloomDriver for backend and electronic settings.
  2. Interpret fmax in eV/angstrom and max_steps as geometry moves after the initial force evaluation.
  3. Explain that the minimizer is an upper-level, batch-native L-BFGS adapter built from repeated xTBloom single-point calls.
  4. 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.pbc is 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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 xTBloom 与 ASE/dpdata 集成的完整工作流,解决分子能量、力、弛豫等科学计算任务
  • 面向专业用户,实用性强,覆盖多种集成路径和验证步骤
Trigger Precision92/100

Highlights

  • 触发描述精准完整,覆盖多种使用场景(如 ASE 计算器、dpdata 驱动、批量最小化器等)
  • 边界清晰,用户可明确判断是否适用
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档未设置显式的 'When to Use' 章节标题,尽管描述中已包含使用场景

    Recommendation: 建议添加 'When to Use' 章节以提升可读性

  • 文档长度略长 Reported severity: Minor

    文档内容约 600 行,略超出理想长度

    Recommendation: 可考虑拆分部分内容为子文档或折叠示例代码

Highlights

  • 结构清晰,分节合理,包含集成路径、科学意图、工作流实现和验证
  • 提供具体代码示例和 PEP 723 元数据,便于直接执行
Execution Reliability82/100

Areas to improve

  • 边缘异常处理未显式覆盖 Reported severity: Minor

    未显式说明依赖安装失败等边缘场景的处理方式

    Recommendation: 建议补充对依赖安装失败等常见边缘异常的处理建议

Highlights

  • 工具来源明确,参数说明清晰,单位约定一致(eV/angstrom)
  • 覆盖了主要异常场景(如周期性输入拒绝、SCC 失败处理)
  • 提供了资源释放和验证清单,确保执行可靠性
Evidence Verifiability (mean of the first four)82/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.