Skip to content
data-pipeline-architect logo

Data Pipeline Architect

data-pipeline-architect

Designs ETL/ELT data pipelines with proper extraction, transformation, and loading patterns, including orchestration, error handling, and data quality validation.

SKILL.md

Full skill instructions

Data Pipeline Architect

This skill provides guidance for designing robust, scalable data pipelines that move data reliably from sources to destinations.

Core Competencies

  • ETL vs ELT: Traditional Extract-Transform-Load vs modern Extract-Load-Transform patterns
  • Orchestration: Airflow, Dagster, Prefect, dbt for workflow management
  • Data Quality: Validation, monitoring, lineage tracking
  • Scalability: Batch vs streaming, partitioning, parallelization

Pipeline Design Process

1. Requirements Analysis

To begin pipeline design, gather:

  • Source systems and data formats (APIs, databases, files, streams)
  • Target destinations (data warehouse, lake, lakehouse)
  • Freshness requirements (real-time, hourly, daily)
  • Data volume and velocity estimates
  • Quality and compliance requirements

2. Architecture Selection

Batch Pipelines - For periodic bulk processing:

  • Schedule-driven (hourly, daily, weekly)
  • Higher latency tolerance
  • Simpler error recovery (re-run entire batch)
  • Tools: Airflow, dbt, Spark

Streaming Pipelines - For real-time requirements:

  • Event-driven processing
  • Sub-second to minute latency
  • Complex state management
  • Tools: Kafka, Flink, Spark Streaming

Hybrid Approaches - Lambda or Kappa architecture:

  • Batch layer for completeness
  • Speed layer for low latency
  • Serving layer for queries

3. ETL vs ELT Decision

ETL (Transform before Load):

  • When target has limited compute
  • When transformation reduces data volume significantly
  • When sensitive data must be masked before landing
  • Legacy data warehouse patterns

ELT (Transform after Load):

  • Modern cloud warehouses with cheap compute
  • When raw data preservation is needed
  • When transformations change frequently
  • dbt-style transformations in warehouse

4. Pipeline Components

Extraction Layer:

  • Full extraction vs incremental (CDC, timestamp-based)
  • API pagination and rate limiting
  • Connection pooling and retry logic
  • Schema detection and drift handling

Transformation Layer:

  • Data cleansing and standardization
  • Business logic application
  • Aggregation and denormalization
  • Type casting and null handling

Loading Layer:

  • Upsert strategies (merge, delete+insert)
  • Partitioning schemes (time, hash, range)
  • Index management
  • Transaction boundaries

5. Error Handling Patterns

┌─────────────────────────────────────────────────────────┐
│                    Pipeline Execution                    │
├─────────────────────────────────────────────────────────┤
│  ┌─────────┐    ┌───────────┐    ┌──────────┐          │
│  │ Extract │───▶│ Transform │───▶│   Load   │          │
│  └────┬────┘    └─────┬─────┘    └────┬─────┘          │
│       │               │               │                 │
│       ▼               ▼               ▼                 │
│  ┌─────────┐    ┌───────────┐    ┌──────────┐          │
│  │  Retry  │    │ Dead Letter│    │ Rollback │          │
│  │ w/​Backoff│   │   Queue   │    │ Checkpoint│          │
│  └─────────┘    └───────────┘    └──────────┘          │
└─────────────────────────────────────────────────────────┘
  • Retry with backoff: Transient failures (network, rate limits)
  • Dead letter queues: Poison messages that can't be processed
  • Checkpointing: Resume from last successful point
  • Idempotency: Safe to re-run without duplicates

6. Data Quality Framework

Implement checks at each stage:

StageCheck TypeExample
ExtractCompletenessRow count matches source
ExtractFreshnessData timestamp within SLA
TransformValidityValues in expected ranges
TransformUniquenessPrimary keys unique
LoadReconciliationTarget matches source totals
LoadIntegrityForeign keys valid

7. Monitoring and Observability

Essential metrics to track:

  • Pipeline duration and trends
  • Row counts at each stage
  • Error rates and types
  • Data freshness (time since last successful run)
  • Resource utilization

Alert on:

  • SLA breaches (data not fresh)
  • Anomalous row counts (±20% from baseline)
  • Schema changes in sources
  • Repeated failures

Common Patterns

Slowly Changing Dimensions (SCD)

  • Type 1: Overwrite (no history)
  • Type 2: Add row with validity dates
  • Type 3: Previous value column
  • Type 4: History table

Incremental Processing

-- Timestamp-based incremental
SELECT * FROM source
WHERE updated_at > {{ last_run_timestamp }}

-- CDC-based (Change Data Capture)
-- Captures inserts, updates, deletes from transaction log

Idempotent Loads

-- Delete + Insert pattern
DELETE FROM target WHERE date_partition = '2024-01-15';
INSERT INTO target SELECT * FROM staging WHERE date_partition = '2024-01-15';

-- Merge/​Upsert pattern
MERGE INTO target t
USING staging s ON t.id = s.id
WHEN MATCHED THEN UPDATE SET ...
WHEN NOT MATCHED THEN INSERT ...

References

  • references/​orchestration-patterns.md - Airflow, Dagster, Prefect patterns
  • references/​data-quality-checks.md - Validation frameworks and rules
  • references/​pipeline-templates.md - Common pipeline architectures

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View