- Home
- Skills
- Data & Databases
- Repair Export Snapshot Drift
Works with the AI tools you already use
Repair Export Snapshot Drift
Repair long-running exports that produce missing, duplicate, mixed-version, or inconsistent rows when source data changes mid-run.
$8.99
Repair Export Snapshot Drift
Example session with this skill installed
Our CSV export is missing rows when users add data during the run, and retrying after a worker crash creates duplicate entries. Repair the export logic in our Node.js worker.
- Read your context and instructions
- Compiled the repair export snapshot
- Generated the data export
Project Detected: Node.js / PostgreSQL / Redis Queue / CSV
Snapshot Contract
- Snapshot type: High-water mark
- Snapshot boundary: MAX(created_at) at job start
- Source ordering: created_at ASC, id ASC
- Mutation behavior: Exclude rows after boundary
Repair Applied
- Snapshot and source query: Added sequence-based high-water mark
- Ordering and chunk traversal: Replaced offset with keyset pagination
- Checkpoint and resume: Implemented idempotent chunk writes with state persistence
- File finalization: Added atomic rename from .tmp to .csv after checksum verification
repair-export-snapshot-drift.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Large data exports often drift when source records change during generation. This leads to missing rows, duplicates in resumed jobs, and reports where totals don't match the exported records.
What it does
- Detects and repairs mixed snapshots and unstable pagination in long-running export workflows.
- Establishes deterministic export contracts using stable snapshot boundaries and immutable ordering.
- Implements resumable checkpoints and idempotent retries to handle worker crashes without data corruption.
- Enforces atomic file finalization to prevent partial or corrupted downloads from being exposed to users.
- Verifies integrity through row count, checksum, and aggregate total validation.
Frameworks & tools
Works with any database (SQL/NoSQL), ORM, or queue system. Supports CSV, XLSX, JSONL, and multi-file archives. Compatible with object storage providers like S3 for multipart uploads.
Why this beats prompting it yourself
Hand-writing consistent export logic requires complex handling of database transaction limits and race conditions. This skill provides a rigorous 17-step verification process that covers edge cases like concurrent mutations and cross-tenant isolation that simple prompts miss.
Use cases
- Repairing financial reports where totals must match a frozen point-in-time snapshot.
- Fixing broken CSV exports that skip records due to offset drift.
- Implementing safe resume logic for multi-gigabyte exports that frequently time out.
- Ensuring legal and audit logs remain immutable and complete across distributed workers.
Known limitations
Does not automatically apply migrations to production. Database-specific snapshot limitations (like MVCC retention) must be reviewed for extremely long-running jobs.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 1 month ago
- Passed all security checks, Safe to install