ardurai/god-skill-suite/god-data-engineering

Claude Code and agent skill by ardurai/god-skill-suite

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

God-level data engineering skill covering the modern data stack, batch and streaming pipeline design, Apache Spark (architecture, transformations, optimization), Apache Flink (stateful stream processing, exactly-once), Apache Airflow (DAG design, operators, sensors, XCom, task dependencies), dbt (data modeling, tests, documentation, incremental models), Kafka as a data backbone, data quality frameworks (Great Expectations, dbt tests, Soda), data lake architectures (Delta Lake, Apache Iceberg, Apache Hudi), data warehousing (Snowflake, BigQuery, Redshift), ELT vs ETL, and DataOps. A backend engineer who understands data pipelines builds better APIs. A DevOps engineer who understands data pipelines builds better infrastructure for them.

Install

npx vskill@latest install ardurai/god-skill-suite/god-data-engineering

SKILL.md

The same SKILL.md was published earlier as ardurai/god-skill-suite/god-data-engineering.

God-Level Data Engineering

Researcher-Warrior Mindset

You do not trust the pipeline because it ran last night. You prove it ran correctly by checking row counts, null rates, referential integrity, and value distributions. You do not assume the schema is stable because it was stable last month. You instrument your pipeline for observability the same way a backend engineer instruments an API. You treat data quality failures as production incidents, because for business decisions, a silent data error is worse than a loud pipeline crash.


Anti-Hallucination Rules

NEVER fabricate:

  • Spark configuration parameter names — verify in spark.apache.org/docs/latest/configuration.html (e.g., spark.sql.shuffle.partitions not spark.shuffle.partitions)
  • Flink operator class names — verify in Flink API docs (e.g., TumblingEventTimeWindows vs TumblingProcessingTimeWindows)
  • Airflow operator names and import paths — these change across versions (e.g., PythonOperator moved from airflow.operators.python_operator to airflow.operators.python in Airflow 2.x)
  • dbt model materialization names — table, view, incremental, ephemeral are real; materialized_view was added later (verify version)
  • Great Expectations suite method names — API changed significantly between v2 and v3; verify version
  • Delta Lake / Iceberg API methods — DeltaTable.forPath() is Java/Scala; Python uses DeltaTable.forPath(spark, path)
  • Kafka Streams vs Flink API confusion — they are entirely different APIs

ALWAYS verify:

  • Airflow TaskFlow API availability (Airflow 2.0+, not 1.x)
  • dbt adapter support — not all materializations are supported on all data warehouses
  • Spark version for features (e.g., Adaptive Query Execution requires Spark 3.0+)
  • Flink exactly-once requires checkpoint backend (RocksDB or FsStateBackend) — verify config key names

1. ELT vs ETL

ETL (Extract, Transform, Load) — traditional:

Source DB → Extract → Transform (external tool) → Load → Data Warehouse
Transforms happen BEFORE data enters the warehouse.
The transformation compute lives outside the warehouse.

ELT (Extract, Load, Transform) — modern cloud era:

Source DB → Extract → Load (raw) → Transform (inside the warehouse) → Marts
Transforms happen AFTER data lands in the warehouse.
The warehouse compute (Snowflake, BigQuery, Redshift) is the transform engine.

Why ELT won in the cloud data warehouse era:

  1. Cloud DWs have virtually unlimited compute-on-demand — transforming inside them is cheap
  2. Raw data is preserved — you can re-transform when requirements change without re-extracting
  3. dbt enables SQL-defined transforms with version control, testing, and documentation
  4. Separation of concerns: data movement (Fivetran, Airbyte, Stitch) vs transformation (dbt)

When ETL still applies:

  • PII/sensitive data that must be masked/tokenized BEFORE reaching the warehouse (compliance)
  • Very large data requiring pre-aggregation to reduce egress costs
  • Real-time streaming where data must be enriched before ingestion (Flink, Kafka Streams)
  • Legacy on-premise systems where warehouse compute cannot reach source data

2. Batch vs Streaming

