- Home
- Skills
- Data & Databases
- Database CDC Gap Examiner AI
Works with the AI Agents you already use
Database CDC Gap Examiner AI
Reconcile change offsets and missing records during replication. Returns a reconciliation ledger with source-linked
$9.99
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 Key | Target Key | Expected State | Observed State | Match Status | Exception Owner |
|---|---|---|---|---|---|
| ORD-9928 | NULL | COMMIT | MISSING | GAP | Data-Eng-Oncall |
| ORD-9929 | NULL | COMMIT | MISSING | GAP | Data-Eng-Oncall |
| ORD-9930 | NULL | COMMIT | MISSING | GAP | Data-Eng-Oncall |
| ORD-9931 | NULL | COMMIT | MISSING | GAP | Data-Eng-Oncall |
Analysis & Evidence
- Source Register:
source_binlog_export.csv(Version: 2023-10-27 14:00 UTC). - Invariants: Primary Key
order_idmust 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 reachedEOFbefore 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
- Verify the
ORD-9928toORD-9931range does not exist on target via a manualSELECT. - Apply the recovery SQL in the staging environment to test constraint triggers.
- Update the replication pointer to offset
45092after confirming data parity.
source_binlog_export.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.
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
- Supply the affected replication item, transaction traces, and source/target record samples.
- The agent normalizes fields and establishes data semantics to build a source-counterpart index.
- The system validates uniqueness and match keys to perform a structured gap analysis.
- 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
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 7 days ago
Permissions
What's inside
Frequently Asked Questions
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.