/sci-brain:review-paperfrom sci-brain
Reviews, comments on, and fact-checks existing scientific manuscripts. Produces location-anchored comments, applies user-approved edits, and verifies compilation.
Ships in sci-brain. 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.
Keep the working directory at the user's project. Resolve this loaded SKILL.md
with Path(path).resolve() before locating resources; follow symlinks. Bare
helpers/, references/, and template paths are relative to that real skill
directory. A path written as skills/<name>/... means the installed <name>
skill's directory from the agent's skill catalog, not a path in the user's project.
Locate each dependency by its public skill name; copied skills need not be siblings.
If a dependency is absent, report the missing skill and install it before that step.
Shared writing files are bundled in how-to-write-ideas-report/references/.
Before running the examples, set DOWNLOAD_REF_DIR to the absolute directory of how-to-download-ref. Quote these variables as shown.
Run a structured review-and-enhance pass over an existing scientific manuscript. The skill reads the whole paper, produces location-anchored comments first, then applies only the edits the user approves and re-checks that the manuscript still compiles.
Scope note. This is the reviewing/revising counterpart to write-paper (which drafts a manuscript figures-first). It is not survey report mode, which writes technology/field-assessment reports from a literature survey. Use review-paper when a manuscript already exists and the user wants comments, a referee-style critique, reference/fact verification, or guideline-driven polish. If no manuscript exists yet, redirect to write-paper.
Guidelines 1–8 below come from a manuscript-quality rubric, and guideline 9 checks the manuscript against its target journal's own rules; the writing checklist lives in skills/how-to-technical-writing/checklist.md and the review-process checklist in skills/review-paper/checklist.md. Sentence- and paragraph-level rules live in the how-to-technical-writing skill (skills/how-to-technical-writing/SKILL.md); notation and figure discipline live in write-paper/SKILL.md. This skill references both rather than restating them. Consult skills/write-paper/references.md for the why behind a rule.
Use skills/how-to-write-ideas-report/references/writing-workflow.md for KB/context loading, citation handling, the BibTeX lookup chain, and output mechanics.
Comment-first, non-destructive. Never edit the manuscript before the user has seen and approved the findings. Read the whole paper, deliver the comments, let the user choose what to apply, then edit. This mirrors write-paper's "iterate the story with the user" philosophy: the author keeps control of judgment calls.
| # | Guideline | Phase | Source |
|---|---|---|---|
| 1 | Break long sentences; one concept per sentence | 1 | how-to-technical-writing |
| 2 | Define every concept/symbol before use | 1 | write-paper Notation Rulebook |
| 3 | Each paragraph has one well-defined job | 1 | how-to-technical-writing |
| 4 | DRY — avoid repeated explanations/definitions | 1 | new to this skill |
| 5 | Display math reserved for emphasis only | 1 | write-paper Notation Rulebook |
| 6 | Read the whole paper first; brief the story, judge it at the high level, then each section's mission | 0 | new — the gate before critique |
| 7 | Every figure referenced ≥1× and its striking features discussed | 1 | write-paper Figure Rulebook |
| 8 | Verify factual claims & references; flag the uncertain | 2 | new — the standout capability |
| 9 | Fit the target journal: limits, required parts, and its writing guidance | 2.5 | new — venue discussion reused from write-paper Phase 1.5 |
Rank every finding so the user can triage:
Resolve the manuscript. Accept an explicit path; else auto-detect from articles/<slug>/ or the working directory. Detect format from the extension: LaTeX (.tex) is primary; Typst (.typ) and Markdown (.md) are supported.
Ask what to check, before reading in depth. Offer these numbered options; the user may pick any subset:
Default on a first review: all four. If a previous articles/<slug>/review-*.md exists, say so and propose the repeat-pass default: option 2 only, restricted to text changed since that report, plus option 3 only if the bibliography changed, and option 4 only if the target journal changed or the previous report did not run it. A pass the user did not select is not run, and the report says it was skipped.
Read the whole manuscript end to end — and its bibliography. Resolve the bibliography in this order: the manuscript's own \bibliography{…} / \addbibresource{…} target (or embedded thebibliography / Typst bibliography(…)), then fall back to $KB/references.bib. Handle both; note which one you used.
Load shared context. Follow skills/how-to-write-ideas-report/references/writing-workflow.md: resolve KB=$(python3 "$DOWNLOAD_REF_DIR/helpers/resolve_kb.py"), read $KB/INDEX.md, $KB/NOTES.md, $KB/references.bib, and docs/discussion/user-profile.md if present. This is the literature backdrop for fact-checking.
Write the story brief (always, whatever was selected; it is the gate). Four short parts, in the paper's own terms:
Then a one-line "mission" for each section. This gate prevents local nitpicks that fight the global narrative: if you misread the story, fix that before producing any finding.
Comment on the high-level aspects (option 1). Severity-ranked, same finding shape as Phase 1, guideline 6:
survey pass on the problem before the review continues; do not fill the gap from general knowledge.Do not proceed to Phase 1 until the user confirms (or corrects) the story brief. The high-level comments are delivered with the brief; the user may reject any of them before they enter the report.
Run only when option 2 was selected in Phase 0. Walk the manuscript and produce findings. Each finding has this shape:
{ guideline: 1–8,
location: section + line/anchor (and the offending snippet),
severity: high | med | low,
problem: what's wrong, in one sentence,
fix: a concrete suggested edit }
Calibrate every fix against the model paper: Ho et al., PRL 122, 040603 (2019), at skills/write-paper/sources/1807.01815_Ho2019_quantum-scars.md, with a move-by-move walkthrough in skills/write-paper/references.md §C. A good rewrite reads like that letter: one concept per sentence, symbols defined at first use, each section opening with its job, main results named as such. When unsure whether a sentence deserves a finding, ask whether it could appear in the model paper unchanged.
Checks:
skills/how-to-technical-writing/SKILL.md: content-free openers and meta-talk, "obviously" / "clearly" where the earlier context should be named, Latinate connectives, metaphors the paper does not draw, intensifiers and stacked asides, and runs of inline computation that belong in one display. (Style guide.)write-paper Notation Rulebook.)write-paper Notation Rulebook.)write-paper Figure Rulebook.)Also run a per-section "did this section deliver its Phase-0 mission?" check (guideline #6 carried into the body), and check that each key result from the story brief is named as a main result where it appears.
Every finding names the rule it serves. Not every paragraph needs a finding: a passage that already passes stays untouched, and a rewrite is never proposed for the sake of a diff.
Run only when option 3 was selected in Phase 0. The standout capability. Follow the repo discipline: never invent BibTeX from memory. Bibliography metadata gets a complete automated screening pass; claim verification stays focused on what supports the main claims (see skills/how-to-write-ideas-report/references/writing-workflow.md).
python3 "$DOWNLOAD_REF_DIR/helpers/verify_bib.py" --bib "$BIB" --kb "$KB" --json against the bibliography resolved in Phase 0. This checks uncited entries too and compares title, authors, year, venue/journal, volume, pages, and DOI using cached metadata plus Semantic Scholar's batch API.unverifiable entry, or any mismatch with a high- or medium-severity finding, confirm it manually through CrossRef → Semantic Scholar → MCP → web fetch; Semantic Scholar screens, it is not the final authority. Keep low-severity missing-field findings as metadata-completion suggestions — they do not need the full lookup chain. Flag broken, missing, or confirmed-mismatched entries and offer repair via the how-to-download-ref skill (it owns references.bib appends and metadata fetching).\cite key, confirm that an entry exists in the resolved bibliography. Uncited entries remain in the metadata scan; cited keys additionally participate in the claim-support check below.\url, \href, DOI links, code and data repositories) is fetched once; flag dead links, redirects to a different resource, and DOIs that do not resolve. A private or paywalled target that answers is ok.Run only when option 4 was selected in Phase 0. Never quote a limit or rule from memory: every constraint in this pass comes from a page fetched in this session or from a template/README.md that records its source.
revtex4-2, iopart, elsarticle, an sn-jnl class), journal macros, a cover letter, or a template/README.md written by write-paper Phase 1.5. If none, follow write-paper Phase 1.5: propose 2–3 venues with tradeoffs (article type, audience, length pressure, figure limits, novelty bar) grounded in the story brief, and ask the user to pick one or say "no target yet". With no target, skip the rest of this pass and record that choice in the report.template/README.md when it already records the URL and access date; otherwise record both in the report. If the page cannot be fetched, mark every constraint unverifiable, give the URL, and stop.detex, pandoc --to plain, or typst query), figure, table, and reference counts from the source, section presence from the headings. Status per row: ok / over / missing / unverifiable. Severity: high for a hard limit exceeded or a required statement missing, med for a formatting rule, low for cosmetic.Write a timestamped report to articles/<slug>/review-YYYY-MM-DD.md (the repo's dated-output convention). Structure:
Then present a short summary to the user and ask two things: which findings to apply (all / by severity / individually), and whether to show a marked diff first or apply directly. Default to the marked diff; it costs one compile and lets the author judge each rewrite in context.
Marked-diff mode (the default). Never touch the original until the user has seen every proposed change in context.
cp main.tex main.proposed.tex (same for .typ / .md). Apply every approved fix to the copy with a script that asserts each target passage matches exactly once. Comment-only fixes (style-guide guardrails) go in as [reviewer] comments in the copy too.latexdiff main.tex main.proposed.tex > main.diff.tex, then compile main.diff.tex (deletions red struck-through, additions blue underlined). Typst and Markdown have no latexdiff; write git diff --no-index --word-diff main.typ main.proposed.typ into articles/<slug>/review-YYYY-MM-DD.diff and, for Typst, also compile the proposed copy so the author can read the result. Check the page count did not change unexpectedly.main.proposed.* and main.diff.* afterwards.Direct mode (only when the user chose it). Apply the approved findings straight to the manuscript. Do not edit anything the user didn't approve.
Both modes.
% [reviewer] … margin comment instead of rewriting silently (// [reviewer] in Typst, an HTML comment in Markdown).[reviewer] comment even when the user approved the finding. The author writes those words.latexmk (or pdflatex) for .tex, typst compile for .typ; for .md, confirm it still renders. Report pass/fail with the actual command output (per verification-before-completion: evidence before assertions). If it breaks, fix or revert the offending edit before claiming done.Reused (no duplication): skills/how-to-write-ideas-report/references/writing-workflow.md (context, citations, output mechanics); skills/how-to-technical-writing/SKILL.md (sentence/paragraph rules, hunt table, application guardrails); the BibTeX lookup chain (CrossRef → Semantic Scholar → MCP → web fetch); how-to-download-ref for reference repair; write-paper's notation/figure rule definitions (referenced).
New here: the read-whole-first review protocol (Phase 0), DRY/anti-repetition detection (#4), fact & reference verification (#8), journal fit (#9, venue discussion reused from write-paper Phase 1.5), and the comment-then-apply loop plus compile-check (Phases 3–4).
| Mistake | Instead |
|---|---|
| Editing before the user approves | Comment-first. Phase 3 → user picks → Phase 4. |
| Merging a rewrite the author has not seen in context | Marked-diff mode by default: latexdiff on a copy, numbered legend, merge only the accepted numbers. |
| Nitpicking sentences before confirming the story | Phase 0 gate: confirm the story brief first. |
| Re-running reference verification on every pass | Ask what to check first, with the three numbered options; on a repeat pass default to writing only unless the bibliography changed. |
| Inventing a BibTeX entry to "fix" a citation | Never. Use the lookup chain / the how-to-download-ref skill, or flag as unverifiable. |
| Silently "correcting" a factual claim | Flag uncertain claims; the author decides. |
| Claiming done without compiling | Run latexmk / typst compile and paste the result. |
| Chasing completeness on fact-checks | Verify only what supports the main claims. |
| Quoting a journal's word limit or required sections from memory | Fetch the official author guidelines this session, or mark the row unverifiable with the URL. |
| Rewriting a passage that already passes | Leave it. A finding must name the rule it serves. |
| "Simplifying" a technical term | Keep the field's term; simplify only connectives, idioms, and asides. |
| A reworded sentence changed a count, qualifier, or claim | Language edits change how, never what. Recheck numbers after every rewrite. |
| Writing the reason behind a "clearly" from general knowledge | If the supporting equation, figure, or section is not in the manuscript, ask the author in a [reviewer] comment. |
| Applying DRY or locality to the abstract, introduction, or conclusions | Those sections restate and connect by design; check them only for the four introduction beats and the implications paragraph. |
skills/how-to-write-ideas-report/references/writing-workflow.md.skills/how-to-technical-writing/SKILL.md; checkable form in skills/how-to-technical-writing/checklist.md.skills/write-paper/SKILL.md + skills/write-paper/references.md.skills/write-paper/sources/1807.01815_Ho2019_quantum-scars.md, distilled in skills/write-paper/references.md §C.write-paper Phase 1.5 (skills/write-paper/SKILL.md).how-to-download-ref skill.skills/review-paper/checklist.md.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/autoresearchUser trigger. Use when starting, resuming, or checking an autoresearch campaign — topics, evidence base, sealed validator, then validator-scored attempt loops./brainstorm-ideasUser trigger. Use when brainstorming research ideas with a Socratic collaborator who learns your background and helps find a problem worth attacking./create-advisorUser trigger. Use when creating or updating a named advisor profile from a researcher's conversation history./dump-chat-historyUser trigger. Use when exporting original conversations from selected harnesses and dates as a faithful transcript or a topic-titled Typst and PDF field note.npx claudepluginhub quantumbfs/sci-brain --plugin sci-brainOther plugins' skills for the same job