Skip to content
Back to skills

Check Citations

ASecurity

Verifies citations against CrossRef, Semantic Scholar, and OpenAlex; detects AI-hallucinated references. Use before submission.

  • 16 stars
  • 0 votes
  • 4 copies
  • 21 views
  • Added September 24, 2026
researchpythongobashgitapidatabaseci/cd

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add FOURTEEN1416/academic-agent-toolkit --skill check-citations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Citations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check Citations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fourteen1416-check-citations/badge)](https://www.skillsdirectory.com/skills/fourteen1416-check-citations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check-citations
description: "Verifies citations against CrossRef, Semantic Scholar, and OpenAlex; detects AI-hallucinated references. Use before submission."
version: 1.0.0
metadata:
  openclaw:
    requires:
      bins:
        - python3
    install:
      - kind: uv
        package: requests
    emoji: "\U0001F50D"
    homepage: https://github.com/PHY041/claude-skill-citation-checker
---

# check-citations

Verify academic citations against CrossRef, Semantic Scholar, and OpenAlex. Detects AI-hallucinated references, chimeric citations (real title + wrong authors), and suspicious patterns before submission.

## When to Use

- After writing or editing a `.bib` file with AI assistance
- Before submitting a paper, thesis, or report
- When reviewing AI-generated literature sections
- As a CI/CD check in LaTeX manuscript pipelines
- When auditing existing bibliographies for dead or fabricated references

## Background

- 6-55% of AI-generated citations are fabricated (varies by model/domain)
- 100+ hallucinated references found in NeurIPS 2025 accepted papers
- Universities increasingly treat fake citations as academic misconduct
- Three hallucination types: **fully fabricated**, **chimeric** (real title + wrong authors), **modified real** (slightly altered metadata)

## Usage

> **同名工具区分**:本技能脚本为自带的 `scripts/citation_checker.py`(CrossRef/OpenAlex 双源 + Semantic Scholar 可选三源**真伪核验**,支持 `--json`/`--verbose`,退出码 0/1/2)。仓库另有 `academic-toolkit/tools/citation_checker.py`(GB/T 7714 **格式**检查器,仅收位置参数)——两者同名不同物,勿混用。

### Quick Check (Single File)

```bash
python scripts/citation_checker.py references.bib
```

### Check All `.bib` Files in a Directory

```bash
python scripts/citation_checker.py path/to/report/
```

### JSON Output (CI/CD Pipelines)

```bash
python scripts/citation_checker.py references.bib --json
```

### Verbose Mode (Debug API Responses)

```bash
python scripts/citation_checker.py references.bib --verbose
```

## How It Works

### Cascading Multi-Source Verification

Each citation is checked against three independent databases:

| Source | Coverage | Strength |
|--------|----------|----------|
| CrossRef | 140M+ DOI-registered works | Best for journal/conference papers with DOIs |
| Semantic Scholar | 200M+ papers | Best author disambiguation, arXiv coverage |
| OpenAlex | 240M+ works | Broadest coverage, fully open |

**Verification logic:**
- Found in 2+ sources with matching title → **verified** (high confidence)
- Found in 1 source only → **suspicious** (manual check recommended)
- Found in 0 sources → **not_found** (likely hallucinated)

### Chimeric Detection

When a citation's title matches a real paper but the authors don't overlap at all, it's flagged as a possible **chimeric hallucination** — the most dangerous type because the title looks real on Google Scholar.

### Red Flag Heuristics

- Invalid DOI format (doesn't start with `10.xxxx/`)
- Suspiciously generic title patterns ("A Comprehensive Survey of...")
- Future publication year
- Missing author or year fields
- Single-word author names (incomplete metadata)

## Exit Codes

| Code | Meaning |
|------|---------|
| 0 | All citations verified |
| 1 | One or more citations not found |
| 2 | Suspicious citations only (no hard failures) |

## Dependencies

```bash
pip install requests
```

No API keys required — uses free tiers of all three databases.

## Accuracy (Tested)

| Category | Result | Description |
|----------|--------|-------------|
| Known-good | 9/10 (90%) | Famous ML papers (Vaswani, Devlin, Brown, He, etc.) |
| Known-bad | 10/10 (100%) | Fabricated papers with plausible titles |
| Chimeric | 5/5 (100%) | Real titles with wrong authors |
| **False positive rate** | **10%** | 1 miss: unpublished tech report without DOI |
| **False negative rate** | **0%** | No fake paper was ever verified |

The core guarantee: **fake papers are never marked as real.**

## Limitations

- Papers without DOI that have many derivatives (e.g., BERT without DOI) may not be found via title search alone — always include DOIs when available
- Semantic Scholar free tier rate-limits at ~100 requests/5 minutes — batch verification is slower
- Cannot verify papers behind paywalls or not indexed in any of the three databases
- Book chapters, technical reports, and grey literature have lower coverage

## Integration with LaTeX Workflows

### Pre-commit Hook

```bash
#!/bin/bash
# .git/hooks/pre-commit
python scripts/citation_checker.py references.bib --json > /tmp/cite_check.json
NOT_FOUND=$(python3 -c "import json; d=json.load(open('/tmp/cite_check.json')); print(d['summary']['not_found'])")
if [ "$NOT_FOUND" -gt "0" ]; then
    echo "BLOCKED: $NOT_FOUND unfound citations. Run 'python scripts/citation_checker.py references.bib --verbose' to investigate."
    exit 1
fi
```

### GitHub Actions

```yaml
- name: Check citations
  run: |
    pip install requests
    python scripts/citation_checker.py references.bib --json > citation_report.json
    python -c "
    import json, sys
    r = json.load(open('citation_report.json'))
    if r['summary']['not_found'] > 0:
        print(f'FAIL: {r[\"summary\"][\"not_found\"]} citations not found')
        sys.exit(1)
    print(f'PASS: {r[\"summary\"][\"verified\"]} verified, {r[\"summary\"][\"suspicious\"]} suspicious')
    "
```

Files in this skill

  • ASSET-GAP.md585 B
  • SKILL.md5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.