Molecular Orbital Visualization
Use this skill to discover local wavefunction/orbital cube files, run Multiwfn when needed, and render requested molecular orbitals as front and side views.
Quick Start
For a user request containing --MO, run:
bashpython3 scripts/mo_pipeline.py --MO HOMO,LUMO --homo <HOMO-index> --workdir <user-project-dir> --execute
Use --input <file> when the user names a wavefunction file. Use --cube <label=path> or repeated --cube <path> when orbital cube files already exist. Use --search-root <dir> repeatedly when the user wants files found outside the current project.
Workflow
- Read
references/mo-workflow.mdbefore running an analysis. - Run
scripts/mo_pipeline.py --MO ... --workdir ...without--executewhen you need to inspect selected files, orbital indices, and tools first. - Run again with
--executeonce the selected inputs and orbital mapping are plausible. - If Multiwfn fails to generate cube files, read
references/multiwfn-orbital-recipes.md, inspectmultiwfn_orbitals.inpand logs, then patch or rerun with--recipe <file>. - If rendering fails, read
references/orbital-visualization.md, inspect the generated.tclor.cxcscripts, and rerun with--renderer vmdor--renderer chimerax. - Return the front/side image paths, manifest path, exact commands used, and caveats about orbital numbering or unvalidated recipes.
Required User Information
Users may provide absolute orbital numbers directly:
bashpython3 scripts/mo_pipeline.py --MO 45,46 --input molecule.fchk --execute
Users may provide frontier labels only when --homo <N> is also known:
bashpython3 scripts/mo_pipeline.py --MO HOMO,LUMO,HOMO-1 --homo 45 --input molecule.fchk --execute
Do not infer the HOMO index silently from filenames or logs in v1.
Output Contract
The pipeline writes an output folder containing:
manifest.jsonwith selected files, discovered tools, orbital mappings, commands, warnings, and outputs.summary.mdwith the requested orbitals and generated image paths.multiwfn_orbitals.inpandmultiwfn_orbitals.logwhen Multiwfn is used.render_<orbital>_front.tclandrender_<orbital>_side.tclfor VMD, or.cxcscripts for ChimeraX.<orbital>_front.pngand<orbital>_side.pngwhen rendering succeeds; VMD may also leave intermediate.tgafiles.
If a dependency or input is missing, report exactly what was discovered and which file, tool, or orbital index is needed next.


