integrity-auditor

integrity-auditor is a skill for Claude Code, Codex from ai4s-research/ai4s-skills. It costs 63 tokens per session (4,961 once invoked), scanned A, original, MIT.

A procedure for checking a research paper for possible integrity problems in images, numbers, and reasoning. It produces an evidence-based audit report with findings graded by severity.

In plain words
What is it for?
Auditing papers supplied as PDFs, DOI or arXiv references, or outputs from a local paper-writing process.
Why use it?
It helps identify problems such as reused images, inconsistent calculations, questionable statistics, and gaps in the paper's logic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Auditing papers supplied as PDFs, DOI or arXiv references, or outputs from a local paper-writing process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai4s-research/ai4s-skills/integrity-auditor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ai4s-research/ai4s-skills --skill integrity-auditor
Clone the repo
git clone --depth 1 https://github.com/ai4s-research/ai4s-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for integrity-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai4s-research/ai4s-skills/integrity-auditor/github.svg)](https://agentmods.dev/skills/ai4s-research/ai4s-skills/integrity-auditor)
Your own site
<a href="https://agentmods.dev/skills/ai4s-research/ai4s-skills/integrity-auditor"><img src="https://agentmods.dev/badge/skills/ai4s-research/ai4s-skills/integrity-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for integrity-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai4s-research/ai4s-skills/integrity-auditor"><img src="https://agentmods.dev/badge/skills/ai4s-research/ai4s-skills/integrity-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.04961
Opus 5 $0.00032 $0.02481
Sonnet 5 $0.00013 $0.00992
Haiku 4.5 $0.00006 $0.00496

Measured 12d ago against content hash b6d8da9f1a5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

integrity-auditor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (forensics_tools/channel_check.py, forensics_tools/decimal_match.py, forensics_tools/image_dup_orb.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Article HTML landing page** — usually open even when PDF is gated. `curl -sL -A "Mozilla/5.0" "<article URL>" -o $RUN/paper.html`. This page typically embeds the abstract, all main-figure captions, and direct CDN UR
skills/integrity-auditor/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integrity Auditor

Overview

Paper-integrity audit package. Single stage, full quality from the start. The agent reads each reference, then carries out three evidence tracks (image / numerical / logical) and produces a structured audit_report.md with Level 1–4 graded findings.

This skill ships no LLM SDK — it is the skill instructions, references, templates, and single-purpose forensics_tools/ only.

The substantive work is decomposed into reference playbooks under references/:

Reference Topic
references/00-incremental-execution.md how to do this without losing work: batches, persistence, resume — read first
references/01-image-evidence.md image evidence: panel split, dup detection, rotate/flip alignment, Western-blot continuity
references/02-numerical-evidence.md numerical evidence: n-consistency, mean/SD/SEM recompute, P-value sanity, decimal trail, Benford with caveats, deterministic-column-pair and last-digit chi-square sweepers, variance-reporting consistency
references/02a-supplement-acquisition.md publisher CDN routes: how to get hi-res figures and source-data XLSXs even when the article PDF is paywalled
references/02b-ml-paper-arithmetic.md ML / non-biology papers: arithmetic re-derivation of every quoted improvement against tabulated benchmark cells; leaderboard archive routes
references/03-logical-evidence.md logical evidence: conclusion-chain compression, missing controls, replication gap
references/04-evidence-grading.md 4-level finding grading + reviewable-evidence format (DOI / figure-id / pointer / transformation / requested raw data)
references/05-quality-gate.md self-check before delivery

Also:

  • templates/audit_report.md — report skeleton the agent fills.
  • forensics_tools/image_dup.py — perceptual-hash (dHash + aHash) duplicate detector for figure / panel PNGs. Single-purpose pure-Python utility (Pillow only). Catches untransformed dups.
  • forensics_tools/image_dup_orb.py — ORB feature-matching duplicate detector with horizontal-flip augmentation. Catches transformed dups (rotation / flip / crop / brightness change) that perceptual hashing misses. Pair with image_dup.py: use phash first, escalate to ORB when phash distance is suspicious-but-inconclusive (16–60 range). Deps: OpenCV + NumPy.
  • forensics_tools/panel_split.py — whitespace-gutter panel splitter. Pair with image_dup.py / image_dup_orb.py for cross-panel duplicate detection; whole-figure phash without panel splitting almost never finds anything.
  • forensics_tools/channel_check.py — RGB channel-content classifier (DAPI / Flag / Merge / other) for fluorescence sub-images. Catches within-panel label swaps (e.g., a "DAPI" sub-image that is actually a Merge); cross-panel phash cannot catch this class.
  • forensics_tools/decimal_match.py — cross-cell last-N-decimal matching sweeper for source-data XLSX. Detects fabrication where many distinct values share trailing decimal patterns (Kang Tiebang whistleblower class). Single-purpose pure-Python utility (openpyxl only). See references/02-numerical-evidence.md Check 1.5.
  • forensics_tools/magnitude_consistency.py — supplement-text vs source-data XLSX unit/scale consistency. Catches unit-confusion (TWh vs GWh, mM vs µM, MHz vs Hz, etc.) and order-of-magnitude transcription errors via entity-overlap + literal-value matching across a generic SI-prefix-aware unit taxonomy covering energy / power / mass / length / area / volume / time / voltage / current / frequency / pressure / concentration / amount / force / dose / genomics-bp / CO2 / currency. Cross-family pairs (e.g., kV vs TWh) are automatically rejected. Pair with bilingual_cn_geography.json (or your own JSON map) for cross-language entity matching. Empirical baseline: Hu et al. 2026 Nature Tongyu county 1000× unit error. See references/02-numerical-evidence.md Check 1.6.
  • forensics_tools/xlsx_aggregate_consistency.py — cross-XLSX same-quantity sum/row consistency. Detects when two source-data tables in the same paper purport to carry the same aggregate quantity but disagree by a small systematic margin (e.g., Hu et al. 2026 Nature MOESM3 vs MOESM6 1110.78 vs 1103.89 TWh, 0.62 percent diff, all 31 provinces same sign). Reuses the unit taxonomy from magnitude_consistency.py. Empirical baseline same paper Level 1 finding. See references/02-numerical-evidence.md Check 1.7.
  • tests/smoketest.sh — < 30-second pre-commit gate. Compiles every script, runs every --help (catches argparse % bugs), and runs positive + negative controls for decimal_match, magnitude_consistency, and xlsx_aggregate_consistency. Run before every change.
  • See forensics_tools/README.md for the design rule that distinguishes utility scripts from forbidden "skeleton → enrich" orchestration, and for the recommended pipeline.

Read the full file on GitHub · 215 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 215 lines · 63 tokens per session scan A b6d8da9f1a5a

Subscribe to this mod's changes

integrity-auditor is a skill published in the GitHub repository ai4s-research/ai4s-skills (223 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 4,961 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

publication-figures

Use whenever you generate or review a chart, plot, table, or paper figure in this workspace, including work delegated by paper-writing, literature-survey, and experiment skills. Applies the Open Science publication style, enforces readable final-size layout for figures and tables, and rejects generic diagram-tool…

ai4s-research/open-science · 90 tokens

large-file

Use BEFORE reading any data file that could be large (CSV/TSV, Parquet, HDF5, FITS, NetCDF, NDJSON, genomics FASTQ/FASTA/VCF/BAM, GRIB, ROOT, or big text/simulation logs like VASP OUTCAR). Returns a compact memory pointer — header/schema/shape/sample/key numbers — by introspection and sampling in bounded memory, so…

ai4s-research/open-science · 115 tokens

domain-check

Use whenever you write or run scientific analysis code (physics, earth/geo, biology, chemistry, social science, or bioprocess/fermentation) in this workspace — before executing it and again after generating results. Runs a deterministic domain-correctness gate that catches code which runs but is scientifically wrong…

ai4s-research/open-science · 180 tokens

stats-integrity

Use whenever you run statistical analysis for the social sciences (regression, hypothesis tests, econometrics) or read Stata (.dta) / SPSS (.sav) data in this workspace. Enforces an execute-don't-interpret boundary (surface estimates, don't volunteer causal claims), checks the analysis against a preregistration plan…

ai4s-research/open-science · 105 tokens

remote-compute

Use when the user asks to run, submit, monitor, or cancel a job on a remote machine over SSH — their own GPU/CPU server, a workstation, or a Slurm cluster ("the cluster", a login node, "my 3090 box", "the compute server"). Picks a saved machine, runs the work directly over SSH (or via Slurm when present), tracks it…

ai4s-research/open-science · 93 tokens

modal-run

Use when the user asks to run heavy or GPU work on Modal (the cloud compute platform) — writing a Modal function in the workspace, running it with the user's own modal CLI + token, and bringing results back. Data-to-compute for jobs too big for the laptop, without a Slurm cluster.

ai4s-research/open-science · 67 tokens