- Home
- Skills
- Data & Databases
- Repair Export Snapshot Drift
More screenshots
Works with the AI Agents 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.
$1
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
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
Connects securely to your tools. The creator never sees your data.
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.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.
Does not auto-apply migrations. High-volume snapshot consistency depends on database MVCC settings. Resume for certain formats like XLSX may require chunk staging.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 months ago
Permissions
Permissions are limited to the active local workspace. They are used to inspect user-supplied or local project files; create or modify bounded local fixes, tests, documentation, or review artifacts; run repository-supported local tests, checks, builds, or parsing commands. The skill package does not require bundled credentials, unrestricted external network access, or automatic production changes.