$npx -y skills add jinzhezenggroup/computational-chemistry-agent-skills --skill run-gaussActs as a knowledge base providing environment checklists, directory/scratch management, and bash command templates. USE WHEN you need to guide the execution of Gaussian computational chemistry jobs (.gjf) on local or remote/HPC environments.
| 1 | ## Ask the user for these details |
| 2 | |
| 3 | - Run location: `<local>` or `<remote/HPC>` (and scheduler if any) |
| 4 | - Environment setup: `<env_setup_cmds>` (e.g. module load / source script) |
| 5 | - Gaussian executable: `<gaussian_exec>` (e.g. `g16`, `g09`, or absolute path) |
| 6 | - Working directory: |
| 7 | - local prep dir: `<local_work_dir>` (if applicable) |
| 8 | - remote run dir: `<remote_work_dir>` (if applicable) |
| 9 | - per-task dir: `<task_work_dir>` |
| 10 | - Files: |
| 11 | - input: `<input.gjf>` |
| 12 | - Gaussian output: `<gaussian_log>` |
| 13 | - wrapper stdout/stderr (if needed): `<stdout_log>`, `<stderr_log>` |
| 14 | - Scratch: |
| 15 | - `GAUSS_SCRDIR=<scratch_dir>` (e.g. `./scratch`, `$TMPDIR`, or site-provided scratch) |
| 16 | - whether to clean scratch after the run |
| 17 | |
| 18 | ## Command template |
| 19 | |
| 20 | ```bash |
| 21 | <env_setup_cmds> |
| 22 | export GAUSS_SCRDIR=<scratch_dir> |
| 23 | mkdir -p "$GAUSS_SCRDIR" |
| 24 | |
| 25 | <gaussian_exec> < <input.gjf> > <gaussian_log> |
| 26 | |
| 27 | rm -rf "$GAUSS_SCRDIR" |
| 28 | ``` |
| 29 | |
| 30 | ## Generate / assemble `.gjf` (when there is not an existing one) |
| 31 | |
| 32 | Use **gjf-flux** to extract/assemble `.gjf` sections and build workflows. |
| 33 | |
| 34 | Find the extract/assemble skill: `gjf-flux` |
| 35 | |
| 36 | ## Submit via dpdispatcher (recommended) |
| 37 | |
| 38 | Recommend using dpdispatcher to submit Gaussian calculations. |
| 39 | |
| 40 | Find the submission skill: `dpdisp-submit` |