Batch Processing:
- Process accumulated data on a schedule (hourly, daily)
- High throughput, high latency (results available after batch completes)
- Simpler fault tolerance (reprocess the batch)
- Tools: Spark, dbt, BigQuery scheduled queries, Airflow-orchestrated SQL
Streaming Processing:
- Process data record-by-record or in micro-batches as it arrives
- Low latency (results available within seconds/minutes)
- Complex fault tolerance (state management, exactly-once)
- Tools: Apache Flink, Kafka Streams, Spark Structured Streaming
Micro-batch (Spark Structured Streaming):
- Treats stream as rapid sequence of small batches
- Trigger intervals: every 100ms to minutes
- Latency: typically seconds, not sub-second
- Simpler to reason about than true streaming (still uses Spark batch engine underneath)
True Streaming (Flink):
- Processes each record as it arrives
- Sub-second latency achievable
- Event time semantics, watermarks, complex stateful operators
- Use when: fraud detection, real-time recommendations, alerting

Latency vs Throughput tradeoff:

Batch (daily): 24h latency, maximum throughput (full optimization over full dataset)
Batch (hourly): 1h latency, high throughput
Micro-batch (1 min): 60s latency, moderate throughput (framework overhead)
True streaming: <1s latency, lower throughput per record (stateful overhead)
Choose based on business SLA for data freshness, not engineering preference.

3. Apache Spark

Architecture
Driver Program (SparkContext/SparkSession)
└── Cluster Manager (YARN, Kubernetes, Mesos, Standalone)
└── Executor 1 (JVM process on worker node)
├── Task 1 (thread)
├── Task 2 (thread)
└── ...
└── Executor 2
└── ...
DAG Scheduler: breaks transformations into stages (separated by shuffles)
Task Scheduler: assigns tasks within a stage to executors
RDD vs DataFrame vs Dataset API
RDD (Resilient Distributed Dataset):
- Lowest-level API, full control
- No schema, no optimizer, Scala/Python/Java objects
- Use when: fine-grained control, unstructured data
- Avoid: in new code — no catalyst optimization
DataFrame:
- Distributed table with named columns and schema
- Catalyst optimizer applies (predicate pushdown, join reordering)
- Python/Scala/R/SQL — same execution plan underneath
- Use: for most ETL/ELT/analytics workloads
Dataset (Scala/Java only):
- Type-safe DataFrame, compile-time checks
- Same Catalyst optimization as DataFrame
- Not available in Python (Python is dynamic — PySparkDataFrame is always DataFrame)
Shuffle: The Most Expensive Spark Operation
python
# Operations that cause shuffle (data redistributed across executors):
# groupBy, join (except broadcast join), distinct, repartition,
# orderBy, aggregations across partitions
# Tune shuffle partitions:
# Default: spark.sql.shuffle.partitions = 200 (often too many for small data, too few for large)
spark.conf.set("spark.sql.shuffle.partitions", "400") # tune per job
# Adaptive Query Execution (Spark 3.0+) — automatically tunes at runtime
spark.conf.set("spark.sql.adaptive.enabled", "true")
spark.conf.set("spark.sql.adaptive.coalescePartitions.enabled", "true")
Broadcast Join
python
from pyspark.sql.functions import broadcast
# Broadcast small table to all executors — eliminates shuffle for the join
# Rule of thumb: broadcast tables < 100MB (configurable via spark.sql.autoBroadcastJoinThreshold)
result = large_df.join(broadcast(small_lookup_df), "key_column")
# Force disable auto-broadcast for debugging:
spark.conf.set("spark.sql.autoBroadcastJoinThreshold", "-1")
Avoiding Data Skew
python
# Problem: one partition key has 90% of data → one task takes 90% of job time
# Solution 1: Salting — add random prefix to skewed keys
from pyspark.sql.functions import col, concat, lit, rand, floor
num_salt_buckets = 10
skewed_df = skewed_df.withColumn(
"salted_key",
concat(col("key"), lit("_"), (floor(rand() * num_salt_buckets)).cast("string"))
)
# Then join with exploded version of lookup table
# Solution 2: AQE Skew Join Optimization (Spark 3.0+)
spark.conf.set("spark.sql.adaptive.skewJoin.enabled", "true")
spark.conf.set("spark.sql.adaptive.skewJoin.skewedPartitionFactor", "5")
spark.conf.set("spark.sql.adaptive.skewJoin.skewedPartitionThresholdInBytes", "256MB")
Spark UI Interpretation
Jobs tab: overall job progress, stages per job
Stages tab: tasks per stage, task duration histogram
→ If some tasks take 10x longer than median: DATA SKEW
→ If many tasks take same short time but there are 2000 of them: TOO MANY SMALL PARTITIONS
Storage tab: cached RDDs/DataFrames — check memory fraction
Environment tab: all Spark config values (debug misconfiguration)
SQL tab: physical plan, Catalyst optimizer decisions, stage boundaries

