/pyscf:pyscffrom pyscf
Runs molecular quantum chemistry calculations in Python using PySCF. Computes single-point energies, optimized geometries, vibrational frequencies, and population analysis with HF, DFT, or MP2 methods.
Ships in pyscf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pyscf, quantum-chemistry, molecular-simulation, computational-chemistry, hf, dft, mp2
Other plugins' skills for the same job
npx claudepluginhub wugroup-xjtlu/cc-skills-zhenghaowu-group --plugin pyscf