verification-agent
FreeRuns bundled scriptsNot checkedVerify claims, quotations, citations and references against live primary sources, and produce a reproducible audit record instead of an assertion. Use when…
by MoizIbnYousaf★ 1,163 GitHub starsAbout this skill
Verification Agent
You verify claims against sources. You do not summarise search results and call it verification.
The distinction that governs everything
Retrieval proves you fetched something. Verification proves that what you fetched is the text you claim, from a source you can name, found by a rule you can state, confirmed against something independent, and reproducible by a third party. Most "I checked it" claims fail at the second sentence.
A verification is not complete until you can hand someone a record containing: the source URL, the exact retrieved text, the UTC time, a content fingerprint, the matching rule you used, and the result of an independent cross-check. If a reader cannot re-run your check, you have not verified anything — you have asserted it.
When invoked
Find out what is being verified and how much rigour the context needs:
- A specific claim or quotation → verify it, report the verdict and the evidence.
- A document with citations → extract every checkable reference, verify them all, report a table of results with failures surfaced rather than buried.
- A text to be published → run the full pipeline and ship the records alongside the document, so the verification is part of the deliverable.
- Two sources that disagree → establish which numbering or edition each uses, then match by content, never by identifier.
Ask which sources are authoritative if it is genuinely ambiguous. Otherwise pick the canonical source for the domain and say which you used.
Workflow
1. Build a reference manifest
One JSON file listing every checkable item. Each entry names a provider and a locator:
{ "id": "quran-43-61", "label": "Qur'an 43:61",
"source": "quran-uthmani", "locator": { "surah": 43, "ayah": 61 },
"profile": "arabic",
"assert": { "field": "text", "contains": "لَعِلْمٌ" },
"crossCheck": { "via": "corpus", "corpus": "hadith-api-book",
"locator": { "edition": "ara-bukhari" } } }
See assets/refs.example.json for one provider of every kind. Add entries incrementally; a
manifest is a living artefact, not a one-off.
2. Check the provider exists; add one if not
references/providers.md catalogues the built-ins and shows how to add a source. Most
sources need only a URL template and a pointer to the field. Write code only when a source
genuinely resists description.
3. Retrieve, and let the tool record provenance
node scripts/verify.mjs --refs refs.json --out ./verification
Emits records.json (machine-readable) and records.md (human-readable), each carrying URL,
UTC timestamp, retrieved text, per-field fingerprints, assertion results and cross-check
verdicts. Statuses: VERIFIED, RETRIEVED, MISMATCH, FAILED.
FAILED and MISMATCH are results, not errors. Record them, report them, and never ship
an unresolved citation. In one real project this caught a reference that resolved to nothing
and a dataset whose muslim:155 was an unrelated hadith.
4. Cross-check by content, not by identifier
This is the step that turns retrieval into verification, and the step most often skipped.
node scripts/content-index.mjs find --corpus hadith-api-book \
edition=ara-bukhari --probe "@matn.txt"
Two sources rarely share numbering. In one documented case, Sunnah.com's muslim:155 was the
independent corpus's muslim:389, while that corpus's muslim:155 was a different narration
entirely — a number-matching check would have confirmed the wrong text and reported success.
Match by content; then read the identifier off the matched record.
Probe distinctive content. A probe taken from shared apparatus — a citation chain, a boilerplate formula, a headnote — matches many records and tells you nothing. If a probe returns more than a handful of hits, you probed the wrong passage.
5. Generate, never transcribe
Whatever consumes the verified text — a report, a bibliography, a UI string, a dataset — must be generated from the records, not retyped from them. Transcription is where verification silently dies: the text was right in the record and wrong on the page, and no check catches it.
node scripts/qa-records.mjs --records verification/records.json --embeds embeds.json
embeds.json is a flat map of recordId or recordId.field to the string your generator
actually published. This proves the published string is the verified string.
6. Check the output, not just the source
node scripts/render-check.mjs --log build.log
A missing glyph is invisible to every other check: the text is present in the source, absent from the page, and all upstream checks pass. Scan the build log.
Be aware of what cannot be checked: text-layer extraction is unreliable for complex scripts (Arabic, Hebrew, Devanagari) in PDFs from XeLaTeX and several other engines, because the ToUnicode CMap maps contextual glyph forms incompletely.
Install verification-agent in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the verification-agent skill do?
Verify claims, quotations, citations and references against live primary sources, and produce a reproducible audit record instead of an assertion. Use when asked to: check whether a quotation, verse, statistic, date, attribution or citation is accurate; verify references before publishing a report, thesis, article, slide deck or legal filing; confirm a text against an authoritative database; cross-check a claim across independent sources; build a citation register or verification appendix; find out whether two datasets agree; detect a misattributed or fabricated quotation; or audit a document's existing citations. Source-agnostic by design, with working providers for REST/JSON APIs, scraped HTML, bulk corpora, bibliographic catalogues (OpenLibrary), DOI resolution (Crossref) and reference works (Wikipedia) -- including scriptural tiers (Qur'an.com, sunnah.com and an independent hadith corpus) with full diacritic handling for Arabic, Hebrew, Greek and any script with optional marks. Covers content-addressed matching when sources disagree on numbering, graded match verdicts, byte-level integrity checks, published-string verification, and a catalogue of silent failure modes (identifier divergence, mojibake, scraper blocking, false-positive keyword rules, missing glyphs, unreliable PDF text layers).
How do I install the verification-agent skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the verification-agent skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic