document-forensics

Analyze document collections for provenance, anomalies, redactions, and cross-document contradictions.

4|2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Arete-Consortium/ai-skills --skill document-forensics-arete-consortium
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: document-forensics
Source: https://github.com/Arete-Consortium/ai-skills/tree/main/agents/analysis/document-forensics
Command: npx skills add https://github.com/Arete-Consortium/ai-skills --skill document-forensics-arete-consortium

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdfplumber, PIL, cv2, dateutil, exiftool.

What problem does it solve? Investigative analysis of document corpora (FOIA releases, court records, leaked files) requires systematic provenance checks, anomaly detection, and redaction analysis that manual review cannot scale to. This Skill provides an evidence-based forensic methodology that flags findings with confidence scores while preserving chain of custody. ## Core Features & Use Cases - Provenance Analysis: Extract PDF and image metadata (author, creation dates, EXIF GPS, creator tools) to establish authenticity and detect suspicious indicators like stripped metadata or timestamp inconsistencies. - Anomaly & Redaction Detection: Identify temporal gaps, structural outliers, and blacked-out or white-box redactions using corpus-wide baselines and OpenCV-based detection. - Cross-Document Validation: Compare claims, events, and timelines across documents to surface contradictions and score corroboration from independent sources. - Use Case: Given 847 documents from a FOIA release, run the full 8-step investigative workflow to produce a forensic report listing high-confidence findings, contradictions citing specific pages, and redaction summaries. ## Quick Start Analyze the documents in this folder for provenance anomalies, redactions, and contradictions, then produce a forensic report with confidence-scored findings.

Frequently Asked Questions about document-forensics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect redactions in PDF documents?▼

Detect visual redactions by converting PDF pages to images and using OpenCV to find large dark rectangular regions with width-to-height ratios above 2. White-box redactions are harder; look for unusual whitespace gaps and compare character spacing against the document average.

How to extract PDF metadata for provenance analysis?▼

Extract PDF metadata using pdfplumber in Python or the exiftool command-line utility. Key fields include author, creator tool, creation and modification dates, producer, and PDF version, which together reveal authenticity and suspicious indicators.

What metadata anomalies indicate a suspicious document?▼

Suspicious indicators include creation dates after the date stated in the text, creator tools inconsistent with the document type, stripped metadata in a batch where others retain it, and modification dates clustered near disclosure deadlines. Flag these as anomalies rather than conclusions, since innocent explanations may exist.

Can document forensics replace human investigative judgment?▼

No, automated forensic analysis produces findings, not conclusions. The workflow automates inventory, provenance, timeline, anomaly, redaction, and validation steps, but the final narrative synthesis explicitly requires human judgment and must be clearly separated from automated findings.

When should I not use forensic document analysis?▼

Avoid forensic analysis for known-clean internal documents with no investigative purpose, since the overhead is unnecessary for trusted content. Also use dedicated NER or entity-resolution tools for text-level entity extraction, as forensics operates at the provenance and structure level.