/papers:library-searchfrom Papers
Searches a local library of academic papers (Markdown from academic-pdf-to-mkd, LaTeX from arxiv-fetcher) using SQLite full-text search. Indexes passages, ranks by BM25, and returns results with file, line range, and section heading.
Ships in Papers. 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; scripts run unread.
Finds passages across a library of papers already on this machine. It indexes *-fulltext.md
files from academic-pdf-to-mkd and *.tex files from arxiv-fetcher under the folders the user
names, splits them into passages of about a paragraph, and ranks passages with SQLite's full-text
index (BM25 with English stemming). It needs only Python 3, and nothing leaves the machine.
python3 "${CLAUDE_SKILL_DIR}/scripts/library_search.py" index ~/papers ~/project/papers
python3 "${CLAUDE_SKILL_DIR}/scripts/library_search.py" search "renormalisation group flow of the coupling"
python3 "${CLAUDE_SKILL_DIR}/scripts/library_search.py" status
python3 "${CLAUDE_SKILL_DIR}/scripts/library_search.py" forget ~/project/papers
index ROOT... adds the folders to the library and indexes them; index with no folder
updates every folder already added. Only new or changed files are read again, so run it before
a search session or after converting or fetching papers.search "QUERY" [-k N] [--json] returns the best passages, at most two per paper, each with its
file, line range and section heading.~/.local/state/library-search/library.sqlite; --db FILE (before the
command) uses another, for example one per project.Always run the script by the ${CLAUDE_SKILL_DIR} path above, written out in full in each
command (not through a shell variable, which the hook cannot see through), and run each command on
its own rather than chaining it with others. The licence hook lets this copy run over folders that
hold refused papers, because the script applies the licence records itself; it refuses the same
command run through a variable or through a copy of the script anywhere else.
The ranking matches words, with stemming (scattering finds scatter), so a query works best in
the vocabulary a paper would use. When a first search misses, try again with the field's terms or
a likely phrase from the paper rather than a description of the idea, and try two or three
wordings before saying the library has nothing on it. A miss means no passage matched those
words in the indexed folders; say which folders were searched.
Each hit gives file:line_start-line_end. Read those lines from the file before quoting or
relying on a passage: the snippet in the search output is cut at 500 characters.
A folder whose license.json refuses its paper (a subscription paper or a manuscript under
review, with no allow recorded) is indexed by its title and identifiers only, and its text is
never read. A search that matches its title returns it with the note "its licence record refuses
its text here: title and identifiers only", and no file or lines. Tell the user the paper is in
their library and that its text is not available here; do not try to read the file another way.
The records are read again at every search. After the user allows a paper with
license-check allow, the next index adds its text; after license-check revoke, its text is
hidden at once and removed from the index file at the next index.
*-fulltext.md and fulltext.md (academic-pdf-to-mkd), after the front matter.*.tex (arxiv-fetcher), between \begin{document} and \end{document}, without comments.figures, tables, pages, media and hidden folders are skipped.What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/academic-pdf-to-mkdExtract academic PDFs into structured Markdown (body text, figures, tables, page thumbnails as separate artefacts) with automatic per-file engine selection (docling / pymupdf4llm / MinerU-math / poppler) and an OCR preflight. Use whenever the user wants to convert or extract a paper, preprint, or scanned PDF into Markdown, especially when figures, tables, or equations must survive. Triggers: 'extract this PDF to markdown', 'convert this paper to markdown', 'get the text and figures out of this PDF', 'OCR this scanned paper', 'this PDF has no text layer', 'copy-paste comes out garbled', 'make this PDF searchable for Zotero', 'split these two-up scanned spreads', or any hand-off needing fulltext.md before review (feeds paper-review). Handles math-heavy (MinerU), short born-digital (fast), and two-column (docling) papers, plus a Zotero branch producing a searchable OCR PDF from a scan. For arXiv papers prefer arxiv-fetcher (native .tex is cleaner). Prefer this over the generic pdf skill for research papers./arxiv-fetcherFetch LaTeX source and PDF from arXiv papers. Use this skill whenever the user mentions an arXiv paper, arXiv ID, arXiv URL, or asks to download/fetch/pull/get a paper from arXiv. Also triggers when the user wants to read, review, or analyse an arXiv paper and you need to retrieve it first. Handles all arXiv ID formats (2301.12345, 2301.12345v2, hep-th/0601234, arxiv.org URLs). Downloads source .tex files and PDF. Works as a standalone tool or as a prerequisite for the paper-review skill./claim-fact-checkerFan-out fact-checking workflow that checks the claims its extractor lists in a deliverable against archived sources, with one isolated verifier subagent per claim plus a source-quality skeptic, and writes a findings + fix-plan pair. Use this whenever the user wants to fact-check, claims-audit, source-check, or verify a document or an academic paper review against its sources before committing or publishing. Trigger on phrases like "fact-check this report", "verify the claims", "audit the sources", "check this review against the paper", or when finishing a report or paper review that has a folder of sources. Built on Claude Code dynamic workflows, so it stays accurate on long deliverables where a single context window tends to degrade./paper-provenanceKeep a record tying each number and fact in a paper to the calculation, file or citation behind it, and check the manuscript against that record. Use whenever writing or editing results, tables, abstracts or any paper text that states numbers or facts, and before a paper is shared or submitted. Triggers include: 'where did this number come from', 'check the numbers in the paper', 'trace every number', 'is every figure sourced', 'provenance', 'are the numbers in the draft right', 'prepare for submission'. Works on .tex and .md manuscripts. Boundaries: whether a cited source supports a claim is claim-fact-checker; whether a reference exists is reference-verifier./paper-reviewMulti-agent academic paper review system. Use this skill whenever the user asks to review, critique, improve, or get feedback on an academic paper, manuscript, preprint, or draft. Triggers include: 'review my paper', 'critique this manuscript', 'find weaknesses in my paper', 'help me improve this draft', 'simulate peer review', 'what would reviewers say', 'prepare for submission', any mention of reviewing a .tex or .pdf paper, or requests to check a paper's theory, experiments, writing quality, or positioning before submission. Also triggers when the user wants to iteratively refine a paper through multiple review rounds. Works with LaTeX source (.tex files) or PDF. Supports venue-specific review rubrics (NeurIPS, ICML, ICLR, COLT, AAAI, JMLR, Nature, Science, PNAS, etc.)./reference-verifierVerify the references/bibliography of an academic paper. Use this skill whenever the user wants to check, verify, validate, audit, or sanity-check the references, citations, or bibliography of a paper, manuscript, or preprint. Triggers include: 'verify references', 'check the bibliography', 'are these citations real', 'find hallucinated citations', 'check for fake references', 'validate the bib file', 'audit citations', 'check DOIs', 'are the references correct', any mention of LLM-fabricated or AI-hallucinated citations, or requests to confirm that cited works actually exist before submission. Works with .tex and .bib source, and with PDF and Word manuscripts, whose reference list Claude transcribes into a .bib first. Performs existence checks, metadata cross-validation, DOI resolution, and duplicate/orphan detection; it does NOT verify whether the cited paper actually supports the claim.npx claudepluginhub shocklab/co-scientist-toolkit --plugin papersOther plugins' skills for the same job