data-ml-pipelines
Ship data and ML pipelines that hold — quality checks, reproducibility, lineage, drift monitoring.
SKILL.mdskills/data-ml-pipelines/SKILL.md
GitHubData & ML Pipelines
Data breaks quietly and models lie politely. Pipelines need the same rigor as code: contracts, tests, versioning, and monitoring — or they rot silently.
When to use
- Ingesting, transforming, or exporting data (batch or stream).
- Training, evaluating, registering, or serving ML models.
- Debugging "the numbers changed" or "the model got worse".
Method
- Contracts at the edges: schemas + expectations for every input/output (types, ranges, nullability); validate on arrival; refuse bad data loudly — never coerce silently.
- Idempotent steps: rerunnable stages; exactly-once effects at sinks (upserts/keys); safe retries; cheap backfills.
- Orchestration: explicit step dependencies; schedules documented; failures alert + retry; no unrecorded "just rerun it" habits.
- Quality gates between stages: row counts, freshness, null/uniqueness/distribution checks; quarantine bad partitions; pipeline-health dashboards.
- Lineage & versioning: source → transform → sink tracked; code + config + data snapshots versioned where it matters; same inputs → same outputs.
- ML — data hygiene: leakage checks (time/target/cross-splits); split by time/user when reality is temporal; class-balance awareness; feature stores only when justified.
- ML — lifecycle: reproducible training (seeds, pinned env); eval suites versioned with the model; registry + model card (data, metrics, limits); deployment pattern (batch vs service) with latency/cost budgets.
- Monitoring & drift: input drift, output drift, performance decay vs baselines; thresholds tied to a retraining policy — retraining is a pipeline, not a heroic weekend.
Quality gates
- Schemas + quality checks active at every boundary.
- Pipelines rerun idempotently; a backfill was tested once.
- Training reproducible; model card + registry entry exist.
- Drift/performance monitoring live with alert thresholds.
Red lines
- No PII in training data without a lawful basis (
privacy-compliance); no silent coercion; no model to prod without offline eval + rollout plan.
Related
backend-engineering · agent-evaluation · sql-engineering.