← Files Data Engineering CopilotARCHIVED FILE

skills/debug-data-pipeline/SKILL.md

1.48 KB · Nov 17, 2026 · 19:02 UTC

↓ Download file

See the change to this file →

---
name: debug-data-pipeline
description: Diagnose failing, duplicated, stale, late or incorrect data pipelines using job logs, sample data and execution evidence.
---


# Diagnose a data pipeline
**Trigger:** Wrong counts, broken job, duplicate rows, missing partitions, delayed data, schema failure, corrupt outputs or incident precursors.

1. Establish the expected data contract and symptom: exact job/run ID or version, expected vs actual counts/grain, source range, change window and downstream impact.
2. Follow the path source capture → parse → transform → join/aggregate → write/merge → downstream. Locate the **first evidenced divergence**.
3. For duplication: check source uniqueness, join cardinality, retries, overlapping windows, MERGE keys, write mode and idempotency. For data loss: filters, late events, watermarks, deletes, rejects and offsets.
4. State **leading hypothesis + confidence + falsifying observation**. If metrics/logs absent, propose a read-only query that discriminates alternatives.
5. Contain narrowly, avoiding destructive retries or reset of production state. Compare a known-good run; preserve logs/config/checkpoints before changes.
6. Suggest the smallest correction and explicit regression checks, reconciliation queries and rollback trigger.

Deliver: symptom, impact, fact/hypothesis boundary, one decisive check, safe containment, permanent fix conditional on results. Read `../../references/incident-and-recovery.md` and `../../references/core-invariants.md`.

SHA-256: 9395ddd0753849ca4de4cff170b5065469662328d481ca34a3ef79c7d0c7ff33