---
name: "debezium-cdc-change-data-capture"
description: "Capture row-level database changes from PostgreSQL/MySQL into Kafka topics in real time."
metadata:
  author: "Debezium"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "configure debezium postgres connector"
  - "setup debezium cdc kafka"
  - "implement outbox pattern cdc"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Debezium CDC Database Replication to Kafka

Deploys Debezium Kafka Connect connectors: configuring PostgreSQL logical replication (pgoutput), MySQL binlog capture, schema evolution tracking, message tombstone handling, and outbox pattern events.

## When to Invoke
Invoke this skill whenever you need to:
- configure debezium postgres connector
- setup debezium cdc kafka
- implement outbox pattern cdc

## Execution SOP & Rules
1. Set wal_level = logical, max_wal_senders = 10, and max_replication_slots = 10 in postgresql.conf.
2. Post connector configuration to Kafka Connect REST API: POST /connectors with connector.class.
3. Configure plugin.name = 'pgoutput' and publication.autocreate.mode = 'filtered'.
4. Verify connector task status via GET /connectors/{name}/status and observe topic partition offsets.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
