/web-latex-mcp:format-bibliographyfrom WebLatexMCP
Normalizes and reformats a project's .bib bibliography: deduplicates entries, renames cite keys to firstauthorYEARtag, harmonizes venue names, and applies a consistent field policy. Edits both .bib and .tex files via web-latex-mcp.
Ships in WebLatexMCP. 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.
None: SKILL.md is the whole skill.
.bib bibliographyBring a bibliography into a single, consistent house style through the web-latex-mcp MCP tools. Four passes,
each one the collaborator asked for:
firstauthorYEARtag (e.g. smith2024fastnet), and update
every \cite{…} in the draft to match.CVPR) or long
(Computer Vision and Pattern Recognition), the user's choice — not a mix.url, doi,
pages, …), consistently across every entry.Unlike verify-citations (read-only), this skill rewrites the .bib
and the .tex. Treat it accordingly.
.bib is protected. Every .bib write goes through edit_file/write_file with
confirmBibEdit: true — set it only after the user has approved the change.Citation … undefined warnings — that warning is the tell-tale of a key rename that
didn't reach the .tex. Reformatting deliberately changes how the bibliography renders (e.g. CVPR
vs the full name); what must not change is the set of papers cited or the project's ability to
compile.doi/pages, an author list), pull it via search_references
— which answers from DBLP, Crossref or OpenAlex, and reports which in its source — rather than
inventing it. Same principle as the rest of this server: bibliographic data comes from a service, not the
model. Mechanical transforms (renaming a key, deleting a field, fixing whitespace) you may do directly.% formatted-by-claude: comment (see the marker
section) unless the user asks to redo them.Run in order. Stop and report if a step fails.
list_projects and ask which.project_sync so you reformat the current sources.compile and record success + the warning list. If it does not compile cleanly
to begin with, stop and tell the user — you won't be able to tell your changes apart from a
pre-existing break, and you can't trust the "no undefined citations" check.list_files for bib and tex; read_file each. Parse the .bib into entries
(type, cite key, all fields) and scan the .tex for every citation command and key (see Renaming
keys for the command list). Skip entries already marked % formatted-by-claude:.url, doi, pages (and isbn/publisher/address/eprint):
strip them, add-where-missing (from a bibliography service), or leave as-is?firstauthorYEARtag (the default below) or take their variant.old → new), the merges (which keys collapse into which), and the per-entry field changes. Show it to
the user and get a clear go-ahead. For a big bibliography, summarize and show a representative sample..bib entries (confirmBibEdit: true), and propagate every key
rename/merge into the .tex in the same pass (see Renaming keys). Re-fetch added field values from
a bibliography service. Do all edits within the one project so the per-project mutex serializes them.compile again. It must succeed with zero Citation … undefined
warnings and the same count of distinct papers cited as the baseline. If anything broke, fix it; if you
can't, ask the user, then discard with paths set to the files this run changed — never a bare
discard, which also throws away edits the user had before the skill ran — and report.% formatted-by-claude: comment to each entry you reformatted (see the marker section).diff (both .bib and .tex). Do not commit/push unless asked.firstauthorYEARtagLowercase ASCII, letters and digits only. Three parts, concatenated with no separators:
é→e,
ü→u), spaces/hyphens/apostrophes removed. For a multi-token surname keep the principal name token
(e.g. van den Oord → oord, Le Cun → lecun).year.Acronym: full title — take the part before the colon (FastNet: … → fastnet).ResNet, BERT).A/An/The). Lowercase,
letters/digits only.Example: Smith et al., 2024, "FastNet: A Fast Approach…" → smith2024fastnet.
Collisions: if two distinct papers reduce to the same key, append a, b, c, … to disambiguate
(smith2020deep, smith2020deepb). Two entries that collide and are the same paper are duplicates —
merge them instead (next section).
Two entries are the same paper when any of these hold (normalize first — strip {}, LaTeX, case,
whitespace):
doi, or@misc/preprint and the other its published @inproceedings/@article of the same
title.To merge: keep the published version over the preprint (confirm with the user when unsure), repoint
every \cite of the dropped key to the kept key, and delete the dropped entry. Note the merge in your
report. When both carry useful fields, prefer the kept entry's values but fill gaps from the other (or
from a bibliography service).
Apply the user's chosen style (short or long) to every booktitle/journal. Treat these as the same
venue in either direction — a record's venue field is the canonical short form; derive the long form from it:
The list isn't exhaustive — for anything not on it, confirm the canonical name against a service rather than
guessing. Don't change which venue an entry claims; only its spelling/style. (If an entry's venue
looks wrong, that's a verify-citations job, not this one — flag it, don't silently "fix" it here.)
url, doi, pages, …)Apply one rule per field across the whole bibliography, per the user's choice in step 5:
url/note/eprint when a venue
forbids them).doi/pages/url
come from the API, not the model). If no service has it, leave it absent and note which entries
couldn't be completed.Keep this surgical: change only the fields the policy covers, plus the cite key. Don't rewrite an entry wholesale unless the user asked you to re-fetch it from a bibliography service.
\citeThis is the dangerous part: a renamed key that isn't updated everywhere becomes an undefined citation.
old → new map (including merges, where several olds map to one new)..tex files: \cite, \citep, \citet,
\citeauthor, \citeyear, \autocite, \parencite, \textcite, \footcite, \Cite…, \nocite,
and friends — including comma-separated lists (\citep{a,b,c}: rename each key independently) and
ignoring the optional [...] arguments. Also update any crossref = {oldkey} inside the .bib..bib entry and all its .tex uses), so the
cite graph is never half-renamed. Watch for accidental substring hits — match whole keys, not
fragments.Citation … undefined warnings, and no orphaned entries.
If the user only wants the .bib touched and not the .tex, then do not rename keys — tell them
renames require editing the draft.% formatted-by-claude markerAfter reformatting an entry, add one comment line immediately above it so a later run skips it:
% formatted-by-claude: key smith2024fastnet on 2026-06-29
@inproceedings{smith2024fastnet,
...
}
% line in a .bib is a comment — BibTeX/biber ignore it, so the marker never affects the output..bib write like any other: edit_file with confirmBibEdit: true.verify-citations' % verified-by-claude: line; an entry can carry both,
and renaming its cite key doesn't invalidate the verified marker (that one records the namespaced
record key, e.g. dblp:conf/cvpr/HeZRS16 or crossref:10.1109/CVPR.2016.90).Report concisely: how many entries were deduplicated (and into which keys), how many keys were renamed
(with the corresponding .tex updates), the venue style and field policy applied, and any entries no
bibliography service could complete. Confirm it still compiles with no undefined citations, and point the user at the diff
for both the .bib and the .tex. Remind them nothing is committed or pushed until they ask.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub elias-ramzi/weblatexmcp --plugin web-latex-mcp9 skills in this plugin
/arxiv-clean-projectPrepare a LaTeX/Overleaf project for arXiv submission with google-research/arxiv-latex-cleaner — strip source comments, delete draft macros (\todo, \note, review environments), and optionally shrink oversized figures to fit arXiv's 50MB limit. Produces either a separate submission-ready copy (the tool's native mode) or applies the cleaning back into the project in place. Use when the user asks to "clean", "arxiv-clean", "prepare for arXiv/submission", "strip comments/todos", or "make a submission copy" of an Overleaf/LaTeX project. Operates on projects served by the web-latex-mcp MCP server. NOT for cosmetic reformatting (that is format-latex-project)./format-latex-projectReformat an existing LaTeX/Overleaf project for clean diffs and modular structure — split the monolithic main file into per-section \input files, move every figure and table into its own \input file, and rewrite paragraphs to one-sentence-per-line. Use when the user asks to "format", "restructure", "modularize", or "clean up" an Overleaf/LaTeX project, to extract figures/tables into separate files, or to apply the one-sentence-per-line convention. Operates on projects served by the web-latex-mcp MCP server./peer-reviewPre-submission peer review of an ML paper for a major conference (NeurIPS, ICML, ICLR, CVPR…) — the toughest competent reviewer's review, while the authors can still fix it. Covers the reading protocol, the claim–evidence map, an ML checklist (baselines, leakage, seeds, ablations, compute, anonymity…), severity/fixability/confidence, evidence anchors, the devil's-advocate and novelty passes, and the triage that merges reviews into one final review in six sections. Use when the user asks to "review my paper", "what would reviewers say about this paper", "stress-test it before submission", or for a referee report — not for code or pull-request review. Read-only on the paper: it writes only its reports, in a `paper-review.local/` folder, and one line adding that folder to the repository's local `.git/info/exclude` (compile output stays outside the project). The novelty pass sends search queries — technical terms, never the title or text — to bibliography services and the web, only with the user's go-ahead.Other plugins' skills for the same job