gjf-flux
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "gjf-flux":https://skillpi.com/zh/skills/deepskill-3783683c6bdbe9362efb4c157dfeac9bfabb6ed330c69c6ce9b1973b90629d9c。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
组装并提取 Gaussian .gjf 输入文件各部分(指令、路径、标题、分子块、附录),并基于模块化组件文件构建单步或多步 Link1 任务。用于生成、重构、模板化或脚本化 Gaussian 任务文件的场景。
介绍来源: third_party · jinzhezenggroup · 0.1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: gjf-flux
description: >
Assemble and extract Gaussian .gjf input file sections (directives, route, title, molecule blocks, appendices) and build single- or multi-step Link1 jobs from modular component files.
USE WHEN needed for generating, refactoring, templating, or scripting Gaussian job files.
compatibility: Requires `uv` installed and available in PATH.
license: LGPL-3.0-or-later
metadata:
author: light-cyan
version: 0.1.0
repository: https://github.com/light-cyan/gjf-fluxgjf-flux (Gaussian Job File Assembly & Extraction)
gjf-flux is a command-line workflow for modular Gaussian .gjf files:
- Extract a specific section from an existing
.gjf(including Link1 multi-step jobs). - Assemble directives/route/molecule/appendix blocks into a complete
.gjf, or merge multiple tasks into a Link1 job.
When to use
Use this skill when you need to:
- Reuse parts of Gaussian inputs across many calculations (e.g., route lines, molecule blocks, basis/constraints appendices).
- Programmatically build
.gjfjobs from smaller files (fragments, templates, parameterized directives). - Inspect/compare
.gjffiles by extracting specific sections.
Assumptions / Parsing model (important)
gjf-flux assumes a standard Gaussian input layout:
- Link1 steps are separated by a blank line, then
--Link1--, then a newline. - Within each Link1 step, blocks are separated by blank lines.
- The route section begins at the first line starting with
#and continues through subsequent lines. - A molecule block is detected when the first line of a block looks like paired integers
(e.g.,
0 1or0 1 0 1 0 1), representing charge/multiplicity pairs.
If a .gjf deviates from these conventions, extraction may fail or misclassify blocks.
Inputs you should request from the user
When helping a user, clarify:
- Target action: extract vs assemble.
- File paths:
- Existing
.gjfto read, or component files to assemble.
- Existing
- For Link1 jobs:
- Which step to extract (
job_index, 0-based), or how many steps to assemble.
- Which step to extract (
- Molecule content:
- Total charge/multiplicity, fragment charge/multiplicity (if using fragments), coordinate format.
- Appendices:
- Whether there are basis sets, ECPs, ModRedundant constraints, etc.
Core commands (cheat sheet)
1) Extract a section from a .gjf
uvx gjf-flux extract <section_name> <FILE.gjf> [--job_index N]
Where <section_name> is one of:
directivesroutetitlemoleculeormolecule-<idx>appendixorappendix-<idx>
Notes:
<idx>is 0-based.--job_indexselects the Link1 step (0-based, default0).
Examples:
# Extract the route line from the first Link1 step
uvx gjf-flux extract route input.gjf
# Extract the second molecule block from step 0
uvx gjf-flux extract molecule-1 input.gjf
# Extract the first appendix block from Link1 step 2
uvx gjf-flux extract appendix-0 input.gjf --job_index 2
2) Assemble directives (Link0 commands)
uvx gjf-flux assemble directives --chk FILE --mem SIZE --nprocshared N
This command accepts key/value pairs in the form --key value.
Examples:
uvx gjf-flux assemble directives --chk job.chk --mem 16GB --nprocshared 16
Tip: redirect to a file for later composition:
uvx gjf-flux assemble directives --chk job.chk --mem 16GB --nprocshared 16 > directives.txt
3) Assemble the route section (# line)
uvx gjf-flux assemble route [-l p|n|t|""] <keywords...>
Examples:
#p Opt B3LYP/6-31G(d)
uvx gjf-flux assemble route -l p Opt B3LYP/6-31G(d)
# Use quotes for keywords with parentheses
uvx gjf-flux assemble route -l p "Opt(MaxCycle=100)" "Freq"
Tip:
uvx gjf-flux assemble route -l p "Opt(MaxCycle=100)" "Freq" > route.txt
4) Merge molecule fragments into one molecule block
uvx gjf-flux assemble molecules <frag1.txt> <frag2.txt> ... [--as-fragment] [--charge INT] [--multi INT]
Each fragment file must follow this format:
- Line 1:
charge multiplicity(e.g.,0 1) - Following lines: atomic coordinates (Gaussian-style)
Modes:
- Default: merges into a single molecule block.
--as-fragment: assignsFragment=1,2,...tags and expands the charge/multiplicity header.
Examples:
# Merge two fragments into a single molecule block
uvx gjf-flux assemble molecules fragA.txt fragB.txt > molecule.txt
# Merge as fragments, overriding total charge/multiplicity
uvx gjf-flux assemble molecules fragA.txt fragB.txt --as-fragment --charge 0 --multi 1 > molecule.txt
5) Assemble appendices
uvx gjf-flux assemble appendices <app1.txt> <app2.txt> ...
Examples:
uvx gjf-flux assemble appendices basis.txt modredundant.txt > appendix.txt
6) Assemble a complete single-step .gjf
uvx gjf-flux assemble job \
--directives directives.txt \
--route route.txt \
--title "Your title" \
--molecule molecule.txt [molecule2.txt ...] \
[--appendices appendix.txt ...]
7) Merge multiple tasks into a Link1 multi-step job
uvx gjf-flux assemble tasks step1.gjf step2.gjf [step3.gjf ...] > link1.gjf
End-to-end example (one-liners with command substitution)
This example shows a single-step job assembled from:
- directives: produced directly from CLI flags
- route: produced inline from
assemble route - molecule: extracted from an existing
.gjf, then re-merged (optionally overriding multiplicity) - appendices: extracted from other
.gjffiles and concatenated
Note: This uses bash/zsh process substitution (
<(...)). If you are on a shell that does not support it, redirect each block into a file first.
# 1) Build directives to a file (recommended; easier to audit)
uvx gjf-flux assemble directives --chk job.chk --mem 16GB --nprocshared 16 > directives.txt
# 2) Assemble a full .gjf using inline-generated route/molecule/appendix blocks
uvx gjf-flux assemble job \
--directives directives.txt \
--route <(uvx gjf-flux assemble route -l p "Opt(MaxCycle=100)" "Freq" B3LYP/6-31G(d)) \
--title "Opt+Freq from extracted building blocks" \
--molecule <( \
gjf-flux assemble molecules \
<(uvx gjf-flux extract molecule-0 reactant.gjf) \
fragment_extra.xyz \
--multi 1 \
) \
--appendices \
<(uvx gjf-flux extract appendix-1 reactant.gjf) \
<(uvx gjf-flux extract appendix-0 reference.gjf) \
app_manual.txt \
> job.gjf
Variants:
- If you only want to reuse an extracted molecule block verbatim (no merge), pass:
--molecule <(uvx gjf-flux extract molecule-0 input.gjf)
- If you are assembling a Link1 workflow, build each step as its own
.gjfand then:uvx gjf-flux assemble tasks step1.gjf step2.gjf > link1.gjf
Recommended workflow (practical)
- Create/derive component blocks:
directives.txt(fromassemble directivesor manual)route.txt(fromassemble route)molecule.txt(fromassemble moleculesor extracted from a prior.gjf)appendix.txt(optional)
- Assemble a complete job via
assemble job. - If you have multiple steps, build each step as a
.gjfand then merge usingassemble tasks. - Verify by extracting critical sections from the final output.
Common pitfalls
- Wrong indexing:
job_index,molecule-<idx>, andappendix-<idx>are all 0-based. - Non-standard
.gjfformatting: unusual blank-line structure can break parsing. - Fragment files must start with
charge multiplicity: otherwise molecule merge will fail. - Keyword quoting: route keywords with parentheses should be quoted in the shell.
Notes for agents
- Prefer asking the user for a concrete example
.gjfif parsing fails. - When assembling, keep each component file small and purpose-specific; it makes debugging far easier.
- If the user wants a repeatable pipeline, suggest storing reusable components (route templates, basis set appendices, fragment libraries) in version control.
当前收录版本
0.1.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 面向计算化学领域的专业工具,解决Gaussian输入文件模块化构建的实际痛点
- 提供完整的提取和组装功能,支持单步和多步Link1任务
- 具有明确的专业使用场景和高实用价值
亮点
- 触发词精准完整,明确说明使用场景和触发条件
- 覆盖多种使用变体,边界清晰
- description位置正确,内容完整
亮点
- 结构清晰,包含完整的使用说明和示例
- frontmatter完整,包含兼容性、许可证等必要信息
- 提供端到端的完整示例和最佳实践建议
亮点
- 工具来源明确(uvx执行),参数规范
- 覆盖主要异常情况和常见陷阱说明
- 提供详细的错误处理和使用建议
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。