Note: Bundled scripts ship as Markdown reference (.md) — copy the code out of the .md file to run it.
Senior Data Engineer
Production-grade data engineering skill for building scalable, reliable data systems.
Table of Contents
- Trigger Phrases
- Quick Start
- Workflows
- Architecture Decision Framework
- Tech Stack
- Reference Documentation
- Troubleshooting
Trigger Phrases
Activate this skill when you see:
Pipeline Design:
- "Design a data pipeline for..."
- "Build an ETL/ELT process..."
- "How should I ingest data from..."
- "Set up data extraction from..."
Architecture:
- "Should I use batch or streaming?"
- "Lambda vs Kappa architecture"
- "How to handle late-arriving data"
- "Design a data lakehouse"
Data Modeling:
- "Create a dimensional model..."
- "Star schema vs snowflake"
- "Implement slowly changing dimensions"
- "Design a data vault"
Data Quality:
- "Add data validation to..."
- "Set up data quality checks"
- "Monitor data freshness"
- "Implement data contracts"
Performance:
- "Optimize this Spark job"
- "Query is running slow"
- "Reduce pipeline execution time"
- "Tune Airflow DAG"
Quick Start
Core Tools
# Generate pipeline orchestration config
python scripts/pipeline_orchestrator.py generate \
--type airflow \
--source postgres \
--destination snowflake \
--schedule "0 5 * * *"
# Validate data quality
python scripts/data_quality_validator.py validate \
--input data/sales.parquet \
--schema schemas/sales.json \
--checks freshness,completeness,uniqueness
# Optimize ETL performance
python scripts/etl_performance_optimizer.py analyze \
--query queries/daily_aggregation.sql \
--engine spark \
--recommend
Workflows
→ See references/workflows.md for details
Architecture Decision Framework
Use this framework to choose the right approach for your data pipeline.
Batch vs Streaming
| Criteria |
Batch |
Streaming |
| Latency requirement |
Hours to days |
Seconds to minutes |
| Data volume |
Large historical datasets |
Continuous event streams |
| Processing complexity |
Complex transformations, ML |
Simple aggregations, filtering |
| Cost sensitivity |
More cost-effective |
Higher infrastructure cost |
| Error handling |
Easier to reprocess |
Requires careful design |
Decision Tree:
Is real-time insight required?
├── Yes → Use streaming
│ └── Is exactly-once semantics needed?
│ ├── Yes → Kafka + Flink/Spark Structured Streaming
│ └── No → Kafka + consumer groups
└── No → Use batch
└── Is data volume > 1TB daily?
├── Yes → Spark/Databricks
└── No → dbt + warehouse compute
Lambda vs Kappa Architecture
| Aspect |
Lambda |
Kappa |
| Complexity |
Two codebases (batch + stream) |
Single codebase |
| Maintenance |
Higher (sync batch/stream logic) |
Lower |
| Reprocessing |
Native batch layer |
Replay from source |
| Use case |
ML training + real-time serving |
Pure event-driven |
When to choose Lambda:
- Need to train ML models on historical data
- Complex batch transformations not feasible in streaming
- Existing batch infrastructure
When to choose Kappa:
- Event-sourced architecture
- All processing can be expressed as stream operations
- Starting fresh without legacy systems
Data Warehouse vs Data Lakehouse
| Feature |
Warehouse (Snowflake/BigQuery) |
Lakehouse (Delta/Iceberg) |
| Best for |
BI, SQL analytics |
ML, unstructured data |
| Storage cost |
Higher (proprietary format) |
Lower (open formats) |
| Flexibility |
Schema-on-write |
Schema-on-read |
| Performance |
Excellent for SQL |
Good, improving |
| Ecosystem |
Mature BI tools |
Growing ML tooling |
Tech Stack
| Category |
Technologies |
| Languages |
Python, SQL, Scala |
| Orchestration |
Airflow, Prefect, Dagster |
| Transformation |
dbt, Spark, Flink |
| Streaming |
Kafka, Kinesis, Pub/Sub |
| Storage |
S3, GCS, Delta Lake, Iceberg |
| Warehouses |
Snowflake, BigQuery, Redshift, Databricks |
| Quality |
Great Expectations, dbt tests, Monte Carlo |
| Monitoring |
Prometheus, Grafana, Datadog |
Reference Documentation
1. Data Pipeline Architecture
See references/data_pipeline_architecture.md for:
- Lambda vs Kappa architecture patterns
- Batch processing with Spark and Airflow
- Stream processing with Kafka and Flink
- Exactly-once semantics implementation
- Error handling and dead letter queues
2. Data Modeling Patterns
See references/data_modeling_patterns.md for:
- Dimensional modeling (Star/Snowflake)
- Slowly Changing Dimensions (SCD Types 1-6)
- Data Vault modeling
- dbt best practices
- Partitioning and clustering
3. DataOps Best Practices
See references/dataops_best_practices.md for:
- Data testing frameworks
- Data contracts and schema validation
- CI/CD for data pipelines
- Observability and lineage
- Incident response
Troubleshooting
→ See references/troubleshooting.md for details
1---2name: senior-data-engineer3description: Data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when designing data architectures, building data pipelines, optimizing data workflows, implementing data governance, or troubleshooting data issues.4---56> **Note:** Bundled scripts ship as Markdown reference (`.md`) — copy the code out of the `.md` file to run it.78# Senior Data Engineer910Production-grade data engineering skill for building scalable, reliable data systems.1112## Table of Contents13141. [Trigger Phrases](#trigger-phrases)152. [Quick Start](#quick-start)163. [Workflows](#workflows)17 - [Building a Batch ETL Pipeline](#workflow-1-building-a-batch-etl-pipeline)18 - [Implementing Real-Time Streaming](#workflow-2-implementing-real-time-streaming)19 - [Data Quality Framework Setup](#workflow-3-data-quality-framework-setup)204. [Architecture Decision Framework](#architecture-decision-framework)215. [Tech Stack](#tech-stack)226. [Reference Documentation](#reference-documentation)237. [Troubleshooting](#troubleshooting)2425---2627## Trigger Phrases2829Activate this skill when you see:3031**Pipeline Design:**3233- "Design a data pipeline for..."34- "Build an ETL/ELT process..."35- "How should I ingest data from..."36- "Set up data extraction from..."3738**Architecture:**3940- "Should I use batch or streaming?"41- "Lambda vs Kappa architecture"42- "How to handle late-arriving data"43- "Design a data lakehouse"4445**Data Modeling:**4647- "Create a dimensional model..."48- "Star schema vs snowflake"49- "Implement slowly changing dimensions"50- "Design a data vault"5152**Data Quality:**5354- "Add data validation to..."55- "Set up data quality checks"56- "Monitor data freshness"57- "Implement data contracts"5859**Performance:**6061- "Optimize this Spark job"62- "Query is running slow"63- "Reduce pipeline execution time"64- "Tune Airflow DAG"6566---6768## Quick Start6970### Core Tools7172```bash73# Generate pipeline orchestration config74python scripts/pipeline_orchestrator.py generate \75 --type airflow \76 --source postgres \77 --destination snowflake \78 --schedule "0 5 * * *"7980# Validate data quality81python scripts/data_quality_validator.py validate \82 --input data/sales.parquet \83 --schema schemas/sales.json \84 --checks freshness,completeness,uniqueness8586# Optimize ETL performance87python scripts/etl_performance_optimizer.py analyze \88 --query queries/daily_aggregation.sql \89 --engine spark \90 --recommend91```9293---9495## Workflows9697→ See references/workflows.md for details9899## Architecture Decision Framework100101Use this framework to choose the right approach for your data pipeline.102103### Batch vs Streaming104105| Criteria | Batch | Streaming |106| ------------------------- | --------------------------- | ------------------------------ |107| **Latency requirement** | Hours to days | Seconds to minutes |108| **Data volume** | Large historical datasets | Continuous event streams |109| **Processing complexity** | Complex transformations, ML | Simple aggregations, filtering |110| **Cost sensitivity** | More cost-effective | Higher infrastructure cost |111| **Error handling** | Easier to reprocess | Requires careful design |112113**Decision Tree:**114115```116Is real-time insight required?117├── Yes → Use streaming118│ └── Is exactly-once semantics needed?119│ ├── Yes → Kafka + Flink/Spark Structured Streaming120│ └── No → Kafka + consumer groups121└── No → Use batch122 └── Is data volume > 1TB daily?123 ├── Yes → Spark/Databricks124 └── No → dbt + warehouse compute125```126127### Lambda vs Kappa Architecture128129| Aspect | Lambda | Kappa |130| ---------------- | -------------------------------- | ------------------ |131| **Complexity** | Two codebases (batch + stream) | Single codebase |132| **Maintenance** | Higher (sync batch/stream logic) | Lower |133| **Reprocessing** | Native batch layer | Replay from source |134| **Use case** | ML training + real-time serving | Pure event-driven |135136**When to choose Lambda:**137138- Need to train ML models on historical data139- Complex batch transformations not feasible in streaming140- Existing batch infrastructure141142**When to choose Kappa:**143144- Event-sourced architecture145- All processing can be expressed as stream operations146- Starting fresh without legacy systems147148### Data Warehouse vs Data Lakehouse149150| Feature | Warehouse (Snowflake/BigQuery) | Lakehouse (Delta/Iceberg) |151| ---------------- | ------------------------------ | ------------------------- |152| **Best for** | BI, SQL analytics | ML, unstructured data |153| **Storage cost** | Higher (proprietary format) | Lower (open formats) |154| **Flexibility** | Schema-on-write | Schema-on-read |155| **Performance** | Excellent for SQL | Good, improving |156| **Ecosystem** | Mature BI tools | Growing ML tooling |157158---159160## Tech Stack161162| Category | Technologies |163| ------------------ | ------------------------------------------ |164| **Languages** | Python, SQL, Scala |165| **Orchestration** | Airflow, Prefect, Dagster |166| **Transformation** | dbt, Spark, Flink |167| **Streaming** | Kafka, Kinesis, Pub/Sub |168| **Storage** | S3, GCS, Delta Lake, Iceberg |169| **Warehouses** | Snowflake, BigQuery, Redshift, Databricks |170| **Quality** | Great Expectations, dbt tests, Monte Carlo |171| **Monitoring** | Prometheus, Grafana, Datadog |172173---174175## Reference Documentation176177### 1. Data Pipeline Architecture178179See `references/data_pipeline_architecture.md` for:180181- Lambda vs Kappa architecture patterns182- Batch processing with Spark and Airflow183- Stream processing with Kafka and Flink184- Exactly-once semantics implementation185- Error handling and dead letter queues186187### 2. Data Modeling Patterns188189See `references/data_modeling_patterns.md` for:190191- Dimensional modeling (Star/Snowflake)192- Slowly Changing Dimensions (SCD Types 1-6)193- Data Vault modeling194- dbt best practices195- Partitioning and clustering196197### 3. DataOps Best Practices198199See `references/dataops_best_practices.md` for:200201- Data testing frameworks202- Data contracts and schema validation203- CI/CD for data pipelines204- Observability and lineage205- Incident response206207---208209## Troubleshooting210211→ See references/troubleshooting.md for details