← Back to Skills Marketplace
lemon1044

DFT input file generator

by lemon1044 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
223
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install input-file-skill
Description
This skill should be used when generating CP2K input drafts (.inp) for quantum chemistry calculations from local structure inputs. It is a documentation-driv...
README (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": []
}
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install input-file-skill
  3. After installation, invoke the skill by name or use /input-file-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug input-file-skill
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 223 downloads so far.

How do I install DFT input file generator?

Run "/install input-file-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is DFT input file generator free?

Yes, DFT input file generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does DFT input file generator support?

DFT input file generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created DFT input file generator?

It is built and maintained by lemon1044 (@lemon1044); the current version is v1.0.2.

💬 Comments