consistency-audit
Skill2 starsChanged 4 months agoMITView on GitHub
Catch consistency drift in a deliverable (report/doc/slide deck) - numbers, figures, or claims in the prose that no longer match the source-of-truth data (CSVs, computed results, sweep outputs). Run before submitting or re-exporting a report, after regenerating results, at each revision, and whenever the user asks "do the numbers in the report still match the data / are all figures referenced / is anything stale or fabricated / did a value drift". The mechanical half (extract every cited value + figure ref, cross-check against the source data with tolerance) is a bundled script; the reasoning half (is a claim actually SUPPORTED, is the interpretation consistent across sections) is Claude's - which is why this is a skill, not just a hook.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- lcandy2/agent-skillstheir own version, first seen Oct 4, 2026
- wanshuiyin/Anti-Autoresearchtheir own version, first seen Jun 27, 2026
- 45ck/hci-review-skilltheir own version, first seen Mar 28, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- wanshuiyin/Anti-Autoresearch★ 158same name
- 45ck/hci-review-skill★ 18same name
- lcandy2/agent-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- completeness-auditSkill
- meta-reviewSkill
- source-coverageSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
If extraction fails, produce a text/markdown export of the deliverable and re-run.
- Distinctive: line 69
Prefer reading the source row over trusting the prose.
- Distinctive: line 76
[F] promised-but-missing tables: - if the prose captions or references a "Table N" whose body is never rendered near it, build the table …
- Very specific: line 94
Write a short audit report (to the project's audit dir, e.g.
- Distinctive: line 102
Every number in the prose either matches a source value within tolerance or has an explicit, recorded reason it does not (derived / rounded …
- Distinctive: line 104
Every figure is referenced, and every reference resolves to a real caption.
- Distinctive: line 105
Every quantitative claim is checked against the data that would support it, not just against whether *a* matching number exists somewhere.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Consistency Audit
A deliverable drifts from its data silently. Prose is edited, a CSV is regenerated, a figure is swapped - and a cited number, a figure reference, or a claim quietly stops matching the source of truth. This skill catches six drift classes, splitting the work the way it must be split: a script does the deterministic extraction and tolerance cross-check; Claude does the judgment a script cannot.
Motivating case (a control-systems lab report): results/*.csv held full-precision values
(Overshoot_pct = 94.7651...) that the report cited as "94.8 %"; across revisions a
figure got embedded but never referenced, a "see Figure 4" pointed at a caption that
had become Figure 5, and a superlative ("the lowest overshoot") no longer matched any
row. None of these are syntax errors - they are consistency drift.
The six drift classes
- (A) Number with no source match - a value in the prose that appears in no source file within tolerance. Possible stale edit or fabrication. The important one.
- (B) Orphan figure - a figure embedded/captioned but never referenced in the text.
- (C) Dangling cross-reference - "Figure/Table N" cited with no matching caption (or a number that no longer lines up with the caption it points to).
- (D) Unsupported claim - a comparative/superlative or quantitative claim whose supporting number is absent or unmatched. Only Claude can settle these.
- (E) Unfilled placeholder - a bracketed placeholder left in the deliverable
(
[TABLE],[TODO],[insert value],[XX],TKTK,TBD, ...). Should never ship. - (F) Table promised but not rendered - a "Table N" that is referenced or captioned yet whose body is never rendered near it - flagged per table, even when other tables do render (the classic placeholder-table miss).
Inputs
- Deliverable: the report/doc/slides (
.docx,.pdf,.tex,.md,.txt, ...). - Source-data dir(s): the authoritative CSVs / results / sweep outputs / JSON.
- Optional: numeric tolerance (default relative 1 %, which absorbs normal rounding).
Procedure
STEP 1 - Run the mechanical pass
python <skill_dir>/scripts/audit.py \
--deliverable <path/to/report.(docx|pdf|tex|md)> \
--sources <dir1,dir2 or file.csv> \
[--rel-tol 0.01] [--json audit.json]It normalises the deliverable to text (docx/pdf need python-docx/pdftotext/PyMuPDF/
pdfminer if the format is binary - it prints exact guidance if none is available),
indexes every numeric value in the sources, and prints candidates grouped [A]-[F].
If extraction fails, produce a text/markdown export of the deliverable and re-run.
A scanned pdf - an image with no text layer - is REFUSED with an OCR instruction rather
than audited: reading zero characters would report CLEAN, and a clean verdict on a document
nothing ever read is the one answer this skill must never give.
STEP 2 - Adjudicate the mechanical flags (this is the point)
The script proposes; you decide. For each candidate, do not just repeat it:
- [A] unmatched numbers - open the cited context AND the nearest source value the script named. Classify each as: DRIFT (prose disagrees with data - fix the prose or regenerate), DERIVED (legitimately computed from source values, e.g. a ratio or a sum - confirm the derivation), ROUNDED (beyond tolerance but defensible - note it), or DEFINITIONAL/EXTERNAL (a spec constant, a citation, a target - not drift). Prefer reading the source row over trusting the prose.
- [B] orphan figures - is the figure genuinely unused (drop it or reference it), or referenced by a name the regex missed? Confirm before recommending removal.
- [C] dangling refs - did the figure/table numbering shift? Trace the reference to the caption it should point to and report the corrected number.
- [E] placeholders - a leftover
[TABLE]/[TODO]/[insert ...]is almost always a real defect: fill it from the source or remove it. Zero placeholders should ship. - [F] promised-but-missing tables - if the prose captions or references a "Table N" whose body is never rendered near it, build the table from the source data or drop the reference (this fires per table, even when other tables render).
STEP 3 - The reasoning pass (the half no hook can do)
Now do what the script cannot:
- Claim support. For each [D] candidate and each substantive claim in the prose, ask: is there a source number that actually supports it, at the stated precision and direction? "The passive design gives the lowest overshoot" is only true if the passive row IS the minimum in the sweep - check the data, not the sentence.
- Cross-section consistency. Does the same quantity carry the same value everywhere it appears (abstract vs body vs table vs conclusion)? A number that is internally inconsistent is drift even if each instance matches some source row.
- Interpretation. Does the narrative reading match what the numbers say (a "stable" claim against a row that shows instability; "improved" against a worse value)? This is the failure a number-matcher cannot see.
STEP 4 - Report + fix
Write a short audit report (to the project's audit dir, e.g.
docs/audits/consistency_<date>.md, or inline if the user prefers): per class, each
candidate with its verdict (DRIFT / DERIVED / ROUNDED / DEFINITIONAL / OK) and the
action taken or recommended. Fix the clear DRIFT items (correct the prose or flag the
stale source) and surface the judgment calls for the user. State the tolerance used and
the source files indexed, so the audit is reproducible.
Guarantees this enforces
- Every number in the prose either matches a source value within tolerance or has an explicit, recorded reason it does not (derived / rounded / definitional).
- Every figure is referenced, and every reference resolves to a real caption.
- Every quantitative claim is checked against the data that would support it, not just against whether a matching number exists somewhere.
Why this is a skill, not just a hook
A hook can mechanically flag "this number appears in no source file" - and the companion
numbers-match hook (unbluff) does exactly that on write, fail-silent and once per
session. But a hook cannot decide whether an unmatched number is drift or a legitimate
derivation, whether a claim is actually supported, or whether two sections tell a
consistent story. That judgment is STEP 2-3 here. Keep the hook mechanical and let this
skill carry the reasoning; they are the two halves of the same guarantee.
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.

