citecheck
Skill63 starsChanged 6 months agoMITView on GitHub
Use when the user asks to "verify citations", "check references", "validate paper citations", or "evaluate reference relevance". It extracts references from LaTeX/PDF papers, checks formatting rules, verifies existence via Crossref / Semantic Scholar / OpenAlex / PubMed / arXiv / dblp / Google Scholar / WebSearch, and scores thematic/semantic relevance.
- Installs packages
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Parse paper: Call citecheck CLI to read LaTeX (preferred) or PDF, extract references and body text
- Very specific: line 16
Format check: Call citecheck CLI to validate bibliography entries
- Very specific: line 17
Queryability verification: Call citecheck CLI to verify existence via Crossref / Semantic Scholar
- Very specific: line 53
Call citecheck to check and report format issues:
- Very specific: line 68
Call citecheck to query Crossref and Semantic Scholar public APIs for citation existence.
- Distinctive: line 140
Add delays and retries to API calls to avoid rate limiting.
- Distinctive: line 141
When Semantic Scholar abstracts are missing, fall back to Crossref + title keywords.
- Very specific: line 143
If placeholder citations like =?
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CiteCheck — Paper Citation Verification
Overview
CiteCheck verifies academic paper citations by combining structured parsing with agent-native LLM evaluation. It supports LaTeX source files (preferred) and PDF fallback.
Workflow
- Parse paper: Call
citecheckCLI to read LaTeX (preferred) or PDF, extract references and body text - Format check: Call
citecheckCLI to validate bibliography entries - Queryability verification: Call
citecheckCLI to verify existence via Crossref / Semantic Scholar - Evaluate thematic relevance: Evaluate directly using the agent's reasoning capabilities — compare cited paper title/abstract/venue against the citing paper
- Evaluate semantic accuracy: Evaluate directly using the agent's reasoning capabilities — compare in-text citation context against cited source content
- Generate report: Aggregate all results into a Markdown report
Why matching steps are not done by the CLI The
citecheckCLI can run standalone with optional--api-keyfor external LLM-powered matching. When used as a Skill, the host agent itself possesses LLM reasoning capabilities. Direct evaluation is faster, more consistent, and requires no additional API keys from the user.
1. Parse Paper (CLI)
LaTeX source (preferred)
citecheck path/to/latex_project/ --skip-verification --skip-semantic -o parsed_report.mdOr parse a single file:
citecheck main.tex --skip-verification --skip-semantic -o parsed_report.mdPDF (fallback)
citecheck paper.pdf --skip-verification --skip-semantic -o parsed_report.md
--skip-verificationand--skip-semanticare required in Skill mode because steps 3–5 are performed directly by the agent.
2. Format Check (CLI)
Call citecheck to check and report format issues:
| Check item | Description |
| Required fields | Author, title, year, venue completeness |
| Format consistency | Punctuation, capitalization, abbreviation uniformity |
| DOI/URL | If present, whether format is correct and accessible |
| Year sanity | No 202x placeholders, not in the future |
Detailed rules: see ./references/format-check-rules.md.
3. Queryability Verification (CLI + Agent Supplement)
Call citecheck to query Crossref and Semantic Scholar public APIs for citation existence.
API details: see ./references/api-reference.md.
If the CLI fails due to network/SSL issues, use WebSearch to directly query suspicious citations (especially those marked "unverifiable"), supplementing the verification results.
4. Evaluate Thematic Relevance (Agent Direct)
Do not call the CLI or any external API. Evaluate directly using the agent's reasoning capabilities.
For each reference, extract:
- Citing paper:
title,abstract,keywords - Cited paper:
title,abstract(from API results or WebSearch),venue
Evaluation prompt template: see ./references/thematic-scoring-prompt.md.
5. Evaluate Semantic Accuracy (Agent Direct)
Do not call the CLI or any external API. Evaluate directly using the agent's reasoning capabilities.
For each in-text citation position:
- Extract 1–2 sentences before and after the citation marker as
citing_text - Obtain the cited paper's abstract via Semantic Scholar or WebSearch as
cited_text - Evaluate semantic consistency using the prompt template: see ./references/semantic-matching-prompt.md.
6. Output Report
Generate a Markdown report containing:
Summary
- Total references
- Format issues count
- Query failures / suspicious count
- Average thematic relevance score
- Average semantic accuracy score
Detailed Results Table
| No. | Title | Format | Queryable | Thematic | Semantic | Notes |
| 1 | ... | ✅/⚠️/❌ | ✅/❌ | 0.85 | 0.90 | DOI mismatch |
Issue Summary
- List all findings and recommendations by severity
Dependencies
pip install CiteCheckFor PDF support:
pip install CiteCheck[pdf]Notes
- No
--api-keyis required in Skill mode. Thematic and semantic matching are performed directly by the agent, with no external LLM API calls. - Prioritize LaTeX source files; parsing accuracy is far higher than PDF.
- Add delays and retries to API calls to avoid rate limiting.
- When Semantic Scholar abstracts are missing, fall back to Crossref + title keywords.
- Semantic matching requires the cited paper's abstract; mark "source unreachable" when unavailable.
- If placeholder citations like
=?or[?, ?]are found, mark them as "unverifiable references".
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.

