More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair Export Snapshot Drift

    1

    Repair long-running exports that produce missing, duplicate, mixed-version, or inconsistent rows when source data changes mid-run.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Export Snapshot Drift

    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
    Added atomic rename from .tmp to .csv

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files

    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.

    Listed3 months ago
    Updated8 days ago

    What's inside

    Frequently Asked Questions

    This skill resolves 'snapshot drift' where data changes during a long-running export, ensuring you don't end up with duplicate rows, missing records, or totals that don't match the source data.

    The skill is framework-agnostic and integrates with any AI agent or backend system using SQL/NoSQL databases, ORMs, and cloud storage like Amazon S3 or Google Cloud Storage.

    You receive a production-ready logic package including the 17-step verification protocol, implementation blueprints for resumable checkpoints, and templates for atomic file finalization.

    Yes, it is specifically designed to implement idempotent retries and stable pagination, allowing your agent to resume large exports exactly where they left off after a timeout or crash.

    While it automates the repair of export logic, you must ensure your database's MVCC or snapshot retention settings are configured to support the duration of your longest export jobs.

    This skill is maintained to support the latest standards in data integrity and cloud storage APIs; customers receive notifications through the marketplace whenever optimization updates are released.

    New in Data & Databases