/open-academic-paper-machine:verification-enginefrom open-academic-paper-machine
Verifies citations by fetching source abstracts and full text, comparing each claim against actual content to detect hallucination or misattribution.
Ships in open-academic-paper-machine. 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.
Orchestration Log: When this skill is activated, append a log entry to
outputs/orchestration_log.md:### Skill Activation: Verification Engine **Timestamp:** [current date/time] **Actor:** AI Agent (verification-engine) **Input:** [brief description of the verification request] **Output:** [brief description of results — e.g., "Verified 42 citations: 35 VERIFIED, 5 PLAUSIBLE, 2 MISMATCH"]
A citation is only as good as its accuracy. This engine systematically checks whether the papers you cite actually say what you claim they say. It fetches real source material — abstracts at minimum, full text when available — and compares each attribution claim against the actual content.
This addresses the dominant failure mode of LLM-generated academic writing: citation hallucination and misattribution. Even when citations point to real papers (no fabricated DOIs), the attributed claims may not match what the source actually says.
paper.tex)Scan the .tex file for all citation commands and extract the surrounding context:
\citep{key} → parenthetical: "... as shown previously (Author, Year)."
\citet{key} → textual: "Author (Year) demonstrated that ..."
\citeauthor{key} → author name reference
\citeyear{key} → year reference
For each citation occurrence, extract:
draft.md)Same logic, but scan for (Author, Year) and Author (Year) patterns instead of
LaTeX citation commands.
Multiple citations of the same paper should be grouped. One paper may be cited 5 times with 5 different claims — each claim needs independent verification.
Output: A list of {key, claim, section, claim_type, priority} tuples.
For each citation key, look up the entry in references.bib:
title, author, year, doi, journal, noteOutput: Enriched list with DOI and metadata for each citation.
For each unique referenced paper (not each citation — deduplicate by BibTeX key):
This is the baseline. Fast, reliable, works for any paper with a DOI or indexed title.
Strategy (try in order, stop at first success):
academic_search_semantic_scholar MCP tool):
max_results: 3 (to find best match)academic_search_openalex MCP tool):
academic_search_crossref MCP tool):
What you get: Title confirmation, abstract (50-300 words), TLDR (1-2 sentences), citation count, open access status, and PDF URL if available.
For open-access papers, go beyond the abstract:
openAccessPdf.url fieldopen_access.oa_url field10.48550/arxiv. or BibTeX key suggests arXiv,
construct the PDF URL: https://arxiv.org/pdf/{arxiv_id}WebFetch with the PDF URL to get content, OR/tmp/verify_papers/{bib_key}.pdf and use the Read tool
(supports PDFs up to 100 pages)When to use Tier B:
For large-scale verification (100+ papers) or complex documents with tables/figures:
llamacloud-mcp server to plugin.json for high-fidelity
PDF parsing with table extraction and semantic chunkingsemtools for parse and search commands over local
PDF collectionsNot implemented in v5.1.0 — documented here as the upgrade path.
For each {claim, source_content} pair, perform the comparison:
| Status | Criteria | Evidence Required |
|---|---|---|
| VERIFIED | Claim directly supported by source | Quote or close paraphrase found in abstract/text |
| PLAUSIBLE | Abstract consistent, claim reasonable | Topic match, no contradiction, but specific claim not explicit |
| MISMATCH | Claim contradicts or misrepresents source | Source says something different from what's attributed |
| UNVERIFIABLE | Couldn't access source content | No abstract found, paywalled, API returned nothing |
| NOT FOUND | Paper doesn't appear to exist | DOI doesn't resolve, title search returns nothing |
For each citation claim:
Read the claim carefully. What exactly is being attributed to this source?
Read the source material. What does the paper actually say?
Compare. Does the claim match the source?
Record evidence. For each classification, note:
Process citations in order of priority tier (see Prioritization Strategy below).
After completing each tier, save intermediate results to verification_report.md
so the user can act on critical findings immediately.
Save to verification_report.md with this structure:
# Citation Verification Report
**Paper:** [paper title]
**Date:** [YYYY-MM-DD]
**Total unique sources:** [N]
**Total citation instances:** [N]
## Summary
| Status | Count | % |
|--------|-------|---|
| VERIFIED | [n] | [%] |
| PLAUSIBLE | [n] | [%] |
| MISMATCH | [n] | [%] |
| UNVERIFIABLE | [n] | [%] |
| NOT FOUND | [n] | [%] |
**Source material depth:**
- Full text retrieved: [n] papers (Tier B)
- Abstract only: [n] papers (Tier A)
- No content: [n] papers
## Priority Issues
### MISMATCH — Requires Immediate Attention
#### 1. [bib_key] — [Author (Year)]
- **Section:** [where cited]
- **Claim:** "[exact sentence from paper]"
- **Source says:** "[relevant quote from abstract/text]"
- **Issue:** [what's wrong — wrong number, reversed finding, etc.]
- **Recommendation:** [how to fix]
[repeat for each mismatch]
### NOT FOUND — BibTeX Entry May Be Wrong
#### 1. [bib_key] — [Author (Year)]
- **DOI:** [doi or "none"]
- **Title searched:** "[title]"
- **Result:** [what happened — DOI doesn't resolve, no results, etc.]
- **Recommendation:** [verify manually, check DOI, etc.]
## Detailed Findings
### Section: [Section Name]
| # | Source | Claim Type | Status | Note |
|---|--------|-----------|--------|------|
| 1 | Author (Year) | Specific finding | VERIFIED | Abstract confirms |
| 2 | Author2 (Year) | General attribution | PLAUSIBLE | Topic match |
| 3 | Author3 (Year) | Specific statistic | MISMATCH | See Priority Issues |
[repeat for each section]
## Manual Review Queue
Papers that require human verification (paywalled, no abstract):
| # | Source | DOI | Why Unverifiable | Claim to Check |
|---|--------|-----|-----------------|----------------|
| 1 | Author (Year) | 10.xxx | Paywalled | "[claim]" |
## BibTeX Corrections Applied
- [bib_key]: [what was corrected — DOI added, author name fixed, etc.]
## Methodology Note
This verification used [Tier A / Tier A+B] retrieval:
- Abstracts fetched via Semantic Scholar, OpenAlex, CrossRef APIs
- Full text retrieved for [n] open-access papers
- Claims compared against source content by Claude [model version]
- Limitations: Abstract-level verification catches ~80-90% of misattributions
but cannot verify claims that only appear in the body of paywalled papers
These citations carry the paper's core arguments. A mismatch here is a structural problem.
Typical count: 10-20 citations. Target: Verify within first pass.
These ground the paper's approach. Mismatches here undermine credibility.
Typical count: 8-15 citations.
Lower risk but still worth checking for a polished paper.
Typical count: remaining 20-30 citations.
After each tier, present:
VERIFICATION PROGRESS
Tier 1 (Load-bearing): [15/15] Complete
VERIFIED: 11 | PLAUSIBLE: 2 | MISMATCH: 1 | UNVERIFIABLE: 1
>> 1 mismatch found — see verification_report.md
Tier 2 (Method/Theory): [0/12] Queued
Tier 3 (Background): [0/28] Queued
Continue to Tier 2? [proceeding unless you redirect]
LlamaParse Integration (Tier C retrieval):
Add to plugin.json under mcpServers:
"llamaparse": {
"command": "npx",
"args": ["-y", "@llamaindex/llamacloud-mcp"],
"env": { "LLAMA_CLOUD_API_KEY": "${LLAMA_CLOUD_API_KEY}" }
}
This enables high-fidelity PDF parsing with table extraction for complex papers.
SemTools CLI Integration:
pip install semtools
sem parse /tmp/verify_papers/*.pdf --output /tmp/verify_cache/
sem search "citation hallucination rate" /tmp/verify_cache/
Enables CLI-level parse and search over local PDF collections.
Automated Re-Verification: After fixing mismatches and recompiling, re-run verification on changed citations only (diff-based verification).
What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/audit-engineActivate when the user wants to audit a paper's empirical or technical claims against a linked code repository — checking whether experiments, datasets, models, metrics, and hyperparameters described in the paper actually exist and match the code. Produces a structured audit report classifying each claim as CONFIRMED, PARTIAL, MISSING, or MISMATCH, with file/line evidence. Useful for reproducibility checks, reviewer due diligence, and pre-submission self-audits of ML/CS/empirical papers that ship code.
/coauthor-engineActivate when the user needs to manage multi-author collaboration on a paper. Tracks author contributions using the CRediT taxonomy, manages responsibility assignments, documents the human-AI division of labor, and produces an author contribution statement ready for submission.
/figure-engineActivate when the user needs to generate, refine, or evaluate academic figures, diagrams, or statistical plots. Uses PaperBanana to transform text descriptions or data files into publication-quality illustrations via direct Python API call. Fallback: matplotlib/seaborn.
/idea-engineActivate when the user needs to evaluate whether a research idea is worth pursuing, brainstorm new research directions, or stress-test a paper concept before committing. This is Phase 0 of the paper machine — the gate that decides whether the full 8-phase pipeline should run. Also activates standalone via /evaluate-idea.
Integrates Carlini's research philosophy (conclusion-first test, taste for problems, kill conditions, unreasonable effort) with structured evaluation (7 dimensions, RS1-RS8 principles, 3 specialist agents).
/latex-engineActivate when the user wants to export a completed paper draft to production-ready LaTeX (.tex) and PDF. Converts draft.md + references.bib + figures/ into a complete arxiv-style LaTeX project with properly resolved \citep/\citet citations, booktabs tables, figure environments, and compiled PDF output.
/literature-engineALWAYS activate when the user needs to find, organize, review, or synthesize academic literature. Uses academic APIs (Semantic Scholar, OpenAlex, CrossRef, arXiv) via scripts/academic_search.py. Handles search strategy, snowballing, screening, concept matrices, narrative synthesis, and literature monitoring (detecting new publications since last search). NEVER use web scraping for paper discovery — APIs first, web search only for verification.
npx claudepluginhub tobiasblask/open-paper-machine --plugin open-academic-paper-machineOther plugins' skills for the same job