paper-writer
Write academic papers (IMRaD structure) for conferences and journals, with mandatory anti-hallucination citation verification. Triggers (FR + EN) : "écris un…
Systematic per-citation verification protocol for academic writing. MUST be used whenever writing content that cites sources — papers, blog posts, SOTAs, or any document making factual claims about external work. Triggers (FR + EN) on any writing task involving references,
$ npx -y skills add roomi-fields/paper-trail --skill citation-receipts --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/citation-receiptsContext preview
The summary Claude sees to decide when to auto-load this skill.
Systematic per-citation verification protocol for academic writing. MUST be used whenever writing content that cites sources — papers, blog posts, SOTAs, or any document making factual claims about external work. Triggers (FR + EN) on any writing task involving references,
name: citation-receipts description: > Systematic per-citation verification protocol for academic writing. MUST be used whenever writing content that cites sources — papers, blog posts, SOTAs, or any document making factual claims about external work. Triggers (FR + EN) on any writing task involving references, citations, or bibliographic claims, or when the user asks to "verify citations", "check sources", "audit references", "validate bibliography", "produce receipts", "/paper-trail:audit-article", "/paper-trail:receipts". Produces a structured RECEIPTS.md report classifying each citation as VALID / ADJUST / INVALID with reason. Optional --warn mode inserts inline warnings into a .bak copy of the source document. Combined with sota-auditor (upstream existence audit), this skill is the **downstream** per-claim check.
The plugin's mechanical safeguards (FSM, page 1 anti-homonymy, cascade) prevent citing a fabricated reference. But they don't prevent citing a real reference for a claim it doesn't actually make. Examples that have occurred :
proves tractability
appear in the cited source
(attribution chains)
much stronger than X "is formulated as" Y
This skill enforces a per-citation read-before-cite protocol. Inspired by the `receipts` plugin (MIT, James Weatherhead) for the audit-PDF↔claim pattern.
**Read the source before you cite it.** Not the title. Not the abstract. Not what you think it probably says based on the author's reputation. The actual text where the result is stated. If you can't access the source, mark it UNVERIFIABLE explicitly — don't guess.
This protocol applies to EVERY citation in :
article file
For each source you intend to cite (or that's already cited in the document under audit), follow these steps in order.
Check these locations, in order :
1. **Local registry** : `$RESEARCH_REGISTRY_PATH/refs/<slug>.md`. If state is `page1_validated` or higher, the PDF is at `$RESEARCH_SOURCES_PATH/<pdf_path>`. 2. **`paper-search` MCP** for not-yet-acquired sources : `mcp__paper-search__search_papers(query=<title>)` then `get_crossref_paper_by_doi(<doi>)` for confirmed metadata 3. **`notebooklm` MCP** (optional, if configured) for book chapters 4. **Not found anywhere** → mark UNVERIFIABLE, flag to user, do not proceed with the citation as-is
If the ref is in `candidate` state in the registry :
If the ref isn't in the registry at all :
`state: candidate`
Once the PDF is available locally, read the section containing the claim being cited. Extraction tools :
should already contain notes from `sota-writer` phase C if the SOTA was created via the plugin)
Before writing or accepting the citation, check :
1. **Does the source actually say what we claim ?** Read the relevant section — not just the abstract. 2. **Are we using the right verb ?** "prove" vs "show" vs "argue" vs "suggest" have different strengths. Match the source's own language. 3. **Are quotes verbatim ?** If using quotation marks, the exact words must appear in the source. If you can't verify, paraphrase instead. 4. **Is the attribution correct ?** The result belongs to the author who first established it, not necessarily the author who cites it in a survey. 5. **Are indices/numbers correct ?** Double-check any specific values (complexity bounds, page numbers, counts).
| Verdict | Meaning | Action | |---|---|---| | **VALID** | Claim matches source exactly | Proceed | | **ADJUST** | Claim is approximately right but needs softening or rephrasing | Reformulate citing sentence before submitting | | **INVALID** | Claim contradicts source or quote is fabricated | Do not cite as-is. Fix or remove. Consider transitioning the ref to `retracted` via `sota-auditor` if the contradiction is structural. | | **UNVERIFIABLE** | Cannot access source after exhaustive search | Flag to user. Do not cite specific results from this source. |
When invoked via `/paper-trail:audit-article` or `/paper-trail:receipts`, produces a `RECEIPTS.md` file at the same location as the audited article. Format inspired by the `receipts` plugin (MIT) :
# RECEIPTS — <audited file path> Generated: <ISO timestamp> Source: <count> citations parsed Skill: paper-trail/citation-receipts --- ## Citation 1 — [Smith2020] (DOI:10.1234/example) **Status**: VALID **Claim in manuscript** (line 42): > "Smith and Doe proved that X is NP-hard for case Y." **Source statement** (PDF p.5, §3): > "Theorem 3.2. The problem X is NP-hard for all instances satisfying Y." **Notes**: Attribution correct, verb « proved » matches the source's formal theore
Anti-hallucination plugin for academic research in Claude Code. Create literature reviews and papers guaranteed without fabricated citations.
Write academic papers (IMRaD structure) for conferences and journals, with mandatory anti-hallucination citation verification. Triggers (FR + EN) : "écris un…
Acquire PDFs for bibliographic references via a strict 8-source cascade (Crossref OA → arXiv → OpenAlex → Unpaywall → HAL → CORE → archive.org → WebSearch…
Audit the bibliography registry for consistency via 19 mechanical invariants (I1-I19) covering state validity, slug uniqueness, UID format, PDF path…
Final authority on the truthfulness of references cited in State-of-the-Art reviews and academic papers. Activate this skill whenever the session involves…
Write structured State-of-the-Art (SOTA) reviews / literature reviews for academic research projects with **zero hallucinated citations**. Activate this skill…