Install
openclaw skills install hfpclawer-citation-auditVerify academic paper citations using a three-tier fallback pipeline: local FTS5 database → Semantic Scholar API → OpenAlex API. Supports single citation checks and batch reference-list audits. No external API keys required for basic usage.
openclaw skills install hfpclawer-citation-auditVerify whether a cited academic paper actually exists, using a three-tier pipeline that degrades gracefully when local data or remote APIs are unavailable.
Who this is for: Researchers, reviewers, and literature-survey authors who need to check whether a citation refers to a real paper.
The audit engine tries three sources in order, stopping at the first confirmation:
┌──────────────────────────┐
User: │ hfpclawer audit verify │
"Is this paper │ "Fourier Neural Operator"│
real?" └─────────────┬────────────┘
│
┌─────────────┼─────────────┐
▼ ▼ ▼
┌─────────┐ ┌──────────┐ ┌──────────┐
│ L1: │ │ L2: │ │ L3: │
│ Local │→ │ Semantic │→ │ OpenAlex │
│ FTS5 DB │ │ Scholar │ │ │
│ (1ms) │ │ (200ms) │ │ (200ms) │
└─────────┘ └──────────┘ └──────────┘
Each source independently reports one of four statuses:
VERIFIED — the paper exists in this sourceSUSPECTED — possible match (similar title, but not exact)NOT_FOUND — no match foundERROR — source unavailable (no local DB / API rate-limited)pip install hfpclawer>=0.5.0S2_API_KEY env var for 10x faster Semantic Scholar lookupsOPENALEX_POLITE_EMAIL env var for 10x faster OpenAlex lookupsarxiv-metadata-service repo for L1 local FTS5 (see references/local-db-setup.md)# Auto mode: tries local DB first, then Semantic Scholar, then OpenAlex
hfpclawer audit verify "Fourier Neural Operator for Parametric Partial Differential Equations"
# Short title works too — includes substring fallback
hfpclawer audit verify "Fourier Neural Operator"
# Exact arXiv ID
hfpclawer audit verify --arxiv-id 2010.08895
# Local FTS5 only (needs arxiv_meta.db)
hfpclawer audit verify "Attention Is All You Need" --source local
# Semantic Scholar only
hfpclawer audit verify "Attention Is All You Need" --source s2
# OpenAlex only
hfpclawer audit verify "Attention Is All You Need" --source openalex
# Save citations in a text file, one per paragraph
cat > refs.txt << 'EOF'
The FNO paper (arXiv:2010.08895) shows promising results.
PINNs were introduced by Raissi et al. (2019) "Physics-informed neural networks".
EOF
hfpclawer audit --refs refs.txt
Each result shows:
[OK] VERIFIED — paper confirmed; includes title, authors, source[?] SUSPECTED — possible but uncertain; shows top matches[NF] NOT_FOUND — no evidence of this paper[ERR] ERROR — source unavailable (DB not found, rate limited)[OK] VERIFIED
Title: Fourier Neural Operator
Authors: Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, ...
Sources: openalex: VERIFIED
| Status | Local DB | Semantic Scholar | OpenAlex |
|---|---|---|---|
| VERIFIED | FTS5 match with title similarity >= 0.70 | Title search ≥ 0.70 | Title search ≥ 0.70 |
| SUSPECTED | FTS5 match with score 0.40-0.69 | — | — |
| NOT_FOUND | No FTS5 results | No ≥0.70 match | No ≥0.70 match |
| ERROR | DB not found / corrupt | 429/5xx / network | 429/5xx / network |
Title matching: Title similarity uses difflib.SequenceMatcher on
normalized (lowercase, punctuation-stripped) titles. Short titles that are
substrings of longer titles also pass the 0.70 threshold.
hfpclawer audit --refs references.txt
The parser detects:
"Title" (Author, Year) patternsAuthor (Year) "Title" patternsfrom hfpclawer.citation_audit import check_citation
result = check_citation(
"Fourier Neural Operator",
authors_hint="Li",
year_hint=2020,
source="auto", # or "local" / "s2" / "openalex"
)
print(result["status"]) # VERIFIED | NOT_FOUND | ERROR
print(result.get("authors", "N/A"))
print(result.get("per_source", {})) # Per-source breakdown
S2_API_KEY for production use.OPENALEX_POLITE_EMAIL to your institution email.git clone of the separate arxiv-metadata-service repo. Without it,
the auto chain starts at L2 (slower but still works).hfpclawer audit verify "Known Paper Title"hfpclawer audit verify --arxiv-id 2010.08895hfpclawer audit verify --help shows source options