dft-qe

Quantum ESPRESSO 任务生成器:依据用户提供的结构和 DFT 设置(赝势、泛函、截断能、k点、展宽、自旋/电荷、收敛参数等),为 SCF、NSCF、relax、vc-relax、MD、能带、DOS 或声子等 QE 计算生成输入任务;仅用于生成 QE 任务,提交请使用独立提交技能。

仓库最近推送
GitHub Stars
166
Forks
30
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "dft-qe":https://skillpi.com/zh/skills/deepskill-4ceac2352f5a0eb6245f7c134521f5a39760c2f6af25fbaa282878f956c679aa。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

Quantum ESPRESSO 任务生成器:依据用户提供的结构和 DFT 设置(赝势、泛函、截断能、k点、展宽、自旋/电荷、收敛参数等),为 SCF、NSCF、relax、vc-relax、MD、能带、DOS 或声子等 QE 计算生成输入任务;仅用于生成 QE 任务,提交请使用独立提交技能。

0 下载

介绍来源: third_party · jinzhezenggroup · 1.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: dft-qe
description: Generate Quantum ESPRESSO DFT input tasks from a user-provided structure plus user-specified DFT settings. Use when the user wants to prepare QE calculations such as SCF, NSCF, relax, vc-relax, MD, bands, DOS, or phonons starting from a structure file or coordinates together with pseudopotentials, functional choice, cutoffs, k-point settings, smearing, spin/charge, and convergence parameters. This skill prepares the QE task only; use a separate submission skill such as dpdisp-submit to submit the generated task.
compatibility: Requires a user-provided initial structure and enough DFT parameters to build a scientifically meaningful QE input.
license: LGPL-3.0-or-later
metadata:
  author: Yi-FanLi
  version: '1.0'
  repository: https://gitlab.com/QEF/q-e
  qe_docs: https://www.quantum-espresso.org/Doc/user_guide/

DFT with Quantum ESPRESSO

Use this skill to build a QE DFT task from a user-provided structure and DFT settings.

Scope

This skill should:

  • require a user-provided structure
  • read or normalize the structure input
  • identify the target calculation type
  • collect the minimum required DFT settings
  • generate the QE input file
  • organize the task directory in a way that can be handed off to a submission skill
  • state assumptions and unresolved choices

This skill should not:

  • submit jobs
  • manage schedulers
  • handle remote execution
  • invent critical scientific parameters

If the user wants the task submitted, hand off to another skill such as dpdisp-submit after the QE task is generated.

Hard requirement

The user must provide a structure.

Do not generate a QE task without a user-provided structure source. If the structure is missing, stop and ask for it.

Structure input convention

Use this bundled example-plus-layout pattern as the reference:

  • generated QE input example: assets/pw-water-0.in
  • user-provided structure staging pattern: openclaw_input/ containing files such as structure.xyz and CELL

Treat this as the canonical pattern for what the user is expected to provide and what this skill is expected to generate.

The structure format does not need to be fixed to xyz. If the user provides another reasonable atomistic structure format, convert or normalize it as needed. When format conversion is needed, use the dpdata-cli skill.

For periodic systems, ensure cell information is preserved. If a plain xyz file is used, cell data must be provided separately, for example through a CELL file.

For a concrete file-oriented workflow, see references/commands-and-workflow.md.

Expected workflow

  1. Start from a user-provided structure.
  2. Normalize the structure into the task layout if needed.
  3. Determine the target QE calculation type.
  4. Collect only the missing critical DFT parameters.
  5. Generate the QE input file.
  6. Place the generated task in a runnable task directory.
  7. If submission is requested, pass that directory to dpdisp-submit.

DFT parameters to collect

Must provide

Do not generate a formal QE task unless these are known or explicitly confirmed:

  • calculation
  • input_dft
  • ecutwfc
  • pseudo_dir
  • pseudopotential file for each element

Usually should be explicit

These should normally be confirmed rather than guessed:

  • vdw_corr when dispersion may matter
  • ecutrho when relevant to the pseudopotential family or workflow
  • K_POINTS setting, for example gamma or an automatic mesh
  • occupation / smearing settings for metallic or ambiguous systems
  • conv_thr
  • electron_maxstep

