audit-references
Skill5 starsChanged 3 months agoMITView on GitHub
Verify citations in a paper or document. Reads a markdown document, extracts every [@citation-id] pandoc citation, resolves each against references.yaml (CSL-YAML), fetches the cited papers (arXiv or Google Scholar), reads them, and checks whether the claims made in the citing text are supported by the sources. Produces an audit report with per-citation verdicts. Triggers: audit references, verify citations, check references, citation audit, verify bibliography, check my citations, are my references correct, fact-check citations, validate sources.
- Installs packages
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- accent-dialSkill
- bake-offSkill
- cold-reviewSkill
- critic-applySkill
- critic-panelSkill
- filter-tellsSkill
- humanizeSkill
- inject-vernacularSkill
- match-outlineSkill
- match-structureSkill
- match-voiceSkill
- patent-disclosureSkill
- pattern-languageSkill
- reverse-outlineSkill
- tighten-styleSkill
- tune-anchorsSkill
- update-referencesSkill
- voice-criticSkill
- accent-dialSkill
- audit-referencesSkill
- bake-offSkill
- cold-reviewSkill
- critic-applySkill
- critic-panelSkill
- filter-tellsSkill
- humanizeSkill
- inject-vernacularSkill
- match-outlineSkill
- match-structureSkill
- match-voiceSkill
- patent-disclosureSkill
- pattern-languageSkill
- reverse-outlineSkill
- tighten-styleSkill
- tune-anchorsSkill
- update-referencesSkill
- voice-criticSkill
- accent-dialSkill
- audit-referencesSkill
- bake-offSkill
- cold-reviewSkill
- critic-applySkill
- critic-panelSkill
- filter-tellsSkill
- humanizeSkill
- inject-vernacularSkill
- match-outlineSkill
- match-structureSkill
- match-voiceSkill
- patent-disclosureSkill
- pattern-languageSkill
- reverse-outlineSkill
- tighten-styleSkill
- tune-anchorsSkill
- update-referencesSkill
- voice-criticSkill
- accent-dialSkill
- audit-referencesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
If references.yaml does not exist in the paper directory, stop and tell the user.
- Distinctive: line 63
Run the extraction script to get every citation and its surrounding context:
- Distinctive: line 84
unresolved: no matching entry — flag this immediately in the report
- Very specific: line 93
Already fetched?: Check if md_path (or legacy text_path) or pdf_path exists in the database entry and the file is on disk.
- Distinctive: line 105
No arxiv_id?: Search Google Scholar for the title:
- Distinctive: line 110
If a match is found with a PDF link, fetch it:
- Very specific: line 140
Use the template at <skill>/references/audit-template.md.
- Distinctive: line 149
Call out any unsupported or misattributed citations explicitly — these need the author's attention
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Audit references (citation verification)
This skill verifies that the citations in a document actually say what the
author claims they say. It complements update-references (which discovers
new papers) by auditing existing citations for correctness.
The output is an audit report: one entry per citation, with a verdict (supported, unsupported, misattributed, not-found) and the evidence from the source paper.
Where things live
- Document: The markdown file the user points you at, or the most obvious
draft in the working directory. Look for
.mdfiles that contain[@citations. - Database:
references.yamlin the working directory (or at the nearest ancestor that has one). This is the Citation Style Language (CSL) YAML bibliography that pandoc andupdate-referencesboth use. - PDFs/papers:
<db-dir>/pdfs/and<db-dir>/papers/— the same locationsupdate-referencesuses. If a paper was already fetched, reuse its markdown. - Audit report:
<db-dir>/audits/<document-stem>-audit.md, using the template in<skill>/references/audit-template.md.
Prerequisites
The document must use pandoc citation syntax: [@citation-id], [@id1; @id2],
or @citation-id inline. The citation ids must match entries in
references.yaml.
If references.yaml does not exist in the paper directory, stop and tell the
user. They need to create it first (using update-references or manually).
Running the scripts
This skill and the update-references scripts it calls run in the pixi-managed
environment that ships beside the skills. The agent provisions it on repo open
via <agent-dir>/scripts/ensure-env.sh; the commands below use $RUN:
RUN="pixi run --manifest-path <skill>/../../pixi.toml python"No pip install is needed — the environment supplies PyYAML and the PDF
libraries.
The workflow
1. Extract citations
Run the extraction script to get every citation and its surrounding context:
$RUN <skill>/scripts/extract_citations.py <document-path>This outputs a JSON array of objects, each with:
citation_id: the pandoc citation keycontext: the sentence or paragraph surrounding the citationline: the line number in the source documentclaim: a best-effort extraction of the claim being made (the sentence containing the citation)
Review the output. If the document has no citations, report that and stop.
2. Resolve against references.yaml
Load references.yaml and match each citation_id to an entry. Classify each
citation:
- resolved: the id matches an entry in
references.yaml - unresolved: no matching entry — flag this immediately in the report
For resolved citations, note the entry's arxiv_id (if present), URL,
title, and author fields. These are needed to fetch the paper.
3. Fetch and read cited papers
For each resolved citation, get the paper text:
- Already fetched? Check if
md_path(or legacytext_path) orpdf_pathexists in the database entry and the file is on disk. If so, read the markdown file directly. If only a PDF exists without markdown, runrepairfirst to generate it. - Has arxiv_id? Fetch via the sibling skill's script:
Then read the markdown conversion it produces.$RUN .agents/skills/update-references/scripts/arxiv.py \ --db <db-path> fetch --id <arxiv_id> - No arxiv_id? Search Google Scholar for the title:
If a match is found with a PDF link, fetch it:$RUN .agents/skills/update-references/scripts/scholar.py \ --db <db-path> search --query "<paper title>" --max 3$RUN .agents/skills/update-references/scripts/scholar.py \ --db <db-path> fetch --title "<title>" --url "<pdf_url>" \ --authors "Given Family" --year YYYY - Cannot fetch? Mark the citation as
not-foundin the report and move on.
4. Verify claims
For each citation where you have the paper text, read the relevant sections and evaluate the claim made in the citing document:
- supported: the source paper contains evidence that backs the claim. Quote the relevant passage (one or two sentences).
- unsupported: the source paper does not contain evidence for the claim. Explain what the paper actually says about the topic.
- misattributed: the claim is true but attributed to the wrong source, or the source says something different from what is claimed. Explain the discrepancy.
- not-found: the paper could not be located or accessed.
Be precise. A claim like "Smith et al. show 30% improvement" requires finding that specific number in the source. A paraphrase like "Smith et al. demonstrate significant gains" needs the source to actually demonstrate gains in the claimed domain.
5. Write the audit report
Use the template at <skill>/references/audit-template.md. Write the report to
<db-dir>/audits/<document-stem>-audit.md.
6. Report back
Summarize the results:
- Total citations found
- How many resolved vs. unresolved
- Verdicts: N supported, N unsupported, N misattributed, N not-found
- Call out any unsupported or misattributed citations explicitly — these need the author's attention
Dependencies
Same as update-references: the shared pixi environment supplies PyYAML and
pymupdf4llm for PDF-to-markdown conversion, provisioned by ensure-env.sh
with no pip install. The extraction script is pure Python stdlib. arXiv and
Scholar access use the sibling skill's scripts, run through the same $RUN
wrapper.
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.

