/fusion:kshellfrom fusion
Drives KSHELL nuclear shell-model code for M-scheme eigenvalue problems. Computes ground-state energies, excitation spectra, spins, parities, isospins, occupations, quadrupole moments, and E2/M1 transition strengths using 25 pre-shipped interactions (USDA/USDB, GXPF1A, KB3G, JUN45, etc.).
Ships in fusion. 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.
KSHELL diagonalizes the nuclear shell-model Hamiltonian in an M-scheme basis with
the thick-restart (block) Lanczos method. Given a valence space and an effective
interaction, it returns the lowest eigenstates: their energies, spins, parities,
isospins, occupations and quadrupole moments, and, through the companion transit
executable, transition strengths between them.
Upstream: the maintained GaffaSnobb fork on GitHub (Python 3.10+ tooling), Fortran 90
references/failure-modes.md for the license situation.kshell.exe writes an
eigenvalue summary (N <H>: E <JJ>: JJ J: 2J/2 prty P). Success means a zero
exit and a finite negative ground state, ascending energies, and the requested
number of states in that summary. run_kshell.sh asserts these from the log.references/verification.md..snt (shipped in snt/) and a
partition .ptn generated by gen_partition.py (Python 3.10+, prompts on stdin,
feed 0 for the full space), tied by the &input ... &end namelist that
kshell.exe reads as its argument. Field reference: references/input-format.md.mtot is 2*M (0 for even-A, 1 for odd-A), not the spin J; J comes out of
the diagonalization. Only fn_int, fn_ptn, mtot, n_eigen change the
eigenvalues; hw_type, eff_charge, gl, gs affect only transitions.scripts/install_kshell.sh clones the GaffaSnobb fork, builds it with gfortran
(overriding LIBS per platform: Accelerate on macOS, -llapack -lblas on Linux,
plus -fallow-argument-mismatch for gfortran 10+), runs the 20Ne probe, and
prints four lines:
KSHELL=<path to kshell.exe>
KSHELL_ROOT=<repo root>
KSHELL_SNT=<snt/ interaction directory>
KSHELL_GENPTN=<bin/gen_partition.py>
About 20 s from a cold clone. Requires git, gfortran, python3 (3.10+), and LAPACK/BLAS
(Accelerate on macOS provides it).
gen_partition.py <interaction.snt> <case.ptn> <valence_p> <valence_n> <parity>
kshell.exe <case.input>
bash scripts/install_kshell.sh # prints KSHELL=, KSHELL_SNT=, ...
bash scripts/run_kshell.sh # 20Ne USDA, 5 lowest M=0 states
bash scripts/run_kshell.sh usda.snt 4 4 1 0 5 # 24Mg (4 valence p + 4 n above 16O)
bash scripts/run_kshell.sh kb3g.snt 4 4 1 0 3 # 48Cr in the fp shell, KB3G
bash scripts/verify_kshell.sh # tier-2 benchmark
bash scripts/selftest_kshell.sh # test the harness guards (13 cases)
^20Ne in the sd shell, USDA interaction, five lowest M=0 states:
| state | E (MeV) | J^pi | Ex (MeV) |
|---|---|---|---|
| 1 | -40.46689 | 0+ | 0.0000 |
| 2 | -38.77105 | 2+ | 1.6958 |
| 3 | -36.37577 | 4+ | 4.0911 |
| 4 | -33.91870 | 0+ | 6.5482 |
| 5 | -32.88208 | 2+ | 7.5848 |
Tier 2: no shipped reference eigenvalue, so L1 is a cross-build integrity check
(the five eigenvalues match to all five printed decimals on gfortran 13.3 and
15.2) and L2 is the physics (the 20Ne rotational band: 0+, 2+ at Ex = 1.70 MeV
against experiment 1.63, 4+; USDA is a fitted interaction). Full account:
references/verification.md.
See references/failure-modes.md. The ones that bite: use the GaffaSnobb fork
(the jorgenem mirror is Python 2); the build needs -fallow-argument-mismatch on
gfortran 10+ and Accelerate (not -llapack) on macOS; valence numbers are
relative to the core; gen_partition can leave an empty .ptn; and success is
the eigenvalue summary, not the exit status.
AGENTS.md (opens in a new tab)examples/README.md (opens in a new tab)references/failure-modes.md (opens in a new tab)references/input-format.md (opens in a new tab)references/output-format.md (opens in a new tab)references/verification.md (opens in a new tab)scripts/install_kshell.sh (opens in a new tab)scripts/run_kshell.sh (opens in a new tab)scripts/selftest_kshell.sh (opens in a new tab)scripts/verify_kshell.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nuclear-physics, shell-model, lanczos, kshell, configuration-interaction
npx claudepluginhub jinleiphys/fusion --plugin fusion29 skills in this plugin
/azure2Drive AZURE2, the Notre Dame multichannel R-matrix code of Azuma et al. (Phys. Rev. C 81, 045805 (2010); GPL-3.0). Write, run and verify .azr configuration files for low-energy charged-particle reactions in nuclear astrophysics: radiative capture, elastic scattering, resonance and subthreshold contributions, external (direct) capture normalised by ANCs, S-factor extrapolation to stellar energies, and reaction rates. Use for 跑AZURE2, AZURE2 input, .azr, R-matrix, R矩阵, 天体物理S因子, astrophysical S factor, direct capture, external capture, ANC, 渐近归一化系数, subthreshold state, CNO cycle capture, resonance analysis./bandBayesian uncertainty quantification for nuclear physics with the BAND framework (Bayesian Analysis of Nuclear Dynamics, bandframework v1.0.0): calibrate a model's parameters against data with surmise, build a fast reduced-basis emulator of nucleon-nucleus elastic scattering with rose, and combine several models' predictions with Bayesian model mixing in Taweret; also routes to the other BAND tools (jitr, Bfrescox, OpenBT, parMOO, PUQ, pybmc, LCGP, mooGP, Smooth Emulator). Use for Bayesian calibration, 贝叶斯校准, 参数后验, posterior, MCMC, emulator, 仿真器, surrogate model, Gaussian process emulator, reduced basis, reduced-order model, ROSE, optical potential calibration, 光学势不确定度, uncertainty quantification, UQ, 不确定度量化, model mixing, 模型混合, Bayesian model averaging, BMM, Taweret, surmise, BAND framework, experimental design. For running FRESCO itself use the `fresco` skill; for fitting a FRESCO deck by chi-squared use `sfresco`./ccfullDrive CCFULL, the all-order coupled-channels code for near-barrier heavy-ion fusion (K. Hagino, N. Rowley, A.T. Kruppa, CPC 123 (1999) 143). Write, run, and verify CCFULL input for fusion excitation functions, barrier distributions, and mean angular momenta with vibrational or rotational couplings and pair transfer. Use for 跑ccfull, CCFULL input, heavy-ion fusion, near-barrier fusion, coupled-channels fusion, fusion excitation function, barrier distribution, 熔合截面./cgmfDrive CGMF, the LANL fission-fragment de-excitation Monte Carlo code of Talou, Stetcu, Jaffke, Rising, Lovell and Kawano (Comput. Phys. Commun. 269, 108087 (2021); BSD-3-Clause). Run and analyse event-by-event simulations of prompt fission neutrons and gammas emitted by excited fission fragments, for spontaneous fission (Cf-252/254, Pu-238/240/242/244) and neutron-induced fission (U-233/234/235/238, Np-237, Pu-239/241) from thermal to 20 MeV: average and distributional neutron and gamma multiplicities, spectra, fragment mass/charge/TKE yields, and n-gamma correlations. Use for 跑CGMF, CGMF input, 裂变, fission, prompt fission neutrons, PFNS, prompt fission gammas, nu-bar, 中子多重性, neutron multiplicity, fission fragment yields, Hauser-Feshbach fission, 252Cf spontaneous fission, event-by-event fission./cnokDrive CNOK, the C++ Glauber-model single-nucleon knockout code of Y.Z. Sun and S.T. Wang (Comput. Phys. Commun. 288, 108726 (2023); GPL-3.0, gitee.com/asiarabbit/cnok). Compute single-particle removal cross sections (stripping + diffractive dissociation) and parallel (longitudinal) momentum distributions of the heavy residue (core) in one-nucleon knockout from intermediate-energy (30 MeV/u to 2 GeV/u) stable and radioactive beams on a light composite target, via the eikonal/sudden Glauber model with a t-rho-rho optical potential; supports batch mode over valence configurations (C2S-weighted inclusive cross sections and momentum distributions, spectroscopic-factor / quenching studies). Use for 跑CNOK, CNOK input, Glauber, 敲出, knockout, single-nucleon removal, stripping, diffractive dissociation, 动量分布, momentum distribution, sigma_sp, single-particle cross section, spectroscopic factor, 谱因子, C2S, quenching, eikonal, sudden approximation, t-rho-rho, 16C knockout, exotic nuclei knockout, MOMDIS./colossDrive COLOSS, the complex-scaled optical and Coulomb scattering solver (Liu Junzhe, Lei, Ren; CPC 311, 109568, 2025). Write, run, and verify COLOSS input for two-body elastic scattering with local or Perey-Buck nonlocal optical potentials, computing S-matrices and cross sections by complex scaling. Use for 跑coloss, COLOSS input, complex scaling scattering, 复标度散射, bound-state technique scattering, S-matrix from Lagrange-Laguerre basis.Other plugins' skills for the same job