← 返回 Skills 市场
lemon1044

DFT input file generator

作者 lemon1044 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
223
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install input-file-skill
功能描述
This skill should be used when generating CP2K input drafts (.inp) for quantum chemistry calculations from local structure inputs. It is a documentation-driv...
使用说明 (SKILL.md)

CP2K Input Generator

This skill helps the user generate a CP2K input draft from:

  • a simple natural-language description
  • an uploaded local structure file such as .xyz

The uploaded skill package is intentionally scoped to a local-only, documentation-driven workflow. It does not perform automatic retrieval from external structure databases such as PubChem or Materials Project, and it does not include Python runtime helper scripts in the uploaded version.

What this skill does

This skill should:

  1. Understand the user's CP2K job request from plain language.
  2. Read or reference the uploaded local structure file.
  3. Normalize the request into a standard CP2K job specification.
  4. Apply conservative defaults from the reference files when the missing information is safe to infer.
  5. Avoid unnecessary follow-up questions when the ambiguity is not physically important.
  6. Produce:
    • a CP2K input draft
    • a short explanation report describing defaults, assumptions, and limitations

When to use this skill

Use this skill when the user:

  • asks for a CP2K input file
  • describes a simulation in natural language
  • uploads a local .xyz structure file and wants a CP2K job draft
  • asks for geometry optimization, single-point energy, or a simple CP2K setup

Do not use this skill to claim that a structure has been automatically retrieved from an online source. In the current uploaded package, external databases may be mentioned only as manual suggestions for where the user could obtain a structure.

Core principles

  • Prefer practical, conservative defaults.
  • Be explicit about assumptions.
  • Do not claim that the generated settings are globally optimal.
  • Do not claim that convergence has been fully validated unless the user explicitly provides such evidence.
  • Default silently only when the missing field does not change the physical meaning of the calculation.

Safe defaults

Apply defaults silently when safe:

  • If the user uploads a local .xyz file and does not mention periodicity, assume an isolated molecular calculation.
  • If the user asks to "optimize" a structure, assume geometry optimization.
  • If the user does not specify speed vs accuracy, use balanced settings.
  • If the structure is an isolated molecule without cell information, add a vacuum box as a default container for the generated CP2K input.
  • If hardware details are missing, leave hardware fields as unknown rather than inventing machine details.

Reference files

The skill should use the following reference files during decision-making:

  • references/cp2k-task-map.md

    • use this file to map a user request to CP2K task settings
  • references/cp2k-kinds.md

    • use this file to assign default basis sets and pseudopotentials by element
  • references/cp2k-defaults.md

    • use this file to fill in conservative general defaults
  • references/ambiguity-policy.md

    • use this file when the user request is underspecified or physically ambiguous

These reference files are used as decision support within the skill instructions. In the uploaded skill package, they are not executed by local helper scripts.

Do not silently invent these

Do NOT silently invent:

  • total charge, if the system is likely not neutral
  • spin multiplicity, if open-shell behavior is plausible
  • whether a system is truly periodic if the user says crystal or surface but only provides xyz
  • advanced method choices for metals, excited states, strongly correlated systems, or unusual elements

If such information is missing, either:

  • add a warning to notes
  • or ask a follow-up question only if the ambiguity is physically important

Execution flow

When handling a user request, the skill should follow this order:

  1. Determine the request type:

    • CP2K input generation
    • parameter refinement
    • explanation or debugging of an existing CP2K input
  2. Determine the system type:

    • molecule
    • bulk crystal
    • surface/slab
    • 2D material
  3. Normalize the request into the standard CP2K job contract.

  4. Use references/cp2k-task-map.md to map the request to:

    • task type
    • run type
    • method family
    • SCF style
    • periodicity assumptions
    • k-point behavior
    • geometry/cell optimization behavior
  5. Use references/cp2k-kinds.md to assign element-dependent basis/potential defaults.

  6. Use references/cp2k-defaults.md to fill in remaining conservative defaults.

  7. If ambiguity remains, apply references/ambiguity-policy.md.

  8. Produce:

    • a CP2K input draft
    • an explanation report

Output requirements

Every successful run should produce, at minimum:

  1. job.inp
  2. report.md

The report should always include:

  • interpreted task
  • detected system type
  • defaults applied
  • warnings
  • fields that may need user review

If a normalized intermediate representation is used during reasoning, it should be treated as an internal contract for the skill logic rather than a required user-facing artifact in the uploaded package.

Current limitations

  • The uploaded skill package does not include Python runtime scripts.
  • The current documented workflow supports local .xyz structures only.
  • The skill does not automatically retrieve structures from external databases.
  • The generated settings are draft-quality and must be reviewed by the user before production use.

Standard JSON contract

When internal normalization is needed, use a JSON object with the following keys:

