/web-latex-mcp:format-latex-projectfrom WebLatexMCP
Restructures LaTeX/Overleaf projects for clean diffs: splits monolithic files into per-section inputs, extracts figures/tables into separate files, and rewrites paragraphs one sentence per line.
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.
Three cosmetic-only transformations on a git-hosted LaTeX project, applied through the
web-latex-mcp MCP tools. None of them may change the compiled PDF. The compile step is
the guardrail — if the project compiled before and not after, you broke it.
sections/, leaving the main file as mostly a list of \input{...}.figure/table environment into its own file under
figures/ or tables/, leaving a one-line \input{...} where the float was.git diffs stay small and edits stay surgical.Run these in order. Stop and report if any step fails.
list_projects and ask which.project_sync the project, then compile it. Record success and
the log. If it does not compile cleanly to begin with, stop and tell the user — do
not reformat a broken project (you won't be able to tell your changes apart from the
pre-existing breakage)..tex with \documentclass. list_files, then
read_file it.compile again. It must still succeed. Compare the log to the baseline —
page count / overfull-box warnings should be essentially unchanged. If compilation
breaks, 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.diff. Do not commit/push unless they ask — per
CLAUDE.md, mutating the remote happens only on explicit request.Do all edits inside one project so the per-project mutex serializes them; prefer
edit_file for surgical changes and write_file when rewriting a whole file.
\input files\section (and standalone front/back matter like the
abstract) under sections/, named after the section: sections/introduction.tex,
sections/related-work.tex, sections/method.tex, etc. (kebab-case, ASCII).\section{...} line.
Do not add \documentclass, preamble, or \begin{document} to section files.\input{sections/introduction} (no
.tex extension). Keep the relative order identical.\begin{document} (documentclass,
\usepackage, macros, title/author) stays in the main file. Only body sections move.\bibliography, \maketitle, \appendix, or similar one-line structural
commands into section files; they stay in main between the \inputs.\input line. (Extracting floats and reflowing to one-sentence-per-line are the
other rules; you may do all three, but keep the intents clear in the diff if the user
wants separate commits.)Every float lives in its own .tex file and is pulled in with \input. A section file
should read as prose plus one-line \inputs, never as pages of tabular markup.
figures/<name>.tex for each \begin{figure}/figure* block and
tables/<name>.tex for each \begin{table}/table* block.\label{fig:overview} →
figures/overview.tex; \label{tab:sota_results} → tables/sota-results.tex
(kebab-case, ASCII). If a float has no label, add one following the project's convention
(fig:/tab: + descriptive name) and name the file after it — a float worth extracting
is a float worth referencing.\begin{figure} to \end{figure},
including its \caption and \label. Nothing else — no \section, no surrounding prose.\input{figures/overview} (no .tex
extension), on its own line, in exactly the same position. Float placement is
positional in LaTeX: moving the \input up or down moves the float in the PDF.[t]) and all. This rule is a cut/paste;
restyling captions or switching to booktabs is a separate, non-cosmetic change — do it
only if the user asks.subfigure inside a figure) stay together in the parent's file: one
file per top-level float, not per image..pdf/.png under figures/) don't move. Keep
\includegraphics paths byte-identical — they resolve from the main file's directory,
not from the \inputed file's, so a working path stays working.figures//tables/ file first and \input it — never paste a
new float body inline into a section file.Reflow body prose so each sentence begins on a new source line. This changes only newline placement in plain text — it must not alter a single non-whitespace token.
Break only between sentences in ordinary paragraph text. A sentence ends at ., ?,
or ! followed by a space and a capital/\/$. After the boundary, start a new line
(no blank line — a blank line starts a new paragraph in LaTeX and would change output).
Never break inside, and never reflow:
$...$, \(...\), and display \[...\], equation, align, etc.\begin{env}...\end{env} block (tables, figures, itemize, lstlisting, verbatim).
Leave its internal formatting alone; only reflow the prose paragraphs around it.%) and the rest of a line after an inline %.\begin{document}).Abbreviations are not sentence ends. Do not break after e.g., i.e., et al.,
cf., vs., Fig., Eq., Sec., Dr., Mr., a lone initial like A., or a period
inside \autoref{}/numbers like 3.14. When unsure whether a period ends a sentence,
leave the line unbroken — a missed break is harmless; a wrong one can hurt readability
or, near a command, change spacing.
Keep existing blank lines between paragraphs. Trim trailing whitespace on the lines you touch.
Report concisely: which files were created (sections, figures, tables), that it still compiles, and the page count before/after. Flag anything you had to add rather than move — notably labels invented for unlabelled floats. Point the user at the diff and ask whether to commit and push.
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-bibliographyNormalize and reformat a project's .bib bibliography — find and merge duplicate entries, rename cite keys to a consistent firstauthorYEARtag scheme (e.g. smith2024fastnet), harmonize venue names (CVPR ↔ "Computer Vision and Pattern Recognition"), and apply one consistent field policy (strip or add url/doi/pages, etc.). Use when the user asks to "format", "reformat", "normalize", "tidy", "clean up", "harmonize", or "deduplicate" the bibliography / .bib / bibtex / citation keys. This skill EDITS the .bib (and the \cite keys in the .tex): it is permission-gated and uses compile as a guardrail. 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./proofread-documentHunt typos and language errors in a LaTeX/markdown document — spelling, doubled or missing words, subject/verb agreement, punctuation, quotes, unescaped LaTeX characters, and inconsistent hyphenation or capitalization of repeated terms. Reports each finding with its line and an exact minimal replacement, and applies fixes only when asked. Use when the user asks to "proofread", "check for typos", "find spelling/grammar mistakes", or "correct the text" of a paper or draft. Never rewrites prose for style and never touches a .bib. Operates on projects served by the web-latex-mcp MCP server./review-writing-guideReview a paper against the LaTeX writing guide and report where it diverges — tense, first-person overuse, section signposting, caption and float conventions, equation punctuation and notation, citation placement (never in the abstract, cite on first mention, re-anchor per section, no re-citing within one), acronym definition, en/em dashes and English usage, \autoref and quote marks. Produces a prioritized report with a concrete suggested rewrite per finding. Use when the user asks to "review the writing", "check the style", "does this follow the writing guide", "critique the prose", or "what should I fix before submitting". Read-only — it never edits, commits, or pushes. Operates on projects served by the web-latex-mcp MCP server./session-feedbackClose a working session by turning what actually happened into a feedback report for WebLatexMCP itself — what broke, what was clumsy, what is missing, what the docs did not say — ranked by impact and emitted as ready-to-file GitHub issue bodies that match the repo's issue forms field for field, stamped with a measured environment (server version, OS, client, model, install method, toolchain) and scrubbed of anything private. Use at the end of a session, or when the user asks to "give feedback", "write a retrospective", "what should I report", "how did this session go", or "file an issue about the MCP server". Reports on the *server and its skills*, never on the paper: it changes no file of the paper, commits nothing, and pushes nothing (a report the user asks to keep inside a clone is git-excluded through that clone's local .git/info/exclude).Other plugins' skills for the same job