Task-specific additions

Also collect task-dependent parameters when relevant.

For relax / vc-relax:

  • forc_conv_thr
  • etot_conv_thr
  • cell_dofree for vc-relax

For md:

  • nstep
  • dt
  • ion_temperature
  • tempw
  • ion_dynamics

For spin-polarized or magnetic systems:

  • nspin
  • starting_magnetization
  • charge or spin-related settings if requested

For advanced workflows if explicitly requested:

  • Hubbard U settings
  • hybrid-functional settings
  • electric field settings such as edir, emaxpos, or related controls

Do not ask for everything at once; ask only for the missing essentials.

Required behavior

  1. Inspect the provided structure if accessible.
  2. Determine elements, cell information, and coordinate representation.
  3. If format normalization is needed, convert the structure using dpdata-cli.
  4. Confirm the QE task type.
  5. Gather only the missing critical DFT settings.
  6. Generate the QE input yourself.
  7. Explain assumptions clearly.
  8. Flag unresolved scientific choices instead of hiding them.
  9. Prepare the task directory so another skill can submit it.

Template pattern

Use the QE example input included in this repository:

assets/pw-water-0.in

as the reference pattern for how a QE task is organized and how the pw.x input is laid out.

In this workflow:

  • the user provides the structure in openclaw_input-style form
  • this skill generates the QE input task, analogous to files like assets/pw-water-0.in
  • a separate submission skill handles the job script and submission stage

Do not hard-code the example chemistry. Reuse only the workflow pattern.

Defaulting policy

Allowed only for low-risk, clearly labeled assumptions.

Reasonable provisional defaults:

  • calculation='scf' for a plain single-point request
  • standard electronic convergence threshold when the user does not care
  • basic verbosity settings

Do not silently invent:

  • structure data
  • pseudopotential filenames
  • production cutoffs
  • production k-point meshes
  • magnetic state for open-shell systems
  • Hubbard / vdW / hybrid settings
  • metallic smearing behavior when the system character is unclear

Expected output

Provide:

  1. the full QE input file
  2. a short summary of the chosen settings
  3. explicit assumptions
  4. any decisions the user should still confirm
  5. the generated task directory or file set for the next skill
  6. if submission is requested, explicitly say the next step is dpdisp-submit

Minimal pw.x structure

&CONTROL
  calculation = 'scf'
  prefix = 'system'
  outdir = './'
/
&SYSTEM
  ibrav = 0
  nat = ...
  ntyp = ...
  ecutwfc = ...
  ecutrho = ...
/
&ELECTRONS
  conv_thr = 1.0d-8
/
ATOMIC_SPECIES
...
CELL_PARAMETERS angstrom
...
ATOMIC_POSITIONS angstrom
...
K_POINTS automatic
kx ky kz 0 0 0

Handoff rule

When the user asks to submit the generated QE task, do not implement submission logic here. Instead:

  • finish generating the QE task directory and input file
  • tell the user the task is ready for submission
  • hand off to dpdisp-submit

Common failure points

  • missing user-provided structure
  • missing cell for periodic systems
  • incomplete pseudopotential mapping
  • nat / ntyp inconsistent with the structure
  • missing or poor cutoffs
  • missing or inappropriate smearing
  • omitted spin settings for magnetic cases
  • requesting post-processing or phonons without prerequisite context

当前收录版本

1.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 直接解决用户在第一性原理计算中准备Quantum ESPRESSO输入文件的明确痛点
  • 适用于科研与材料计算场景,具有广泛实用价值
  • 功能定位清晰,专注于输入文件生成而非任务提交
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
  • description中明确列出了适用场景和参数要求
  • 触发条件清晰,用户容易理解何时使用此技能
结构规范90/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,单文件≤500行
  • 文档结构良好,包含Scope、Expected workflow、DFT parameters to collect等清晰章节
执行可靠85/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
  • 技能明确要求用户提供结构,并详细列出了必须提供的参数
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • gitlab.com
  • www.quantum-espresso.org

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。