agentleFS
NikoxkxNikoxkx/Agent-Skills/skills/data-analytics/data-pipeline-builder/SKILL.md

data-pipeline-builder

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Designs and implements ETL/ELT data pipelines with error handling, retries, and monitoring. Use when moving data between systems or building a data warehouse ingestion process.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use natural keys + upsert (MERGE, INSERT ...

    line 44
  2. Distinctive:

    Late-arriving data: Use watermark + reprocessing window.

    line 75
  3. Distinctive:

    Run the pipeline end-to-end on a small dataset.

    line 81
  4. Distinctive:

    Check that re-running the pipeline with the same source data produces identical results (idempotent).

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Designs and implements reliable ETL or ELT data pipelines. Covers the decision between ETL vs ELT, pipeline stages (extract, validate, transform, load, notify), idempotency patterns, dead-letter queues, orchestration with Apache Airflow or dbt, error handling and retries, and monitoring/ alerting for data freshness and quality.

When to Use This Skill

  • Ingesting data from APIs, databases, files, or streams into a warehouse or another system.
  • Building or refactoring data movement processes.
  • The user mentions "data pipeline", "ETL", "ELT", "ingest", "Airflow DAG", or "dbt model".

Prerequisites

  • Source and destination systems identified.
  • Orchestrator (Airflow, Dagster, Prefect, or dbt + cron) or simple cron + scripts.
  • Access to credentials for sources and destinations.
  • Understanding of data volume and freshness requirements.

Steps

  1. ETL vs ELT decision:
    • ETL: transform before load (smaller data, complex transforms, regulatory reasons).
    • ELT: load raw, transform in warehouse (modern, scalable, dbt-friendly).
  2. Pipeline stages (template):
    • Extract: pull from source (API pagination, DB query, file download).
    • Validate: schema, nulls, duplicates, business rules (great expectations or custom).
    • Transform: clean, join, aggregate, enrich.
    • Load: idempotent upsert or append.
    • Notify / quality checks: freshness, row counts, anomaly detection.
  3. Idempotency:
    • Use natural keys + upsert (MERGE, INSERT ... ON CONFLICT).
    • Watermark / high-water mark for incremental loads.
    • Deduplication keys.
  4. Error handling & retries:
    • Dead-letter queue or "quarantine" table for bad rows.
    • Retry with exponential backoff + jitter (for transient API/DB errors).
    • Alert on persistent failures.
  5. Orchestration:
    • Airflow DAG structure (tasks, dependencies, sensors, SLAs).
    • dbt: models, tests, snapshots, macros for incremental logic.
  6. Monitoring:
    • Data freshness (last successful run time).
    • Volume anomalies.
    • Schema drift detection.
  7. Output:
    • Pipeline architecture diagram (Mermaid or text).
    • Sample code for extract/validate/load (Python or SQL).
    • Airflow DAG example or dbt project structure.
    • Dead-letter and retry patterns.
    • Alerting rules.

Examples

A complete incremental ELT pipeline from a REST API (e.g., Stripe or Shopify) into BigQuery or Postgres using Python + dbt, with idempotent load, data quality tests, and an Airflow DAG wrapper is included.

Edge Cases & Error Handling

  • Late-arriving data: Use watermark + reprocessing window.
  • Schema changes in source: Schema evolution strategy (add columns as nullable, alert on breaking changes).
  • Large backfills: Separate backfill jobs with different resource allocation.

Verification

  1. Run the pipeline end-to-end on a small dataset.
  2. Simulate a transient failure — retries succeed.
  3. Simulate bad data — it goes to dead-letter, pipeline continues, alert fires.
  4. Check that re-running the pipeline with the same source data produces identical results (idempotent).
  5. Data freshness dashboard shows the expected last run time.
  6. Success: Data arrives reliably, errors are isolated, and the pipeline can be re-run safely.

References

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.