Data Integrity Audit

Read-only SQLite integrity audit — opens mode=ro, never writes. Three checks: PRAGMA integrity_check, PRAGMA foreign_key_check, and explicit orphan detection counting child rows whose FK value has no parent (catches inserts made with enforcement OFF). Per-check PASS/FAIL with counts + first 5 rowids; exit 1 on any failure. Use when: "audit the database", "check DB integrity", "find orphaned rows", "is the SQLite file corrupt". Zero deps.

Evan-Daruwalla 219a6e6 2 files · 26.4 KB Updated

File contents

Evan-Daruwalla/claude-skill-suite/tree/main/data-integrity-audit commit 219a6e681c

Frequently asked questions

npx skillmds@latest add evan-daruwalla/data-integrity-audit