/fusion:literature-wikifrom fusion
Maintains a structured, interlinked markdown wiki of research papers: ingest PDFs, summarize, cross-reference, and update entity/method/system pages. Useful for researchers who want accumulated synthesis rather than per-query RAG.
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.
This file is the canonical operational protocol. Harness-neutral. The skill ships parallel SKILL.md (Claude Code) and AGENTS.md (Codex CLI) bodies kept in sync by hand. If you edit one, edit the other.
Schema v2 (current) introduces controlled vocabulary on the source frontmatter and an update-index operation that augments each concept page (methods/.md, systems/.md, etc.) with an auto-generated "Papers using this" appendix. Pre-v2 wikis can run migrate to backfill.
v2.1 addition: every source page opens with a ## For future agents gist (see "Source page gist" below). Pre-v2.1 source pages get backfilled on next touch or flagged by lint.
Most LLM-document workflows look like RAG: every question re-discovers knowledge from raw PDFs. Nothing accumulates. For a researcher reading dozens of papers a year on related topics, this is wasted compounding.
This skill maintains a persistent, structured wiki of markdown files. When the user reads a new paper, the skill reads it, extracts what matters, and integrates it into existing entity / method / system pages — updating cross-references, flagging where new data contradicts old claims, strengthening the evolving synthesis. The wiki is the compiled artifact; the raw PDFs sit beside it but are not the primary lookup layer.
The user curates and asks. The skill writes and maintains.
The pattern is field-independent. Default category names suit physical-science research; users in other fields rename in their <wiki>/CLAUDE.md.
Resolution order:
LITERATURE_WIKI_PATH env var.~/.literature-wiki-path (single-line absolute path).~/research-wiki/.If absent, ask before creating.
<wiki>/
├── CLAUDE.md / AGENTS.md # ⭐ vocabulary + per-wiki style overrides (v2)
├── index.md # navigation hub (manual)
├── log.md # chronological log of ingests/queries/lints
├── raw/ # source PDFs/markdown, IMMUTABLE
│ └── assets/ # downloaded figures
├── sources/ # one page per paper, summary + key numbers + tags
├── entities/ # author / group / experiment / code-package pages (manual + AUTO appendix)
├── methods/ # method-level pages (manual + AUTO appendix)
├── systems/ # system-level pages (manual + AUTO appendix)
├── observables/ # quantity-level pages (manual + AUTO appendix)
├── debates/ # explicit pages for who-disagrees-with-whom
└── synthesis/ # cross-cutting themes, working theses
In v2, the concept pages (entities/<slug>.md, methods/<slug>.md, systems/<slug>.md, observables/<slug>.md) all have the structure:
# <Canonical name from vocabulary>
(manual prose: definition, key references, ongoing debates — written by you and the skill on ingest)
<!-- AUTO:BEGIN -->
## Papers using this <axis> (N)
- [YYYY] Author et al. — one-line claim. → [[../sources/<paper-id>]]
## Cross-tags
methods=[…], systems=[…], observables=[…]
<!-- AUTO:END -->
The manual section is your encyclopedic content. The AUTO block is regenerated by update-index from source page frontmatter.
All tag values come from a controlled vocabulary in <wiki>/CLAUDE.md. Four axes for literature-wiki:
| Axis | What it tracks |
|---|---|
entities | authors, groups, experiments, code packages encountered in the literature |
methods | analytical / numerical / experimental methods used by source papers |
systems | specific reactions / nuclei / datasets the source paper studies |
observables | physical or computational quantities computed / measured |
Note: this is NARROWER than the research-profile vocabulary, which has six axes. topics, codes, and collaborators are user-specific concepts that belong in your personal portfolio, not the field-level wiki. However, when you also run research-profile, the slugs for methods, systems, observables should match across both wikis — see "Cross-skill hand-off" below.
In <wiki>/CLAUDE.md:
vocabulary:
methods:
cdcc:
canonical: "Continuum-Discretized Coupled Channels"
aliases: [CDCC, "continuum-discretized"]
iav-cdcc:
canonical: "Ichimura-Austern-Vincent CDCC"
aliases: [IAV-CDCC]
parent: cdcc
entities:
moro-group:
canonical: "A.M. Moro group, Universidad de Sevilla"
aliases: ["Moro group", "Sevilla group"]
...
canonical is required; aliases are case-insensitive multi-language; parent propagates to indices.
When ingesting:
Never invent a tag silently. Reserved uncategorized slug exists per axis; lint warns if usage > 30%.
---
type: source
created: YYYY-MM-DD
last_updated: YYYY-MM-DD
title: "Paper title"
authors: [list, lead first]
year: YYYY
venue: "..."
doi: 10.xxx/xxx
arxiv: ...
# Tag axes (controlled vocabulary)
methods: [iav-cdcc, cdcc]
systems: ["d+93Nb"]
observables: [breakup-cs]
entities: [moro-group]
# Cross-references
contradicts: [[sources/<other-paper>]]
extends: [[sources/<other-paper>]]
# Cross-link into research-profile (for the user's own work derived from / responding to this source)
research_profile_links: [[../research-wiki-personal/papers/published/<slug>]]
---
Concept pages (methods/, systems/, etc.) carry simpler frontmatter:
---
type: method | system | observable | entity
slug: <vocabulary slug>
created: YYYY-MM-DD
last_updated: YYYY-MM-DD
last_indexed: YYYY-MM-DD # set by update-index
---
Immediately after the frontmatter, every sources/*.md opens with a machine preamble:
## For future agents
<2-3 sentences: what the paper claims (with the one key number), which wiki tags /
research lines it touches, and when this page would matter for a query.>
Written so a future agent can decide relevance in one read without loading the rest of the page. Rules:
query; if the gist would not let you decide drill-vs-skip in 10 seconds, rewrite it.(Pattern borrowed from the AI-first vault rule in obsidian-second-brain; same lineage as Karpathy's LLM wiki.)
Trigger: user drops a paper into <wiki>/raw/, points at a PDF (or a folder of PDFs) anywhere on disk, or hands DOI/arXiv/URL and says "归档" / "ingest" / "把这篇加进去".
Set consolidation depth first. Not every paper earns the full flow, and the compounding payoff concentrates on papers central to the user's active research lines. Before filing, judge centrality (cross-check index.md, and research-profile if available), then pick the pass:
Scale effort with centrality, not uniformly across every ingest.
Flow:
Skill(skill="literature-corpus", args="show <arxiv_id>") call — if it hits, the paper's full .tex source is already on disk (the returned tex_dir, on the Samsung4T drive), which is character-exact and needs no re-fetch. Use that source. On a miss, or for non-nucl-th / non-arXiv papers, fetch via the user's literature-search skill (anti-hallucination still applies). If neither skill is available, fetch via WebFetch. (The corpus is the wiki's local feed-in; it holds full text but NOT verified BibTeX, so citations still go through literature-search.)
Skill(skill="pdf-extract", args="<pdf path>") call this turn (a real Skill tool call, not a prose mention; naming it without calling it is the failure mode this guards against), read the returned markdown as the text scaffold, then verify every load-bearing number / equation you record against the original PDF. The PDF is still the file archived into raw/ in step 4; the marker markdown is a working scaffold, not the archived artifact. If pdf-extract is unavailable, read the PDF directly and flag in the source page that equation/table values are unverified. (When a .tex / arXiv source exists, skip this and read the source, which is character-exact.)raw/, then create sources/<paper-id>.md. FIRST copy the source PDF into <wiki>/raw/ if it is not already there (preserve a stable filename). This is mandatory and applies to EVERY pass including light-bulk: whenever the paper was handed from a path outside the wiki, fetched, or bulk-ingested from an external folder, the file must be physically copied in, not merely referenced. Never leave source_pdf: pointing at a file that is not in raw/. THEN write the page with frontmatter (all v2 fields including tag axes), the ## For future agents gist as the first body section (v2.1, mandatory on every pass including light), bibliographic header, abstract in user's words, key claims with section refs, key numbers, figures of interest (downloaded into raw/assets/), wikilinks to relevant concept pages; set source_pdf: to the archived filename now present in raw/.index.md — add the new source under the right category with a one-line summary.update-index to regenerate AUTO blocks on all touched concept pages.log.md: ## [YYYY-MM-DD] ingest | <paper-id> | <one-line takeaway>.Hard invariant (PDF archival). Every sources/*.md page that declares a source_pdf: MUST have that file present in <wiki>/raw/. The wiki is the self-contained archive; a page that names a PDF living only in some external folder (EndNote, Downloads, Zotero) is a broken ingest. This bites hardest on bulk ingests via parallel workers: each worker must cp its PDF into raw/ as part of writing the page, and the orchestrator must verify raw/ file-count rose by the number of new pages before reporting success. After any bulk run, audit with: every source_pdf: value resolves to a real file in raw/ (0 misses), else copy the stragglers in.
Trigger: user asks a question wanting wiki synthesis rather than fresh literature search.
Flow:
index.md to find candidate concept pages by axis (methods, systems, observables, entities).## For future agents gist (first body section, cheap to read); drill into the 3–10 pages whose gist matches, with file:line citations.synthesis/ or debates/. Good answers should compound.Trigger: explicit, or after every ~10 ingests, suggest one.
Check for:
[CONTRADICTS sources/X] and create a debates/ entry.## For future agents first section (pre-v2.1 ingests). Backfill from the page's own content; no PDF re-read needed.contradicts: / extends: / research_profile_links: pointing to non-existent pages.Output: a markdown report. Apply fixes only after user reviews.
Auto-triggered after every ingest; after lint it runs only once the user has approved the lint fixes (lint itself stays read-only). Always idempotent.
Flow:
sources/*.md, read frontmatter only.parent: propagation.<axis>/<slug>.md) referenced by any source frontmatter:
<!-- AUTO:BEGIN --> / <!-- AUTO:END --> markers.<!-- AUTO:BEGIN -->
## Papers using this <axis> (N)
- [YYYY] First-author et al., Venue — one-sentence claim. → [[../sources/<paper-id>]]
## Cross-tags
methods: […], systems: […], observables: […] ← which other tags co-occur most with this one
## Last indexed: YYYY-MM-DD
<!-- AUTO:END -->
## Status: orphaned in the manual section header (do not delete; the prose may still have value).For wikis built before v2 (no controlled vocabulary, no AUTO blocks on concept pages):
sources/*.md. For each, identify missing v2 fields (tag axes, cross-references). Propose values from existing wikilinks; user confirms / corrects.<!-- AUTO:BEGIN/END --> markers if absent (place at the bottom). Existing prose is preserved as the manual section above the markers.update-index once at the end to populate AUTO blocks.Interactive and slow on a large wiki — that is intentional. User must validate each tag application; silent migration would defeat controlled vocabulary.
[[wikilinks]] for internal references. Survives renames; Obsidian renders.CLAUDE.md / AGENTS.md first for vocabulary and personal style overrides.The user's own portfolio lives in research-profile (~/research-wiki-personal/). The two wikis cross-link via:
methods, systems, observables, collaborators (where the latter two skills overlap). Recommended: keep a single ~/research-vocabulary.yml and have both wikis' CLAUDE.md files import from it (skill supports include: <path> in vocabulary block).research_profile_links: frontmatter field on source pages — when the user has their own paper that responds to / extends / contradicts this source, link from here to there.literature: [[../research-wiki/sources/<paper-id>]] when they cite a paper in this wiki.A literature-search skill (database fetcher with anti-hallucination) is the recommended source of new papers. Output of literature-search is input to this skill via <wiki>/raw/. After a successful literature-search, suggest filing the new sources here if the user maintains a wiki.
A literature-corpus skill holds the full local arXiv nucl-th corpus (~62k papers, full text, lexical/BM25). It is this wiki's local feed-in: on ingest of a nucl-th arXiv paper, Skill(skill="literature-corpus", args="show <arxiv_id>") locates the character-exact .tex source already on disk (step 1 above), avoiding a re-fetch. It is also the discovery layer for "what in the whole field bears on this topic" beyond the few-hundred papers already in the wiki — a corpus hit worth keeping becomes an ingest candidate here. The corpus has full text + metadata but NOT verified BibTeX, so any citation still passes through literature-search. A corpus miss is never proof of novelty (nucl-th-only, lexical).
Any paper-writing skill (review-writing, journal-submission) should query this wiki when building related-work sections. The query operation here returns [[wikilinks]] that paper-writing can resolve to BibTeX (via literature-search verification).
templates/CLAUDE.md — vocabulary starter with empty axes (entities/methods/systems/observables) + example entries. Copy to <wiki>/CLAUDE.md on first use.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