jinzhezenggroup/computational-chemistry-agent-skills/gjf-flux
Claude Code and agent skill by jinzhezenggroup/computational-chemistry-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install jinzhezenggroup/computational-chemistry-agent-skills/gjf-fluxSKILL.md
gjf-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 1 or 0 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.
- For Link1 jobs:
- Which step to extract (
job_index, 0-based), or how many steps to assemble.
- 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
Where <section_name> is one of:
directivesroutetitlemoleculeormolecule-<idx>appendixorappendix-<idx>
Notes:
<idx>is 0-based.--job_indexselects the Link1 step (0-based, default0).
Examples:
2) Assemble directives (Link0 commands)
This command accepts key/value pairs in the form --key value.
Examples:
Tip: redirect to a file for later composition:
3) Assemble the route section (# line)
Examples:
Tip:
4) Merge molecule fragments into one molecule block
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:
5) Assemble appendices
Examples:
6) Assemble a complete single-step .gjf
7) Merge multiple tasks into a Link1 multi-step job
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.
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 `.gjf` formatting: 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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingquantum-chemistry/gjf-flux/SKILL.md
Popularity
- Repository stars
- 118
- Repository forks
- 24
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jinzhezenggroup/computational-chemistry-agent-skills/gjf-flux)