CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

cf-reference-audit

Invoke when the user asks to audit, check, or verify the references, bibliography, or citations of a paper (.bib with optional .tex, a PDF, or a Word .docx), to screen for hallucinated or fabricated references, or to check that citations say what the cited work says. Also invoke after you add or edit bibliography entries yourself, before reporting the paper as done.

Quality

98%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Reference Audit

Audit a paper's references with the reference-audit CLI. It decides which real-world document each reference points to and flags references that match nothing real. Report what the tool found. Never fill a gap with your own guess.

1. Prerequisites (resolve before auditing)

  1. The CLI. Run reference-audit --help. If the command is missing, tell the user and offer uv tool install reference-audit (it needs uv). Install only with the user's approval. In a clone of the reference-audit repository, uv run reference-audit works without installing.

  2. The input. Pick one form. The forms cannot be mixed:

    • reference-audit audit <main.tex> <refs.bib>: the manuscript adds cited/uncited bookkeeping and the citing sentences that --check-citations needs. The main .tex is the one with \documentclass. The tool follows its \input/\include itself.
    • reference-audit audit <refs.bib>: every entry is still checked, but citedness is unknown.
    • reference-audit audit <paper.pdf>: by default a language model on the OpenAI API reads the reference list, so the PDF is sent to OpenAI. Say so before running it on an unpublished paper. --pdf-extractor grobid uses a local GROBID service instead.
    • reference-audit audit <paper.docx>: only Word's native structured bibliography is checked. Typed-in references are not checked. Pass this warning on to the user.

    If several .tex or .bib files could be the input, ask the user which one to use.

  3. Keys. Settings and API keys live in ~/.config/reference-audit/config.toml. Never ask the user to paste a key into the chat. Never write a key into the project and never print one. A run without keys still works. Without an LLM key, the entries that need LLM adjudication end up unresolved, and the reason says so. Report that as it is.

2. Run the audit

reference-audit audit paper.tex refs.bib --format json > audit.json
  • Write the JSON to a scratch location outside the paper's sources. Stdout carries only the JSON report. Progress, logs and the Word warning go to stderr. Read stderr when the exit code is non-zero.
  • A networked audit can take minutes on a long bibliography. Use a generous timeout or run it in the background. Do not cut it short and report a partial result.
  • Results are cached in .reference_audit/cache.db beside the input. A re-run after edits only re-checks entries that changed or failed before. Use --fresh only when the user asks for it.
  • Useful options:
    • --check-citations checks each citing sentence against the cited work's abstract (needs the LLM and citing sentences).
    • --no-llm gives a deterministic run.
    • --no-network parses only, with no verdicts.
    • --fail-on hallucinated|multiple|contradiction|unresolved exits non-zero for gating.
    • reference-audit audit --help lists the rest.

3. Read the report

Top level: entries, cited_but_missing (\cite keys with no entry), uncited, unparsed (entries the tool could not read, with the reason), notes (input caveats), and summary.

Per entry (entries[i]), the key is entry.key, and verdict holds the outcome:

verdictMeaningWhat to tell the user
kind: "none"Matches no real document: a likely hallucination.List it first, as a likely fabricated reference.
kind: "contradiction"A DOI/arXiv id resolves, but the cited fields disagree with that work (contradiction_findings).Show the conflicting fields and the resolved work.
kind: "multiple"Several distinct works fit.Ask the user which one is meant.
kind: "exactly_one"Resolved to one work (artifacts[0].best_record).Report its field_findings with status error or uncertain.
nullThe tool could not check it. unresolved_reasons says why.List it as unable to verify, with the reasons. It is neither a pass nor a hallucination.

issues holds per-entry problems such as backfilled or normalized identifiers. With --check-citations, alignment_findings[].status is one of the following:

  • supported
  • contradicted: the citation may misrepresent the source. Quote evidence_quote.
  • not_in_abstract: an advisory only. An abstract is a summary.
  • unverifiable

4. Report and fix

  • Report likely hallucinations first, then the entries the tool could not verify, then the remaining issues. Give the counts from summary. Point to the full report file.
  • Never delete or rewrite a reference flagged none on your own. Show it to the user. If you wrote that reference yourself, say so plainly.
  • Change a .bib only with values the report supplies: a backfilled DOI, a corrected field's canonical_value, or canonical_bibtex. Ask before you edit, unless the user already asked for fixes. Never invent a DOI, author, venue or year to make an entry pass.
  • After you edit, re-run the audit and report the new result.
Repository

constructorfabric/reference-audit

Path

kit/skills/reference-audit/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.