Internal Safety Override
- Status: local-only unless explicitly opted into external access.
- Before using network tools, account connectors, browser automation, or APIs, state the destination, data scope, and credential source.
- Do not transmit repository files, secrets, credentials, or private documents by default.
- Audit categories: network, secrets.
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## Internal Safety Override78- Status: local-only unless explicitly opted into external access.9- Before using network tools, account connectors, browser automation, or APIs, state the destination, data scope, and credential source.10- Do not transmit repository files, secrets, credentials, or private documents by default.11- Audit categories: network, secrets.1213# Senior Data Engineer1415Production-grade data engineering skill for building scalable, reliable data systems.1617## Table of Contents18191. [Trigger Phrases](#trigger-phrases)202. [Quick Start](#quick-start)213. [Workflows](#workflows)22 - [Building a Batch ETL Pipeline](#workflow-1-building-a-batch-etl-pipeline)23 - [Implementing Real-Time Streaming](#workflow-2-implementing-real-time-streaming)24 - [Data Quality Framework Setup](#workflow-3-data-quality-framework-setup)254. [Architecture Decision Framework](#architecture-decision-framework)265. [Tech Stack](#tech-stack)276. [Reference Documentation](#reference-documentation)287. [Troubleshooting](#troubleshooting)2930---3132## Trigger Phrases3334Activate this skill when you see:3536**Pipeline Design:**37- "Design a data pipeline for..."38- "Build an ETL/ELT process..."39- "How should I ingest data from..."40- "Set up data extraction from..."4142**Architecture:**43- "Should I use batch or streaming?"44- "Lambda vs Kappa architecture"45- "How to handle late-arriving data"46- "Design a data lakehouse"4748**Data Modeling:**49- "Create a dimensional model..."50- "Star schema vs snowflake"51- "Implement slowly changing dimensions"52- "Design a data vault"5354**Data Quality:**55- "Add data validation to..."56- "Set up data quality checks"57- "Monitor data freshness"58- "Implement data contracts"5960**Performance:**61- "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## Workflows96→ See references/workflows.md for details9798## Architecture Decision Framework99100Use this framework to choose the right approach for your data pipeline.101102### Batch vs Streaming103104| Criteria | Batch | Streaming |105|----------|-------|-----------|106| **Latency requirement** | Hours to days | Seconds to minutes |107| **Data volume** | Large historical datasets | Continuous event streams |108| **Processing complexity** | Complex transformations, ML | Simple aggregations, filtering |109| **Cost sensitivity** | More cost-effective | Higher infrastructure cost |110| **Error handling** | Easier to reprocess | Requires careful design |111112**Decision Tree:**113```114Is real-time insight required?115├── Yes → Use streaming116│ └── Is exactly-once semantics needed?117│ ├── Yes → Kafka + Flink/Spark Structured Streaming118│ └── No → Kafka + consumer groups119└── No → Use batch120 └── Is data volume > 1TB daily?121 ├── Yes → Spark/Databricks122 └── No → dbt + warehouse compute123```124125### Lambda vs Kappa Architecture126127| Aspect | Lambda | Kappa |128|--------|--------|-------|129| **Complexity** | Two codebases (batch + stream) | Single codebase |130| **Maintenance** | Higher (sync batch/stream logic) | Lower |131| **Reprocessing** | Native batch layer | Replay from source |132| **Use case** | ML training + real-time serving | Pure event-driven |133134**When to choose Lambda:**135- Need to train ML models on historical data136- Complex batch transformations not feasible in streaming137- Existing batch infrastructure138139**When to choose Kappa:**140- Event-sourced architecture141- All processing can be expressed as stream operations142- Starting fresh without legacy systems143144### Data Warehouse vs Data Lakehouse145146| Feature | Warehouse (Snowflake/BigQuery) | Lakehouse (Delta/Iceberg) |147|---------|-------------------------------|---------------------------|148| **Best for** | BI, SQL analytics | ML, unstructured data |149| **Storage cost** | Higher (proprietary format) | Lower (open formats) |150| **Flexibility** | Schema-on-write | Schema-on-read |151| **Performance** | Excellent for SQL | Good, improving |152| **Ecosystem** | Mature BI tools | Growing ML tooling |153154---155156## Tech Stack157158| Category | Technologies |159|----------|--------------|160| **Languages** | Python, SQL, Scala |161| **Orchestration** | Airflow, Prefect, Dagster |162| **Transformation** | dbt, Spark, Flink |163| **Streaming** | Kafka, Kinesis, Pub/Sub |164| **Storage** | S3, GCS, Delta Lake, Iceberg |165| **Warehouses** | Snowflake, BigQuery, Redshift, Databricks |166| **Quality** | Great Expectations, dbt tests, Monte Carlo |167| **Monitoring** | Prometheus, Grafana, Datadog |168169---170171## Reference Documentation172173### 1. Data Pipeline Architecture174See `references/data_pipeline_architecture.md` for:175- Lambda vs Kappa architecture patterns176- Batch processing with Spark and Airflow177- Stream processing with Kafka and Flink178- Exactly-once semantics implementation179- Error handling and dead letter queues180181### 2. Data Modeling Patterns182See `references/data_modeling_patterns.md` for:183- Dimensional modeling (Star/Snowflake)184- Slowly Changing Dimensions (SCD Types 1-6)185- Data Vault modeling186- dbt best practices187- Partitioning and clustering188189### 3. DataOps Best Practices190See `references/dataops_best_practices.md` for:191- Data testing frameworks192- Data contracts and schema validation193- CI/CD for data pipelines194- Observability and lineage195- Incident response196197---198199## Troubleshooting200→ See references/troubleshooting.md for details201