Works with the AI Agents you already use

    Database CDC Gap Examiner AI

    by Pitiko Studio

    1

    Reconcile change offsets and missing records during replication. Returns a reconciliation ledger with source-linked

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Database CDC Gap Examiner AI

    Database CDC Gap Examiner AI

    Example session with this skill installed

    Reconcile the CDC gap for the 'orders' table. Source binlog offset is 45092, target is 45088. I have attached the CSV export of the missing 4 records from the source.

    • Read your context and instructions
    • Compiled the database cdc gap
    • Generated the data export

    Illustrative example using synthetic inputs.

    I have analyzed the provided binlog offsets and source records for the 'orders' table. The reconciliation identifies 4 missing records on the target instance due to an offset lag of 4.

    CDC Reconciliation Ledger

    Source KeyTarget KeyExpected StateObserved StateMatch StatusException Owner
    ORD-9928NULLCOMMITMISSINGGAPData-Eng-Oncall
    ORD-9929NULLCOMMITMISSINGGAPData-Eng-Oncall
    ORD-9930NULLCOMMITMISSINGGAPData-Eng-Oncall
    ORD-9931NULLCOMMITMISSINGGAPData-Eng-Oncall

    Analysis & Evidence

    • Source Register: source_binlog_export.csv (Version: 2023-10-27 14:00 UTC).
    • Invariants: Primary Key order_id must be unique; transaction isolation level set to Read Committed.
    • Boundary Case: Checked for partial writes; no split-transaction signatures found in the 4 missing records.
    • Replication Sequence: The gap starts exactly at offset 45088. Target reached EOF before processing the final batch.

    Proposed Recovery SQL

    -- Reproducible fixture for manual insertion
    INSERT INTO orders (order_id, status, created_at)
    VALUES 
    ('ORD-9928', 'completed', '2023-10-27 13:58:01'),
    ('ORD-9929', 'pending', '2023-10-27 13:58:05'),
    ('ORD-9930', 'completed', '2023-10-27 13:59:12'),
    ('ORD-9931', 'cancelled', '2023-10-27 13:59:45');
    

    Next steps

    1. Verify the ORD-9928 to ORD-9931 range does not exist on target via a manual SELECT.
    2. Apply the recovery SQL in the staging environment to test constraint triggers.
    3. Update the replication pointer to offset 45092 after confirming data parity.

    source_binlog_export.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Database CDC Gap Examiner AI is a specialized tool for database engineers and platform teams who need to resolve discrepancies in data replication. When Change Data Capture (CDC) pipelines fall out of sync, identifying exactly which records are missing or where offsets diverged is a manual, error-prone process. This skill automates the forensic analysis of replication traces and source records to produce a structured reconciliation ledger.

    What it does

    • Offset Reconciliation compares source and target transaction logs to identify specific divergence points.
    • Gap Identification detects missing, extra, or duplicate records across distributed systems by matching stable IDs.
    • Evidence Mapping links every finding to specific source excerpts, transaction traces, or query plans.
    • Exception Logging categorizes discrepancies by match status and assigns ownership for resolution.
    • Fixture Generation creates reproducible SQL fixtures and minimal test cases for debugging replication failures.

    How it works

    1. Supply the affected replication item, transaction traces, and source/target record samples.
    2. The agent normalizes fields and establishes data semantics to build a source-counterpart index.
    3. The system validates uniqueness and match keys to perform a structured gap analysis.
    4. Review the generated reconciliation ledger, which includes matched, missing, and disputed items.

    Frameworks & tools

    Built for database engineering environments handling high-volume CDC pipelines. It utilizes schema versions, transaction logs, and replication metadata. Optional integration with web-based documentation for engine-specific SQL standards and release notes.

    Why this beats prompting it yourself

    Generic prompts often fail to maintain the strict referential integrity required for database audits, leading to "hallucinated" matches. This skill enforces a rigorous reconciliation logic that distinguishes between observed evidence and hypothesized gaps, ensuring every line in the ledger is backed by supplied data.

    Use cases

    • Reconciling change offsets after a replication lag or pipeline failure.
    • Preparing audit-ready reconciliation ledgers for database migrations.
    • Identifying unresolved data evidence during platform-wide sync checks.
    • Generating verification and rollback criteria for replication recovery sequences.

    Known limitations

    Does not execute mutating SQL on production environments or perform live database writes. Requires manual provision of replication traces or record samples as it assumes no direct runtime access to private data.

    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.

    Frequently Asked Questions

    This agent automates the forensic comparison of transaction logs and record samples, producing a structured ledger that identifies missing, duplicate, or misaligned data without the manual effort of writing complex reconciliation scripts.

    The skill is designed for any LLM-powered environment that supports structured file inputs; you simply provide the replication traces and record samples as text or CSV files for the agent to analyze.

    Yes, the agent is engine-agnostic and uses established database semantics to reconcile data across different platforms, making it ideal for verifying migrations between diverse environments like PostgreSQL, MySQL, or SQL Server.

    You receive the specialized reconciliation logic and structured workflow optimized for data integrity, along with templates for generating SQL debugging fixtures and audit-ready reports.

    The agent identifies gaps based on the 'stable IDs' and transaction timestamps provided in your samples; while it cannot 'see' data you don't provide, it will explicitly flag areas where evidence is missing or inconclusive.

    Unlike generic prompts, this skill enforces strict referential integrity and evidence mapping, ensuring that every discrepancy reported is linked to specific transaction traces rather than being a statistical guess.

    New in Data & Databases

    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.