data-pipeline

Solid

Wire ETL, ingestion, cron, edge-function, and queue jobs correctly. Use for "build a pipeline", "sync X into Y", "nightly aggregation", "cron double-counts", "dedupe", "backfill", "the numbers are wrong after a retry". Bakes in idempotency, atomic writes, data contracts, dead-letter, and observability.

Data & Documents 9 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
33
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Data Pipeline Correctness **Degree of freedom: MIXED.** Layering and window design `[HIGH freedom]`; idempotency, atomic writes, overlap lock, and the DoD `[LOW freedom — run exactly]`. ## How to reason 1. **Observe** — job, retry path, write targets, schedule 2. **Interpret** — at-least-once vs atomic vs contract vs overlap 3. **Classify** — upsert / window-recompute / quarantine / lock / watermark 4. **Severity** — retry double-count outranks a missing metric ## Worked example > **Observe:** nightly `refresh_order_stats` does `count = count + 1`; cron overlapped twice; dashboard totals jumped. > **Interpret:** at-least-once delivery + non-idempotent delta. > **Classify:** recompute-and-replace the day window; `pg_try_advisory_lock`; persist a watermark. > **Verify:** re-run the same window → identical rows; overlap skipped; `pipeline_runs` recorded. ## Self-critique before reporting - **Idempotent** — same-window re-run proven identical, not assumed - **Atomic** — mid-fail leaves no half-written batch - **Locked** — the scheduled job has an overlap guard - **Right owner** — schema/constraints → `audit-db-schema`; post-hoc corruption hunt → `plan-data-integrity` > Pipelines fail silently: a retry double-counts, a partial write corrupts a table, a schema drift poisons a dashboard, and nobody notices until the numbers are wrong. This skill bakes correctness in at build time. It complements post-hoc data-integrity audit skills (which *detect* these after the fact) and...

Details

Author
kensaurus
Repository
kensaurus/cursor-kenji
Created
7 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category