4. Apache Flink

Time Semantics
Event Time: time embedded in the event itself (when it actually happened)
→ Correct: handles late data, out-of-order events
→ Required for: business reporting, fraud detection
→ Cost: must define watermarks, handle late events
Processing Time: time when the event is processed by Flink
→ Simple, no watermarks needed
→ Wrong for: any use case where event order or timing matters
Ingestion Time: time when event entered Flink (deprecated concept, use event time)
Watermarks
java
// Watermark: tells Flink "events with timestamp < T-maxLateness will not arrive"
// Allows triggering windows without waiting forever for late data
// Bounded out-of-orderness watermark (verified Flink 1.14+ API)
WatermarkStrategy.<MyEvent>forBoundedOutOfOrderness(Duration.ofSeconds(10))
.withTimestampAssigner((event, timestamp) -> event.getEventTime())
.withIdleness(Duration.ofMinutes(1)); // handle idle partitions
Windowing
java
// Tumbling windows: fixed-size, non-overlapping
// Window [00:00, 01:00), [01:00, 02:00), ...
stream.window(TumblingEventTimeWindows.of(Time.hours(1)))
// Sliding windows: fixed-size, overlapping by slide interval
// A 1-hour window every 15 minutes
stream.window(SlidingEventTimeWindows.of(Time.hours(1), Time.minutes(15)))
// Session windows: gap-based (closes after inactivity gap)
// Useful for user session analysis
stream.window(EventTimeSessionWindows.withGap(Time.minutes(30)))
Checkpointing for Exactly-Once
yaml
# flink-conf.yaml — verified Flink configuration keys
execution.checkpointing.interval: 60000 # checkpoint every 60 seconds
execution.checkpointing.mode: EXACTLY_ONCE # or AT_LEAST_ONCE
execution.checkpointing.timeout: 120000 # fail checkpoint if takes > 2 min
execution.checkpointing.min-pause: 30000 # min time between checkpoint starts
state.backend: rocksdb # for large state (spills to disk)
# or: hashmap (in-memory, fast, limited by JVM heap)
state.checkpoints.dir: hdfs://namenode:9000/flink/checkpoints
state.savepoints.dir: hdfs://namenode:9000/flink/savepoints

Savepoints vs Checkpoints:

  • Checkpoints: Automatic, for fault recovery — Flink manages lifecycle
  • Savepoints: Manual, for planned upgrades, scaling, job migration — you trigger them
  • flink savepoint <job-id> [savepoint-dir]
  • Restart from savepoint: flink run -s <savepoint-path> my-job.jar

5. Apache Airflow

DAG Design Principles

Idempotency: Running the same DAG run multiple times produces the same result. Achieved by: using execution_date as a partition key, using UPSERT not INSERT, clearing destination before writing.

Atomicity: Each task either fully succeeds or fully fails. Partial writes should be rolled back. Write to staging location first, then swap/rename atomically.

python
# Airflow 2.x DAG — verified syntax with TaskFlow API
from airflow.decorators import dag, task
from airflow.utils.dates import days_ago
from datetime import timedelta
default_args = {
'owner': 'data-engineering',
'retries': 2,
'retry_delay': timedelta(minutes=5),
'retry_exponential_backoff': True,
'email_on_failure': True,
'email': ['de-alerts@company.com'],
}
@dag(
dag_id='daily_revenue_pipeline',
default_args=default_args,
schedule_interval='0 6 * * *', # 6am UTC daily
start_date=days_ago(1),
catchup=False, # IMPORTANT: don't backfill on first run
max_active_runs=1, # prevent concurrent runs
tags=['revenue', 'daily'],
)
def revenue_pipeline():

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ardurai/god-skill-suite/god-data-engineering/badge)](https://verified-skill.com/skills/ardurai/god-skill-suite/god-data-engineering)

Something wrong with this skill or its page? Tell us.