From pyscf
Use when running molecular quantum chemistry calculations in Python. Computes single-point energies, optimized geometries, vibrational frequencies, and population analysis using HF, DFT, or MP2 methods.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pyscf:pyscfThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
PySCF is a pure-Python quantum chemistry package for molecular electronic-structure calculations.
PySCF is a pure-Python quantum chemistry package for molecular electronic-structure calculations.
| Scenario | Recommended Tool | Why |
|---|---|---|
| HF, DFT, or MP2 calculations in a Python workflow | PySCF | Native Python API, easy scripting |
| Methods requiring dispersion corrections, triple-zeta basis sets, or exotic DFT functionals | ORCA / Gaussian | Broader built-in functional and basis-set libraries |
| Periodic solids or plane-wave calculations | ASE + VASP / Quantum ESPRESSO / CP2K | PySCF is primarily molecular |
Key rule: Use PySCF when you need HF/DFT/MP2 energies, geometries, or frequencies for molecules within a Python codebase.
uv pip install pyscf
python scripts/run_calculation.py --molecule "H 0 0 0; H 0 0 0.74" --method HF --basis sto-3g --task energy
python scripts/run_calculation.py --molecule "H 0 0 0; H 0 0 0.74" --method DFT:B3LYP --basis 6-31g --task opt
python scripts/run_calculation.py --molecule "H 0 0 0; H 0 0 0.74" --method HF --basis sto-3g --task freq
All results are printed as JSON to stdout.
sto-3g for quantitative results. It is a minimal basis useful only for teaching or very rough guesses.6-31g(d) or def2-svp for reasonably accurate geometries and energies.mf.max_cycle or use a level-shift if convergence is slow.mf = scf.RHF(mol).density_fit()) to reduce cost.mf.stability()) and re-start.WebFetch on https://pyscf.org/manual.html before answering.| Error / Symptom | Likely Cause | Fix |
|---|---|---|
| SCF does not converge | Bad initial guess, strong correlation, or charge distribution | Try mf.init_guess = '1e', add smearing, or increase max_cycle |
BasisSetNotFoundError | Basis set name misspelled or unsupported | Check spelling and case against the Basis Set Exchange |
| Memory error during large calculation | Exact integrals exceed RAM | Use density fitting (mf.density_fit()) or reduce basis size |
| Negative frequencies after optimization | Geometry not fully converged to a minimum | Re-optimize with tighter convergence or check for transition states |
OverflowError in large systems | Numerical instability in integral evaluation | Switch to density fitting or use a more diffuse basis with care |
If the user asks about recently added features, new options, or version-specific syntax changes, use WebFetch on the official documentation at https://pyscf.org/manual.html before answering.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub wugroup-xjtlu/cc-skills-zhenghaowu-group --plugin pyscf