{
  "task_type": "geometry_optimization",
  "run_type": "GEO_OPT",
  "system_type": "molecule",
  "structure_file": "uploaded.xyz",
  "periodicity": "NONE",
  "charge": 0,
  "multiplicity": 1,
  "priority": "balanced",
  "xc_functional": "PBE",
  "basis_family": "DZVP-MOLOPT-GTH",
  "potential_family": "GTH-PBE",
  "scf_mode": "OT",
  "kpoints_scheme": "GAMMA",
  "cell_handling": "auto_vacuum_box",
  "cutoff": 500,
  "rel_cutoff": 60,
  "eps_scf": 1.0e-6,
  "max_scf": 100,
  "optimizer": "BFGS",
  "hardware": {
    "type": "unknown",
    "cores": null,
    "memory_gb": null
  },
  "notes": [],
  "defaults_applied": [
    "task_type=geometry_optimization",
    "run_type=GEO_OPT",
    "periodicity=NONE",
    "xc_functional=PBE",
    "basis_family=DZVP-MOLOPT-GTH",
    "potential_family=GTH-PBE",
    "scf_mode=OT",
    "kpoints_scheme=GAMMA",
    "cell_handling=auto_vacuum_box",
    "cutoff=500",
    "rel_cutoff=60",
    "eps_scf=1.0e-6",
    "max_scf=100",
    "optimizer=BFGS"
  ],
  "review_required": []
}
安全使用建议
This package is documentation-only and coherent with its stated goal: it will use uploaded .xyz files plus the included reference docs to produce a CP2K input draft and a report. Before relying on generated inputs, manually review: charge and multiplicity (the skill warns where these are ambiguous), periodicity decisions (xyz→molecule by default), chosen basis/pseudopotential placeholders (the docs use generic placeholders like GTH-PBE that must be resolved against your local CP2K potential/basis files before running), and accuracy/hardware settings. Because there are no runtime scripts or external calls in the uploaded package, the blast radius is low; however, treat outputs as draft-quality and verify them with your usual validation/convergence checks. If you expect automatic lookup of pseudopotential/basis library entries or integration with installed CP2K data, ask for a version of the skill that includes the renderer/runtime scripts and then audit those scripts before use.
功能分析
Type: OpenClaw Skill Name: input-file-skill Version: 1.0.2 The skill bundle is a documentation-driven tool designed to help an AI agent generate CP2K quantum chemistry input files. It contains no executable scripts, Python code, or shell commands; instead, it relies on a comprehensive set of reference markdown files (e.g., cp2k-task-map.md, cp2k-defaults.md) to guide the agent's reasoning. There is no evidence of data exfiltration, malicious execution, or prompt injection attempts across any of the files, including SKILL.md and the reference documents.
能力评估
Purpose & Capability
Name/description (CP2K input generator from local structures) match the packaged files and declared requirements: no binaries, no env vars, no external endpoints. The reference docs and SKILL.md are appropriate for a documentation-driven input-drafting skill.
Instruction Scope
Runtime instructions are limited to reading local uploaded structure files, applying conservative defaults from included reference documents, normalizing into a JSON job spec, and producing job.inp and report.md. The instructions explicitly forbid autonomous retrieval from external databases and do not instruct the agent to read unrelated system files or secrets.
Install Mechanism
There is no install spec and no code to execute; the package is instruction-only with static reference files. This minimizes the risk of arbitrary code being written or executed on the host.
Credentials
The skill does not request any environment variables, credentials, or config paths. The declared needs (none) are proportional to the stated purpose of local input draft generation.
Persistence & Privilege
Skill flags are default (always: false, user-invocable true). It does not request persistent/system-wide configuration changes or special privileges. Autonomous invocation is allowed by platform default but is not combined with other concerning privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install input-file-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /input-file-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Removed two helper scripts: scripts/normalize-request.py and scripts/render-cp2k-input.py. - The skill package no longer includes Python runtime scripts; all decision logic is documentation-driven. - Workflow remains unchanged for generating CP2K input drafts from local .xyz files.
v1.0.1
- Removed support and documentation for automatic structure retrieval from external databases; now limited to local structure file (.xyz) inputs only. - Removed the reference and instructions for `references/structure-sources.md`. - Updated documentation to clarify that the skill operates in a local, documentation-driven manner without Python runtime scripts. - Output requirements simplified to always produce `job.inp` and `report.md`; the normalized JSON is used internally only. - Revised to emphasize conservative defaults and user review, noting the draft nature and local-only workflow.
v1.0.0
- Initial release of the CP2K Input Generator skill. - Generates runnable CP2K input files from natural-language requests and uploaded structures (xyz, cif, pdb). - Normalizes user requests into a standard JSON job specification with explicit applied defaults. - Produces: `normalized.json`, `job.inp`, and a detailed `report.md` explaining decisions, defaults, and fields requiring review. - Applies conservative defaults and avoids unnecessary follow-up questions; does not invent critical parameters without warning. - Uses reference files to determine structure source, task mapping, default basis/potential, and ambiguity handling.
元数据
Slug input-file-skill
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

DFT input file generator 是什么?

This skill should be used when generating CP2K input drafts (.inp) for quantum chemistry calculations from local structure inputs. It is a documentation-driv... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 223 次。

如何安装 DFT input file generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install input-file-skill」即可一键安装,无需额外配置。

DFT input file generator 是免费的吗?

是的,DFT input file generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

DFT input file generator 支持哪些平台?

DFT input file generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 DFT input file generator?

由 lemon1044(@lemon1044)开发并维护,当前版本 v1.0.2。

💬 留言讨论