/fusion:skynetfrom fusion
Drives the SkyNet nuclear reaction network library for astrophysical nucleosynthesis: r-process, rp-process (X-ray bursts), alpha networks, and NSE. Evolves nuclide abundances with self-heating EOS, Coulomb screening, and weak/neutrino reactions using JINA REACLIB.
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.
SkyNet integrates the coupled abundance equations of a nuclear reaction network: given a set of nuclides, a rate library (JINA REACLIB, weak rates, neutrino reactions), a thermodynamic trajectory or a self-heating equation of state, and an initial composition, it returns the time evolution and final abundances. It covers the standard astrophysical networks: the r-process in neutron-star-merger and supernova ejecta, the rp-process on accreting neutron stars (X-ray bursts), alpha networks, and nuclear statistical equilibrium (the high-temperature Saha limit) with Coulomb screening.
Upstream: bitbucket.org/jlippuner/skynet, BSD 3-Clause (Caltech), C++11 + a
little Fortran, built with CMake against HDF5 (C++), GSL, and Boost. The methods
paper is Lippuner and Roberts, ApJS 233, 18 (2017), arXiv:1706.06198.
nan/inf abundances. run_skynet.sh
parses the abundance and max error lines and rejects a run with no finite
result or any non-finite value; verify_skynet.sh pins actual numbers.StopWatch (a wall-clock timing self-test, environment
flaky) and the third NSE block (full-network Saha at T9=3, abundances over
~200 decades), which is libm-limited (Apple exp/log give ~7e-3 vs a
glibc-calibrated 3.5e-5 gate). The identical patched source passes 19/19 on
Linux, so this is a platform numerical difference, not a build fault. Full
evidence in references/verification.md. Do not "fix" it by loosening the
Linux gate or by matching a hand-picked number.scripts/skynet_macos_portability.patch and are
portability only (a constexpr literal for pow, a glibc guard on FPE
trapping, a Boost component drop, a dylib link line, one test include), each
proven behaviour-preserving by the Linux pass. Never edit SkyNet's physics.
The rationale for each is in references/failure-modes.md.$SKYNET_BUILD/tests/<Case>/, and the nuclear data is found through the
install prefix baked into the binary. run_skynet.sh handles this.scripts/install_skynet.sh clones the repo at a pinned commit, applies the
portability patch, configures with CMake (dense LAPACK, Python bindings and
movie maker OFF), builds, installs, runs an AlphaNetwork probe, and prints four
lines:
SKYNET_SRC=<patched source tree>
SKYNET_BUILD=<cmake build dir, holds the case executables>
SKYNET_INSTALL=<install prefix, holds data/ and examples/>
SKYNET_DATA=<install prefix>/data
run_skynet.sh and verify_skynet.sh parse those (or take SKYNET_BUILD from
the environment). Requires git, cmake, gfortran, python3, and HDF5/GSL/
Boost: brew install hdf5 gsl boost on macOS (LAPACK comes from Accelerate);
apt install libhdf5-dev libgsl-dev libboost-all-dev liblapack-dev or a conda
env on Linux. A cold build is a few minutes; the fast path re-probes an existing
build in about a second.
bash scripts/install_skynet.sh # provision and print the SKYNET_* vars
bash scripts/run_skynet.sh [case] # run one network calculation (default: alpha)
bash scripts/verify_skynet.sh # tier-1 benchmark (CTest + pinned anchors)
bash scripts/selftest_skynet.sh # harness guards (14 cases, no real build needed)
Cases for run_skynet.sh:
| case | calculation |
|---|---|
alpha | alpha-chain network to NSE, analytic check (~1 s) |
nse | NSE (Saha) at fixed T, rho, Ye, three reference blocks |
nse-screening | NSE across a T-rho-Ye grid with Coulomb screening |
xrayburst | full rp-process on an X-ray-burst trajectory (~1-2 min) |
neutrino | network including neutrino reactions |
trivial / small | trivial / small hand-checkable networks |
inverse | detailed-balance inverse-rate reconstruction |
SkyNet is a library, and its native interface is Python (from SkyNet import *),
shown by the shipped examples/r-process.py: construct a NuclideLibrary, a set
of REACLIBReactionLibrary rate sets, a HelmholtzEOS and SkyNetScreening,
then a ReactionNetwork and call Evolve. The Python bindings need SWIG and are
OFF in this build (they are a portability liability on a very new Python and are
not needed for the benchmark); turn them on with -DUSE_SWIG=ON after
brew install swig. The field-by-field construction reference, including the C++
driver alternative, is in references/input-format.md. Output formats (HDF5
history, abundance and thermodynamic columns) are in references/output-format.md.
The verification, its tier, the cross-build evidence, and exactly what is and is
not claimed are in references/verification.md. Headline: X(ni56) from the
analytic alpha network is 1.7794E-02 to five figures on both macOS and Linux, the
NSE Saha block reproduces to < 1e-10 on both, and the full CTest suite is 19/19
on Linux and 17/19 on macOS with the two documented libm/timing exceptions.
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_skynet.sh (opens in a new tab)scripts/run_skynet.sh (opens in a new tab)scripts/selftest_skynet.sh (opens in a new tab)scripts/skynet_macos_portability.patch (opens in a new tab)scripts/verify_skynet.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
nucleosynthesis, reaction-network, astrophysics, r-process, nse
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