agentleFS
XData-siXData-si/xdata-agenthub/skills/data-pipeline-review/SKILL.md

data-pipeline-review

Skill1 starsChanged 34 days agoMITView on GitHub

Review batch and streaming data pipelines (ETL/ELT, dbt, Airflow, Dagster, Spark) for correctness and operability — idempotent re-runs, incremental logic, late data, schema drift, backfills, lineage and data protection. Use when building or reviewing a data pipeline or investigating wrong or missing numbers in reports.

The file

Files
SKILL.md

Data Pipeline Review

Goal

Pipelines that produce the same result when re-run, handle late and changed data explicitly, and make failures visible before stakeholders see wrong numbers.

Inputs

  • Sources, transformations and targets; orchestration tool; schedules and SLAs; data volumes; consumers (dashboards, ML features, exports); data classification.

Review checklist

  1. Idempotency: re-running a task for the same interval produces the same output (overwrite partitions or merge on keys; no blind appends).
  2. Incremental logic: watermark column and its reliability (updated timestamps, change data capture); late-arriving data handled with a lookback window; deletes in the source propagated.
  3. Schema drift: contracts on source schemas, alerts on new, removed or retyped columns; downstream models fail loudly rather than silently filling nulls.
  4. Backfills: documented procedure, bounded parallelism, isolation from production SLAs, verification of row counts and totals after backfill.
  5. Tests: uniqueness, not-null, accepted values and referential tests on key models (dbt tests or equivalent); reconciliation of totals against the source (see data-quality-checks).
  6. Orchestration: retries with backoff, timeouts, alerts on failure and on SLA misses; tasks small enough to retry cheaply; dependencies explicit.
  7. Lineage and ownership: each table has an owner and a description; lineage known from source to dashboard.
  8. Data protection: personal data minimised and pseudonymised where possible; retention and deletion requests propagate to derived tables; access by role; no production personal data in development environments.

Example fixture

INSERT INTO daily_revenue
SELECT order_date, SUM(amount) FROM orders WHERE order_date = CURRENT_DATE - 1 GROUP BY 1;

Expected findings: re-running duplicates rows (no overwrite or merge); late orders for that date are missed forever; refunds and cancellations not handled.

Acceptance checks

  • A re-run test for one interval yields identical output.
  • Reconciliation against the source for a sample period within the agreed tolerance.
  • Negative case: an injected schema change in a source fails the pipeline with an alert instead of producing nulls.

Output

Findings, revised models or tasks, tests, runbook for backfills and incidents.

Safety

Backfills and deletes on production warehouses need approval and a snapshot or time-travel window. Do not copy personal data into personal sandboxes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.