citation-verifier
Skill1 starsChanged 2 months agoMITView on GitHub
Verify citations and references in scientific documents to detect hallucinated, invalid, or mismatched sources. Extracts DOIs, arXiv IDs, PubMed IDs, ISBNs, and URLs from Word (.docx), BibTeX (.bib), Markdown (.md), LaTeX (.tex), and plain text, then validates them using CrossRef, arXiv, PubMed, and Open Library APIs. Detects AI hallucinations where real identifiers are paired with fabricated paper titles.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Boom5426/Nature-Paper-Skillstheir own version, first seen Oct 2, 2026
- Nero1688/claude-academic-skillstheir own version, first seen Sep 20, 2026
- KhaledSaeed18/dotclaudetheir own version, first seen Jul 4, 2026
- Chanw-research/claude-code-paper-writingtheir own version, first seen May 10, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Boom5426/Nature-Paper-Skills★ 546same name
- Chanw-research/claude-code-paper-writing★ 42same name
- Nero1688/claude-academic-skills★ 8same name
- KhaledSaeed18/dotclaude★ 5same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- docxSkill
- pptxSkill
- research-reviewerSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Run the verification script against any manuscript or bibliography file:
- Distinctive: line 70
When verifying DOIs or arXiv papers with title metadata (e.g.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Citation & Reference Verifier
Detects and flags hallucinated, broken, or mismatched references in academic manuscripts and office documents.
Purpose
Large Language Models frequently invent convincing but nonexistent citations or pair real DOIs with fabricated paper titles. This skill scans documents, queries authoritative registries (CrossRef, arXiv, PubMed, Open Library), and produces structured audit reports.
When to Use
- Verifying reference lists in research papers, theses, or technical reports.
- Checking Word documents (
.docx) containing native Zotero field codes (ADDIN ZOTERO_ITEM CSL_CITATION). - Validating BibTeX libraries (
.bib) before submitting papers to journals. - Auditing Markdown (
.md), LaTeX (.tex), or text drafts for broken URLs and hallucinated DOIs. - Running automated CI/CD citation checks on manuscripts.
Supported Identifiers and Registries
| Identifier | Verification Source | Detection Pattern | Notes |
| DOI | CrossRef REST API | 10.xxxx/... or doi.org/... | Checks registry existence and performs fuzzy title comparison. |
| arXiv ID | arXiv API | arXiv:YYMM.NNNNN or arxiv.org/abs/... | Checks official arXiv feed and resolves preprint titles. |
| PubMed PMID | NCBI E-utilities | PMID: NNNNNNN | Queries PubMed for biomedical literature. |
| ISBN | Open Library API | ISBN: 978-... | Validates books and monographs. |
| Publisher URLs | HTTP GET/HEAD | Nature, IEEE, Springer, ScienceDirect, etc. | Verifies live HTTP 200/300 status codes. |
Command Line Usage
Run the verification script against any manuscript or bibliography file:
# 1. Standard terminal check (compatible with Windows cp1252)
python scripts/verify_citations.py manuscript.docx
# 2. Generate a clean Markdown audit report for peer review
python scripts/verify_citations.py draft.md --format markdown --output audit_report.md
# 3. Export machine-readable JSON for CI/CD pipelines
python scripts/verify_citations.py library.bib --format json --output audit.json
# 4. Strict mode: exit code 1 on any failure or title mismatch
python scripts/verify_citations.py paper.tex --strictOptions
--format {text,markdown,json}: Report format (default:text).-o, --output PATH: Write report to file instead of stdout.--email EMAIL: Contact email for the CrossRef polite API pool.--strict: Return exit code 1 if any citation is missing or has a mismatched title.--no-cache: Force live API requests bypassing.citation_cache.json.--timeout SECONDS: Network timeout per request (default: 10).
Anti-Hallucination Logic
When verifying DOIs or arXiv papers with title metadata (e.g. from Zotero field codes or BibTeX entries), the verifier compares the local title against the authoritative title in CrossRef:
[PASS]: Identifier exists and the paper title matches (similarity $\ge 0.65$).[WARN] METADATA_MISMATCH: Identifier exists, but the registry title differs significantly. This catches AI models that attach real DOIs to fake papers.[FAIL] NOT_FOUND: Identifier does not exist in the official registry.[ERR ] LOOKUP_ERROR: Temporary network failure or service downtime (never falsely marked as hallucinated).
Credits
- Concept and regex patterns based on
jkitchin/skillzby John Kitchin.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

