gjf-flux
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 "gjf-flux" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3783683c6bdbe9362efb4c157dfeac9bfabb6ed330c69c6ce9b1973b90629d9c. 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
Assembles and extracts parts of Gaussian .gjf input files (route section, links, title, molecule block, appended sections) and constructs single- or multi-step Link1 jobs from modular component files. Use for generating, reconstructing, templating, or scripting Gaussian job files.
Introduction source: third_party · jinzhezenggroup · 0.1.0 Reference
SkillPi interpretation
- Tasks
- `gjf-flux` is a command-line workflow for **modular Gaussian `.gjf` files**:
- Audience
- 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 `.gjf` jobs from smaller files (fragments, templates, parameterized directives). Inspect/compare `.gjf` files by extracting specific sections.
- Inputs and outputs
- When helping a user, clarify: 1. Target action: **extract** vs **assemble**. 1. File paths: - Existing `.gjf` to read, or component files to assemble. 1. For Link1 jobs: - Which step to extract (`job_index`, 0-based), or how many steps to assemble. 1. Molecule content: - Total charge/multiplicity, fragment charge/multiplicity (if using fragments), coordinate format. 1. Appendices: - Whether there are basis sets, ECPs, ModRedundant constraints, etc.
- Testing
- Not tested
Browse files
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.
Current listing version
0.1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向计算化学领域的专业工具,解决Gaussian输入文件模块化构建的实际痛点
- 提供完整的提取和组装功能,支持单步和多步Link1任务
- 具有明确的专业使用场景和高实用价值
Highlights
- 触发词精准完整,明确说明使用场景和触发条件
- 覆盖多种使用变体,边界清晰
- description位置正确,内容完整
Highlights
- 结构清晰,包含完整的使用说明和示例
- frontmatter完整,包含兼容性、许可证等必要信息
- 提供端到端的完整示例和最佳实践建议
Highlights
- 工具来源明确(uvx执行),参数规范
- 覆盖主要异常情况和常见陷阱说明
- 提供详细的错误处理和使用建议
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.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
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.
User discussion
No verified reviews yet.