/fusion:fusion-setupfrom fusion
Walks through FUSION setup: selects research areas, wires skills and offline knowledge base, seeds private layer from user's papers. Asks one question at a time.
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.
You run the setup. Do not send the user away to run a script.
They are already talking to you, in a terminal, and you can run commands. Telling them to open another terminal, run an interactive script and paste the output back is a bad answer to a question they just asked you. Ask the questions here, in conversation, which is the thing conversation is actually good at, then apply the answers in one command.
The rule this replaces was "never answer the setup prompts on the user's behalf". That rule is still right. It is enforced by asking them, not by making a human type their answers into a second program.
Never present the whole thing at once. A questionnaire with ten numbered options is a form, and nobody wants to fill in a form. Ask one short question, wait for the answer, ask the next. Two exchanges of one line each feel faster than one wall of text, even though they take longer.
There are only two questions, because everything else is either opencode's job or reversible with one command. Keep it that way: a setup that grows questions is a setup nobody finishes.
Say how many there are at the start so it does not feel open-ended. "两个问题" is enough; do not add 我会逐一为您确认 or any other padding.
Never paste the area list. Do not dump ten ids and paper counts on someone.
Ask what they work on in their own words. A nuclear physicist will say "我做核
反应,主要是破裂" or "shell model mostly", and mapping that to an area id is your
job, not theirs. Say which one you matched, and move on. Only show the list if
they ask for it or genuinely cannot say, and even then show four or five likely
ones, not all ten. python3 scripts/fusion_init.py --list-areas gives the ids
with live paper counts when you need them.
Do not ask about either. If the user is talking to you, a model is already running and its key is already stored, both handled by opencode before FUSION is involved. Asking again re-opens a solved problem and makes the setup look longer than it is.
Switching models is /model in the TUI, and changing provider is
opencode auth login. Say so only if the user brings it up. The
--model flag on the script exists for scripted installs; leave it off and
their setting stays untouched.
Free text, then map it yourself. Multiple areas are fine. If they say something outside the ten, say so plainly rather than forcing it into the nearest box, and tell them which skills exist for it if any do.
Only in opencode (the other agents have no theme to set). Install the theme, do not ask. Changing it back is /theme, one command the
user already has, so asking permission spends one of your two questions on a
decision that costs nothing to reverse. Mention it in one clause when you
report what you did: 「配色换成 FUSION 的了,不喜欢 /theme 换回去。」
Explain in one sentence what it buys them: a private page showing the topics their work carries, their co-authors, and who cites them inside the corpus. Ask for arXiv ids. Blank is a perfectly good answer and skips it. Say that it lives outside the repository, because people are right to be careful about where their own work gets written.
If at any point they say 随便 or "you pick", take the defaults, tell them what you took, and stop asking.
Talk like a colleague, not like an assistant. In Chinese: no 首先/其次/另外/ 值得注意的是, no three-part parallel phrases, no summarising close, no 「让我们」. Do not open a question with 看起来 or 关于这个问题. Do not sell the step ("只需一分钟", "非常简单"). Ask, then stop.
Wrong: 「关于模型的选择,我建议您可以考虑使用 DeepSeek,它在性价比方面表现优异。」 Right: 「模型用 deepseek/deepseek-chat?便宜,够用。」
Same in English: ask the question, drop the cushioning.
You may be running non-interactively, where your reply goes nowhere and no answer will ever come back. Then do not run the setup at all. Say that setup needs an interactive session and stop.
Measured, because this went wrong: in run mode the agent asked its questions
into the void and then invoked --apply anyway, choosing a research area and a
paper on the user's behalf and writing a config, a theme and a private profile
they had never agreed to. Asking and then answering for them is worse than not
asking, because it looks like consent.
python3 <FUSION root>/scripts/fusion_init.py --apply \
--agent <claude|codex|antigravity|opencode> \
--model <provider/model> \
--areas <id,id> \
--theme \
--private-dir ~/.fusion \
--papers "<arxiv ids>"
<FUSION root> is two levels above this skill's directory (the plugin's install
directory, or the clone). Always pass --agent with the agent you are
running in. For claude, codex and antigravity, FUSION is a plugin: the
script writes only the private layer and the setup marker, and --model and
--theme are opencode settings, so leave them off. The private layer needs the
knowledge base, so a first setup may download it (about 250 MB; say so before
you run the command).
Omit any flag the user did not choose. Omit --private-dir entirely to skip the
private layer. Add --dry-run first if the user wants to see what it would
write.
One command at the end, not one per answer. The questions are a conversation; the writing is a single step.
It prints SETUP OK with the config path, the skill count, and whether
autoupdate was disabled. Report that back in plain words. If it exits non-zero,
show the user what it said; do not paper over it.
The FUSION skills should be listed in your own skill list (29 of them; in
Claude Code they appear as fusion:<name>). In opencode, run
opencode debug skill and count the ones from FUSION. If some are
missing, they were either shadowed by a same-named skill elsewhere, in which
case say which and where the winning one lives, or they failed to load, in which
case say so and that the cause is not visible from here. Do not report success
because a command exited zero.
Rerunning is safe: the config is merged, the skills path is appended only if
absent, and the existing config is backed up first. The private layer is
regenerated, so if they hand-edited profile.md, tell them to copy it aside or
point the rerun at a different directory.
auth.json or any API key, by any route, and do not ask the
user to paste a key into the chat. A key in a transcript is a leaked key.What SKILL.md sets; muted values are Claude Code's defaults
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