/fusion:nucleartoolkitfrom fusion
Drives NuclearToolkit.jl, a Julia package for nuclear structure calculations spanning ab initio to shell-model methods. Generates chiral-EFT interactions, runs HFMBPT, IMSRG, VS-IMSRG, and valence-space shell-model diagonalization for energies, spins, transitions, and electron capture.
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.
NuclearToolkit.jl covers the whole structure pipeline in one Julia package: generate a chiral-EFT interaction, softening it and mapping it into a harmonic-oscillator basis; run HFMBPT and the (VS-)IMSRG to produce either an ab initio ground-state energy or a valence-space effective interaction; and diagonalize the shell model to get spectra, spins, transitions and electron capture. It is the ab-initio + shell-model counterpart to the phenomenological shell-model code KSHELL already in this catalog.
Upstream: github.com/SotaYoshida/NuclearToolkit.jl, MIT (Sota Yoshida), a
registered Julia package. Paper: JOSS 7(79), 4694 (2022), DOI 10.21105/joss.04694.
NaN. run_* parses
the eigenvalues and requires them finite, ascending, negative ground state;
verify_* pins the CKpot Be-8 reference and parses the Pkg.test Pass/Total.@test
assertions compare against the authors' own reference values, and this
reproduces them: the CKpot Be-8 shell-model spectrum to the shipped tolerance
|dE| < 1e-3, and the full Pkg.test (30/30) including the He-4 IMSRG ground
state -4.05225276 to 1e-6. See references/verification.md.JULIA_DEPOT_PATH and project under ~/.cache/fusion/nucleartoolkit, pinned
to a fixed version, so the user's own global Julia environment and packages
are never touched or upgraded. Every julia call in every script sets
JULIA_DEPOT_PATH; do not drop it, or a run could pick up a different
NuclearToolkit from ~/.julia.Be8, O18, ...) and a shipped interaction (ckpot p-shell,
usdb sd-shell); the model space comes from the interaction file. Pick an
interaction whose space contains the nucleus.Pkg.add + precompile. Do not vendor or patch the package.scripts/install_nucleartoolkit.sh resolves julia, creates an isolated depot +
project, Pkg.adds the pinned NuclearToolkit version, precompiles, runs a CKpot
Be-8 probe, and prints five lines:
NTK_JULIA=<julia binary>
NTK_DEPOT=<isolated JULIA_DEPOT_PATH>
NTK_PROJ=<isolated project dir>
NTK_PKGDIR=<installed package source root>
NTK_VERSION=<version>
run_* and verify_* parse those (or take them from the environment). Requires
Julia >= 1.7. The first install precompiles ~400 dependencies (it pulls a
plotting stack), several minutes; the fast path re-probes an existing install in
about 15 seconds (Julia startup dominates).
bash scripts/install_nucleartoolkit.sh # provision, print NTK_* vars
bash scripts/run_nucleartoolkit.sh [nucleus] [interaction] [n_eigen] # shell model (default Be8 ckpot 10)
bash scripts/verify_nucleartoolkit.sh # tier-1 benchmark (CKpot anchor + full Pkg.test); NTK_FAST=1 for L1 only
bash scripts/selftest_nucleartoolkit.sh # harness guards (17 cases, stubbed, no package needed)
run examples: Be8 ckpot 10 (p-shell, the benchmark case), Li6 ckpot 3,
O18 usdb 5 (sd-shell), Ne20 usdb 5.
The headline capability is the chiral-EFT -> IMSRG chain, exercised end to end by
verify_* (the full Pkg.test). To author it yourself: make_chiEFT() builds
the interaction, hf_main(nucs, sntf, hw, emax; doIMSRG=true, ...) runs HFMBPT
and the IMSRG (add valencespace=... for VS-IMSRG to emit an effective
interaction), and main_sm(sntf, nuc, n_eigen, Js) diagonalizes the shell model
with that interaction. Field-by-field construction is in
references/input-format.md; outputs (energies, .snt effective interactions,
observables) in references/output-format.md.
Tier, anchors, and what is and is not claimed are in references/verification.md.
Headline: the CKpot Be-8 spectrum reproduces the shipped reference to |dE| < 1e-3
(g.s. -31.1194 vs -31.119), and Pkg.test is 30/30 including the ab initio He-4
IMSRG ground state to 1e-6.
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_nucleartoolkit.sh (opens in a new tab)scripts/run_nucleartoolkit.sh (opens in a new tab)scripts/selftest_nucleartoolkit.sh (opens in a new tab)scripts/verify_nucleartoolkit.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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`.Other plugins' skills for the same job