← 返回 Skills 市场
diamond2nv

Hfpclawer Citation Audit

作者 diamond2nv · GitHub ↗ · v0.5.0 · MIT-0
cross-platform ✓ 安全检测通过
93
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hfpclawer-citation-audit
功能描述
Verify academic paper citations using a three-tier fallback pipeline: local FTS5 database → Semantic Scholar API → OpenAlex API. Supports single citation che...
使用说明 (SKILL.md)

hfpclawer Citation Audit

Verify 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.

Overview

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 source
  • SUSPECTED — possible match (similar title, but not exact)
  • NOT_FOUND — no match found
  • ERROR — source unavailable (no local DB / API rate-limited)

When to Use

  • A user cites a paper you cannot find — verify its existence
  • You team is writing a survey / literature review — batch audit the reference list
  • You downloaded an LLM-generated paper and need to fact-check its citations
  • You want to know whether a paper is a known arXiv preprint or a non-existent hallucination

Prerequisites

  • pip install hfpclawer>=0.5.0
  • No API keys needed for basic use (S2 + OpenAlex use anonymous tier)
  • Optional: Set S2_API_KEY env var for 10x faster Semantic Scholar lookups
  • Optional: Set OPENALEX_POLITE_EMAIL env var for 10x faster OpenAlex lookups
  • Optional: Clone arxiv-metadata-service repo for L1 local FTS5 (see references/local-db-setup.md)

Quick Start

1. Verify a Single Citation (most common)

# 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

2. Use a Specific Source

# 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

3. Check a Reference List from File

# Save citations in a text file, one per paragraph
cat > refs.txt \x3C\x3C '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

Output Format

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

How Statuses Are Determined

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.

Batch Modes

From a Text File

hfpclawer audit --refs references.txt

The parser detects:

  • arXiv:XXXX.XXXXX identifiers
  • "Title" (Author, Year) patterns
  • Author (Year) "Title" patterns

Via Python API

from 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

Common Pitfalls

  1. Short/two-word queries may fail L1 because FTS5's porter stemmer requires actual content words. Use at least 3-4 significant words for local DB queries.
  2. Semantic Scholar rate-limits aggressively without API key (~1 req/s, ~100 req/day anonymous). Set S2_API_KEY for production use.
  3. OpenAlex polite pool is free and gives 10 req/s — set OPENALEX_POLITE_EMAIL to your institution email.
  4. No L1 without arxiv-metadata-service: The local FTS5 DB requires git clone of the separate arxiv-metadata-service repo. Without it, the auto chain starts at L2 (slower but still works).

Verification Checklist

  • Single citation works: hfpclawer audit verify "Known Paper Title"
  • arXiv ID works: hfpclawer audit verify --arxiv-id 2010.08895
  • Non-existent paper returns NOT_FOUND
  • Network errors return ERROR (not crash)
  • Batch mode processes multiple citations from file
  • hfpclawer audit verify --help shows source options
安全使用建议
Treat this as an inconclusive low-confidence pass: the available telemetry is clean, but the artifact files should be re-reviewed once metadata.json and artifact contents can be read.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Artifact contents could not be inspected because local read commands failed before returning metadata.json or artifact files; no purpose mismatch can be substantiated from the provided prompt alone.
Instruction Scope
No runtime instructions from SKILL.md were available for review, so there is no evidence-backed instruction-scope concern.
Install Mechanism
Install specs and file contents were not readable in this run; there is no artifact evidence of unsafe install behavior.
Credentials
Environment access could not be assessed from artifact contents; VirusTotal telemetry was clean and is not a negative signal.
Persistence & Privilege
No artifact evidence was available showing persistence, privilege abuse, credential handling, or sensitive data flows.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hfpclawer-citation-audit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hfpclawer-citation-audit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.5.0
- Added hfpclawer-citation-audit for verifying academic paper citations using a three-tier fallback (local FTS5, Semantic Scholar, OpenAlex). - Supports single citation checks and batch audits from text files. - No external API keys needed for basic usage; advanced rate limits available with keys. - Command-line and Python API interfaces provided. - Detailed status reporting: VERIFIED, SUSPECTED, NOT_FOUND, ERROR. - Included troubleshooting tips, requirements, and verification checklist.
元数据
Slug hfpclawer-citation-audit
版本 0.5.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Hfpclawer Citation Audit 是什么?

Verify academic paper citations using a three-tier fallback pipeline: local FTS5 database → Semantic Scholar API → OpenAlex API. Supports single citation che... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 93 次。

如何安装 Hfpclawer Citation Audit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hfpclawer-citation-audit」即可一键安装,无需额外配置。

Hfpclawer Citation Audit 是免费的吗?

是的,Hfpclawer Citation Audit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Hfpclawer Citation Audit 支持哪些平台?

Hfpclawer Citation Audit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hfpclawer Citation Audit?

由 diamond2nv(@diamond2nv)开发并维护,当前版本 v0.5.0。

💬 留言讨论