sqlite-db-truncate
Installation
SKILL.md
SQLite Truncated Database Recovery
This skill provides systematic approaches for recovering data from SQLite database files that have been corrupted through binary truncation. It emphasizes understanding the SQLite file format before attempting recovery and avoiding common pitfalls that lead to multiple failed iterations.
When to Use This Skill
This skill applies when:
- A SQLite database file cannot be opened with standard
sqlite3commands - The database error indicates corruption or malformed data
- File size is smaller than expected (suggesting truncation)
- Standard recovery tools like
.recovercommand fail - Manual binary parsing of SQLite page structure is required
Initial Assessment Strategy
Before writing any recovery code, perform a thorough analysis of the corrupted file: