Build data pipeline

From FerroxLabs/murage · View interactive version

Build data pipeline is an AI agent skill from the GitHub repository FerroxLabs/murage. Complete workflow for building a production-grade data pipeline from source identification through ingestion, transformation, warehousing, and dashboarding. Covers batch and streaming patterns, data quality, orchestration, and the modern data stack approach to analytics infrastructure. Use when the

How to use this skill

Skill file

Build Data Pipeline

Estimated time: 4-8 weeks

A data pipeline is the circulatory system of a data-driven organization -- it moves data from where it is generated to where it creates value. This workflow covers the full modern data stack: extracting data from operational systems, loading it into a warehouse, transforming it with dbt, validating quality, and surfacing insights through dashboards. It supports both batch and streaming patterns and prioritizes reliability, observability, and incremental delivery.

The workflow follows the ELT (Extract-Load-Transform) pattern that dominates modern data engineering: load raw data into the warehouse first, then transform it using SQL-based tools like dbt. This approach leverages the warehouse's compute power and keeps transformations version-controlled and testable.

When to Use

Prerequisites

Before starting this workflow, ensure:

Steps

Step 1: Identify Data Sources and Requirements (uses: analytics-engineer)

work backwards from business questions to data requirements. For each question (e.g., "What is our monthly revenue by product?"), identify the source systems, relevant tables/APIs, update frequency, and data volume. Document data freshness requirements: some metrics need real-time streaming, others are fine with daily batch updates. Create a source catalog that maps every data source to its connection method, volume, and quality expectations.

Step 2: Design the Data Architecture (uses: data-lakehouse-architect)

choose the architecture pattern: pure data warehouse (Snowflake, BigQuery), data lakehouse (Databricks, Iceberg), or hybrid. Use the Data Modeler skill to design the data model using the medallion architecture: bronze (raw data), silver (cleaned and conformed), gold (business-ready aggregates). Design the dimensional model for the gold layer using star schemas for common analytical patterns.

Step 3: Build the Ingestion Layer (uses: etl-architect)

design extraction patterns for each source. For databases, use Change Data Capture (CDC) or incremental extraction with high-water marks. For APIs, build paginated extractors with rate limit handling. For event streams, use a message broker. Use the Data Pipeline Orchestrator skill to set up Airflow (or Dagster/Prefect) to orchestrate ingestion jobs with proper scheduling, retries, and failure notifications. Load raw data into the bronze layer without transformation -- preserve the source truth.

Step 4: Build the Transformation Layer (uses: dbt-engineer)

build the transformation layer. Create dbt models in three layers: staging (one model per source table, rename and cast columns), intermediate (business logic joins and calculations), and marts (final dimensional models for consumption). Use the SQL Master skill to write performant SQL for complex transformations (window functions, CTEs, incremental materializations). Implement dbt tests for data quality: unique, not_null, accepted_values, and custom relationship tests.

Step 5: Implement Data Quality (uses: data-validator)

implement comprehensive data quality checks beyond basic dbt tests. Add volume checks (row count anomaly detection), freshness checks (data arrived on time), distribution checks (statistical bounds on key metrics), and referential integrity checks (foreign keys resolve). Implement data contracts between producers and consumers. Set up quality scoring so stakeholders can see confidence levels alongside metrics.

Step 6: Build Dashboards and Analytics (uses: analytics-engineer)

build dashboards that answer the business questions identified in Step 1. Design dashboards with progressive disclosure: executive summary at the top, drill-down details below. Define a semantic/metrics layer that provides consistent definitions for key metrics (revenue, churn, DAU). Build self-service analytics views so analysts can explore data without engineering support. Document every metric with its definition, calculation logic, and data source.

Step 7: Implement Monitoring and Alerting (uses: monitoring-engineer)

build pipeline monitoring. Track job execution times, success/failure rates, data volumes, and freshness. Use the Data Pipeline Orchestrator skill to configure Airflow alerting on task failures, SLA misses, and quality check failures. Build an operational dashboard showing pipeline health at a glance. Create runbooks for common failure scenarios (source unavailable, schema change, volume spike).

Decision Points

Failure Handling

Expected Outcome

When this workflow is complete, the user will have:

  1. Pipeline delivers data within freshness SLAs (e.g., daily data available by 7am)
  2. Data quality score exceeds 95% across all quality dimensions
  3. Dashboards answer the business questions identified in Step 1
  4. Self-service analytics reduces ad-hoc data request volume by 50%+
  5. Pipeline failures are detected and resolved within the SLA
  6. Warehouse costs are predictable and within budget

Output Format

BUILD DATA PIPELINE TRACKER
===========================

[ ] Step 1: Identify Data Sources and Requirements
    Status: [pending/in-progress/complete]
[ ] Step 2: Design the Data Architecture
    Status: [pending/in-progress/complete]
[ ] Step 3: Build the Ingestion Layer
    Status: [pending/in-progress/complete]
[ ] Step 4: Build the Transformation Layer
    Status: [pending/in-progress/complete]
[ ] Step 5: Implement Data Quality
    Status: [pending/in-progress/complete]
[ ] Step 6: Build Dashboards and Analytics
    Status: [pending/in-progress/complete]
[ ] Step 7: Implement Monitoring and Alerting
    Status: [pending/in-progress/complete]

Timeline: ______ weeks
Overall Status: [IN PROGRESS / COMPLETE]

Adaptation notes:

Edge Cases

Example

Input: "I want to build data pipeline and need a structured plan to follow step by step."

Output:

Step 1 (analytics-engineer): Identify Data Sources and Requirements -- produces concrete deliverables for this phase.

Step 2 (data-lakehouse-architect-data-modeler): Design the Data Architecture -- produces concrete deliverables for this phase.

Step 3 (etl-architect-data-pipeline-orchestrator): Build the Ingestion Layer -- produces concrete deliverables for this phase.

Step 4 (dbt-engineer-sql-master): Build the Transformation Layer -- produces concrete deliverables for this phase.

Step 5 (data-validator): Implement Data Quality -- produces concrete deliverables for this phase.

Step 6 (analytics-engineer): Build Dashboards and Analytics -- produces concrete deliverables for this phase.

Step 7 (monitoring-engineer-data-pipeline-orchestrator): Implement Monitoring and Alerting -- produces concrete deliverables for this phase.

Result: User has a complete build data pipeline plan with all deliverables produced, validated, and ready for implementation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.