
Data Engineering
- 25 installs
- 4 repo stars
- Updated January 5, 2026
- pluginagentmarketplace/custom-plugin-ai-data-scientist
data-engineering is a Claude Code skill for ai & agent building.
About
data-engineering is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- data-engineering
- AI & Agent Building
- AI-coding skill
Data Engineering by the numbers
- 25 all-time installs (skills.sh)
- Ranked #9,764 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-ai-data-scientist --skill data-engineeringAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 25 |
|---|---|
| repo stars | ★ 4 |
| Last updated | January 5, 2026 |
| Repository | pluginagentmarketplace/custom-plugin-ai-data-scientist ↗ |
How do I helps with ai & agent building tasks.?
Helps with ai & agent building tasks.
Who is it for?
Best when you're working on ai & agent building and need structured help with data engineering.
Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.
When should I use this skill?
When you need to helps with ai & agent building tasks., or when data-engineering is a claude code skill for ai & agent building.
What you get
Structured output aligned to data-engineering: data-engineering, AI & Agent Building.
Files
Data Engineering
Build scalable data pipelines and infrastructure for big data processing.
Quick Start with Apache Spark
from pyspark.sql import SparkSession
from pyspark.sql.functions import col, avg, sum, count
# Initialize Spark
spark = SparkSession.builder \
.appName("DataProcessing") \
.config("spark.executor.memory", "4g") \
.getOrCreate()
# Read data
df = spark.read.parquet("s3://bucket/data/")
# Transformations (lazy evaluation)
df_clean = df \
.filter(col("value") > 0) \
.groupBy("category") \
.agg(
sum("sales").alias("total_sales"),
avg("price").alias("avg_price"),
count("*").alias("count")
) \
.orderBy(col("total_sales").desc())
# Write results
df_clean.write \
.mode("overwrite") \
.partitionBy("date") \
.parquet("s3://bucket/output/")ETL Pipeline with Apache Airflow
from airflow import DAG
from airflow.operators.python import PythonOperator
from datetime import datetime, timedelta
default_args = {
'owner': 'data-team',
'depends_on_past': False,
'start_date': datetime(2024, 1, 1),
'email_on_failure': True,
'retries': 3,
'retry_delay': timedelta(minutes=5),
}
dag = DAG(
'etl_pipeline',
default_args=default_args,
schedule_interval='@daily',
catchup=False
)
def extract(**context):
# Extract data from source
data = fetch_api_data()
context['task_instance'].xcom_push(key='raw_data', value=data)
def transform(**context):
# Transform data
data = context['task_instance'].xcom_pull(key='raw_data')
cleaned = clean_and_transform(data)
context['task_instance'].xcom_push(key='clean_data', value=cleaned)
def load(**context):
# Load to data warehouse
data = context['task_instance'].xcom_pull(key='clean_data')
load_to_warehouse(data)
extract_task = PythonOperator(
task_id='extract',
python_callable=extract,
dag=dag
)
transform_task = PythonOperator(
task_id='transform',
python_callable=transform,
dag=dag
)
load_task = PythonOperator(
task_id='load',
python_callable=load,
dag=dag
)
extract_task >> transform_task >> load_taskData Warehousing
Star Schema Design
-- Fact Table
CREATE TABLE fact_sales (
sale_id SERIAL PRIMARY KEY,
date_key INT REFERENCES dim_date(date_key),
product_key INT REFERENCES dim_product(product_key),
customer_key INT REFERENCES dim_customer(customer_key),
quantity INT,
revenue DECIMAL(10,2),
cost DECIMAL(10,2)
);
-- Dimension Table
CREATE TABLE dim_product (
product_key INT PRIMARY KEY,
product_id VARCHAR(50),
product_name VARCHAR(200),
category VARCHAR(100),
brand VARCHAR(100)
);Snowflake Data Warehouse
-- Create warehouse
CREATE WAREHOUSE compute_wh
WAREHOUSE_SIZE = 'MEDIUM'
AUTO_SUSPEND = 300
AUTO_RESUME = TRUE;
-- Load data from S3
COPY INTO sales_table
FROM 's3://bucket/data/'
FILE_FORMAT = (TYPE = 'PARQUET')
ON_ERROR = 'CONTINUE';
-- Clustering
ALTER TABLE sales CLUSTER BY (date, region);
-- Time travel
SELECT * FROM sales AT (OFFSET => -3600); -- 1 hour agoBig Data Processing
Spark SQL
# Register as temp view
df.createOrReplaceTempView("sales")
# SQL queries
result = spark.sql("""
SELECT
category,
SUM(sales) as total_sales,
AVG(price) as avg_price
FROM sales
WHERE date >= '2024-01-01'
GROUP BY category
HAVING SUM(sales) > 10000
ORDER BY total_sales DESC
""")
result.show()Spark Optimization
# Cache in memory
df.cache()
# Repartition
df.repartition(200)
# Broadcast small tables
from pyspark.sql.functions import broadcast
result = large_df.join(broadcast(small_df), "key")
# Persist
from pyspark.storagelevel import StorageLevel
df.persist(StorageLevel.MEMORY_AND_DISK)Stream Processing with Kafka
from kafka import KafkaProducer, KafkaConsumer
import json
# Producer
producer = KafkaProducer(
bootstrap_servers=['localhost:9092'],
value_serializer=lambda v: json.dumps(v).encode('utf-8')
)
producer.send('topic-name', {'key': 'value'})
# Consumer
consumer = KafkaConsumer(
'topic-name',
bootstrap_servers=['localhost:9092'],
value_deserializer=lambda m: json.loads(m.decode('utf-8')),
group_id='my-group',
auto_offset_reset='earliest'
)
for message in consumer:
process_message(message.value)Data Quality Validation
import great_expectations as ge
# Load data
df = ge.read_csv('data.csv')
# Define expectations
df.expect_column_values_to_not_be_null('user_id')
df.expect_column_values_to_be_unique('email')
df.expect_column_values_to_be_between('age', 0, 120)
df.expect_column_values_to_match_regex(
'email',
r'^[\w\.-]+@[\w\.-]+\.\w+$'
)
# Validate
results = df.validate()
print(results)Delta Lake (Data Lakehouse)
from delta.tables import DeltaTable
# Write to Delta
df.write.format("delta") \
.mode("overwrite") \
.save("/path/to/delta-table")
# Read from Delta
df = spark.read.format("delta").load("/path/to/delta-table")
# ACID transactions
deltaTable = DeltaTable.forPath(spark, "/path/to/delta-table")
# Upsert (merge)
deltaTable.alias("target") \
.merge(
updates.alias("source"),
"target.id = source.id"
) \
.whenMatchedUpdate(set={"value": "source.value"}) \
.whenNotMatchedInsert(
values={"id": "source.id", "value": "source.value"}
) \
.execute()
# Time travel
df = spark.read.format("delta") \
.option("versionAsOf", 10) \
.load("/path/to/delta-table")Best Practices
1. Incremental processing: Process only new data 2. Idempotency: Same input produces same output 3. Data validation: Check quality at every stage 4. Monitoring: Track pipeline health and performance 5. Error handling: Retry logic, dead letter queues 6. Partitioning: Partition large datasets by date/category 7. Compression: Use Parquet, ORC for storage efficiency
# Data Engineering Pipeline Configuration
# ETL/ELT pipeline definitions for data processing
# Pipeline Metadata
pipeline:
name: "data_processing_pipeline"
version: "1.0.0"
schedule: "0 2 * * *" # Daily at 2 AM
owner: "data-engineering-team"
description: "Main data processing pipeline for analytics"
# Source Configuration
sources:
- name: "postgres_source"
type: "postgresql"
connection:
host: "${DB_HOST}"
port: 5432
database: "production_db"
username: "${DB_USER}"
password: "${DB_PASSWORD}"
tables:
- "users"
- "orders"
- "products"
- name: "s3_raw_data"
type: "s3"
bucket: "raw-data-bucket"
prefix: "daily-exports/"
format: "parquet"
partition_by: ["date"]
- name: "api_source"
type: "rest_api"
endpoint: "https://api.example.com/v1/data"
auth:
type: "bearer"
token: "${API_TOKEN}"
pagination:
type: "cursor"
page_size: 1000
# Transformations
transformations:
- name: "clean_user_data"
type: "sql"
source: "postgres_source"
query: |
SELECT
user_id,
LOWER(TRIM(email)) as email,
COALESCE(name, 'Unknown') as name,
created_at,
DATE_TRUNC('day', created_at) as signup_date
FROM users
WHERE email IS NOT NULL
AND created_at >= '{{ ds }}'
- name: "aggregate_orders"
type: "pyspark"
source: "s3_raw_data"
script: "scripts/aggregate_orders.py"
config:
partition_cols: ["date", "region"]
output_format: "delta"
- name: "join_user_orders"
type: "sql"
dependencies:
- "clean_user_data"
- "aggregate_orders"
query: |
SELECT
u.*,
o.total_orders,
o.total_revenue,
o.avg_order_value
FROM clean_user_data u
LEFT JOIN aggregate_orders o ON u.user_id = o.user_id
# Data Quality Checks
quality_checks:
- name: "null_check_email"
type: "null_check"
table: "clean_user_data"
columns: ["email", "user_id"]
threshold: 0.0 # 0% nulls allowed
- name: "uniqueness_check"
type: "unique"
table: "clean_user_data"
columns: ["user_id"]
- name: "freshness_check"
type: "freshness"
table: "aggregate_orders"
column: "date"
max_age_hours: 24
- name: "row_count_check"
type: "row_count"
table: "join_user_orders"
min_rows: 1000
max_rows: 10000000
- name: "schema_check"
type: "schema"
table: "clean_user_data"
expected_columns:
- name: "user_id"
type: "integer"
nullable: false
- name: "email"
type: "string"
nullable: false
# Destinations
destinations:
- name: "analytics_warehouse"
type: "bigquery"
project: "analytics-project"
dataset: "processed"
table: "user_order_summary"
write_mode: "merge"
partition_field: "signup_date"
cluster_fields: ["region"]
- name: "data_lake"
type: "s3"
bucket: "processed-data-bucket"
prefix: "user_analytics/"
format: "delta"
partition_by: ["signup_date"]
# Alerting
alerting:
on_failure:
- type: "slack"
channel: "#data-alerts"
- type: "email"
recipients: ["data-team@company.com"]
on_success:
- type: "slack"
channel: "#data-pipeline-status"
# Resource Configuration
resources:
spark:
executor_memory: "4g"
executor_cores: 2
num_executors: 10
driver_memory: "2g"
airflow:
pool: "default_pool"
retries: 3
retry_delay_minutes: 5
ETL/ELT Design Patterns Guide
ETL vs ELT Decision Matrix
┌─────────────────┬────────────────────────┬────────────────────────┐
│ Factor │ ETL │ ELT │
├─────────────────┼────────────────────────┼────────────────────────┤
│ Best For │ On-premise, legacy │ Cloud data warehouses │
│ Transform │ During load │ After load │
│ Performance │ Limited by ETL server │ Leverages DW compute │
│ Flexibility │ Schema on write │ Schema on read │
│ Cost │ Infrastructure heavy │ Compute on demand │
│ Examples │ Informatica, SSIS │ dbt, Snowflake, BigQuery│
└─────────────────┴────────────────────────┴────────────────────────┘Common Data Pipeline Patterns
1. Batch Processing
Source → Extract (scheduled) → Transform → Load → Destination
│ │
└────────── Daily/Hourly ────────────────┘Use when: Data freshness <24h acceptable, large volumes
2. Streaming (Real-time)
Source → Kafka → Spark Streaming → Transform → Load → Destination
│ │
└────────── Continuous ──────────────────────┘Use when: Sub-second latency needed, event-driven
3. Lambda Architecture
┌─► Batch Layer ──► Serving Layer ─┐
Source ──► Kafka ──┤ ├──► Query
└─► Speed Layer ──────────────────┘Use when: Both real-time and historical analytics needed
4. Kappa Architecture
Source ──► Kafka ──► Streaming Processing ──► Serving ──► QueryUse when: Unified processing, simpler architecture preferred
Data Modeling Patterns
Star Schema
┌─── dim_product ───┐
│ │
dim_date ──┼── fact_sales ─────┼── dim_customer
│ │
└─── dim_store ─────┘Snowflake Schema
dim_category ── dim_product ──┐
│
dim_date ────── fact_sales ───┼── dim_customer ── dim_region
│
dim_city ────── dim_store ────┘Data Vault
Hub (business key) ─── Link (relationships) ─── Satellite (attributes)Data Quality Dimensions
| Dimension | Description | Metric Example |
|---|---|---|
| Completeness | No missing values | Null rate < 1% |
| Accuracy | Correct values | Match rate > 99% |
| Consistency | Same across systems | Cross-system match |
| Timeliness | Data freshness | Latency < 1 hour |
| Uniqueness | No duplicates | Duplicate rate = 0% |
| Validity | Conforms to rules | Format compliance |
Best Practices Checklist
Pipeline Design
- [ ] Idempotent operations (re-runnable)
- [ ] Incremental processing where possible
- [ ] Proper error handling and retry logic
- [ ] Data lineage tracking
- [ ] Schema evolution support
Performance
- [ ] Partition large tables appropriately
- [ ] Use columnar formats (Parquet, ORC)
- [ ] Optimize join order (small to large)
- [ ] Predicate pushdown enabled
- [ ] Appropriate parallelism
Monitoring
- [ ] Pipeline SLAs defined
- [ ] Data quality metrics tracked
- [ ] Alerting on failures
- [ ] Cost monitoring
- [ ] Performance trending
Technology Stack Recommendations
| Layer | Open Source | Cloud (AWS) | Cloud (GCP) |
|---|---|---|---|
| Orchestration | Airflow, Dagster | MWAA, Step Functions | Cloud Composer |
| Streaming | Kafka, Flink | Kinesis, MSK | Pub/Sub, Dataflow |
| Batch | Spark | EMR, Glue | Dataproc |
| Warehouse | Trino, DuckDB | Redshift | BigQuery |
| Transform | dbt | dbt Cloud | dbt Cloud |
| Quality | Great Expectations | Deequ | - |
#!/usr/bin/env python3
"""
Data Quality Check Framework
Comprehensive data validation for ETL pipelines
"""
import pandas as pd
import numpy as np
from typing import Dict, List, Optional, Any
from dataclasses import dataclass
from enum import Enum
from datetime import datetime, timedelta
class CheckStatus(Enum):
PASSED = "passed"
FAILED = "failed"
WARNING = "warning"
@dataclass
class CheckResult:
name: str
status: CheckStatus
message: str
details: Optional[Dict[str, Any]] = None
class DataQualityChecker:
"""Data quality validation framework."""
def __init__(self, df: pd.DataFrame):
self.df = df
self.results: List[CheckResult] = []
def null_check(self, columns: List[str], threshold: float = 0.0) -> CheckResult:
"""Check for null values in specified columns."""
null_counts = {}
failed = False
for col in columns:
if col not in self.df.columns:
return CheckResult(
name="null_check",
status=CheckStatus.FAILED,
message=f"Column '{col}' not found",
details={"missing_column": col}
)
null_pct = self.df[col].isnull().mean()
null_counts[col] = null_pct
if null_pct > threshold:
failed = True
result = CheckResult(
name="null_check",
status=CheckStatus.FAILED if failed else CheckStatus.PASSED,
message=f"Null check {'failed' if failed else 'passed'} for columns: {columns}",
details={"null_percentages": null_counts, "threshold": threshold}
)
self.results.append(result)
return result
def uniqueness_check(self, columns: List[str]) -> CheckResult:
"""Check if columns contain unique values."""
duplicates = self.df.duplicated(subset=columns, keep=False).sum()
result = CheckResult(
name="uniqueness_check",
status=CheckStatus.FAILED if duplicates > 0 else CheckStatus.PASSED,
message=f"Found {duplicates} duplicate rows" if duplicates > 0 else "All rows unique",
details={
"columns": columns,
"duplicate_count": duplicates,
"total_rows": len(self.df)
}
)
self.results.append(result)
return result
def range_check(self, column: str, min_val: Optional[float] = None,
max_val: Optional[float] = None) -> CheckResult:
"""Check if values fall within expected range."""
if column not in self.df.columns:
return CheckResult(
name="range_check",
status=CheckStatus.FAILED,
message=f"Column '{column}' not found"
)
violations = 0
if min_val is not None:
violations += (self.df[column] < min_val).sum()
if max_val is not None:
violations += (self.df[column] > max_val).sum()
result = CheckResult(
name="range_check",
status=CheckStatus.FAILED if violations > 0 else CheckStatus.PASSED,
message=f"{violations} values outside range [{min_val}, {max_val}]",
details={
"column": column,
"min_expected": min_val,
"max_expected": max_val,
"actual_min": self.df[column].min(),
"actual_max": self.df[column].max(),
"violations": violations
}
)
self.results.append(result)
return result
def schema_check(self, expected_schema: Dict[str, str]) -> CheckResult:
"""Validate DataFrame schema matches expected."""
missing_cols = []
type_mismatches = []
for col, expected_type in expected_schema.items():
if col not in self.df.columns:
missing_cols.append(col)
else:
actual_type = str(self.df[col].dtype)
if not self._type_compatible(actual_type, expected_type):
type_mismatches.append({
"column": col,
"expected": expected_type,
"actual": actual_type
})
failed = len(missing_cols) > 0 or len(type_mismatches) > 0
result = CheckResult(
name="schema_check",
status=CheckStatus.FAILED if failed else CheckStatus.PASSED,
message=f"Schema {'invalid' if failed else 'valid'}",
details={
"missing_columns": missing_cols,
"type_mismatches": type_mismatches,
"extra_columns": [c for c in self.df.columns if c not in expected_schema]
}
)
self.results.append(result)
return result
def freshness_check(self, date_column: str, max_age_hours: int = 24) -> CheckResult:
"""Check if data is fresh (within expected time range)."""
if date_column not in self.df.columns:
return CheckResult(
name="freshness_check",
status=CheckStatus.FAILED,
message=f"Column '{date_column}' not found"
)
max_date = pd.to_datetime(self.df[date_column]).max()
age_hours = (datetime.now() - max_date).total_seconds() / 3600
result = CheckResult(
name="freshness_check",
status=CheckStatus.FAILED if age_hours > max_age_hours else CheckStatus.PASSED,
message=f"Data is {age_hours:.1f} hours old (max allowed: {max_age_hours})",
details={
"latest_record": str(max_date),
"age_hours": age_hours,
"max_allowed_hours": max_age_hours
}
)
self.results.append(result)
return result
def row_count_check(self, min_rows: int = 0, max_rows: Optional[int] = None) -> CheckResult:
"""Check if row count is within expected range."""
count = len(self.df)
failed = count < min_rows or (max_rows is not None and count > max_rows)
result = CheckResult(
name="row_count_check",
status=CheckStatus.FAILED if failed else CheckStatus.PASSED,
message=f"Row count: {count} (expected: {min_rows}-{max_rows or 'inf'})",
details={
"row_count": count,
"min_expected": min_rows,
"max_expected": max_rows
}
)
self.results.append(result)
return result
def _type_compatible(self, actual: str, expected: str) -> bool:
"""Check if types are compatible."""
type_groups = {
'int': ['int64', 'int32', 'int16', 'int8', 'Int64', 'integer'],
'float': ['float64', 'float32', 'float16', 'float'],
'string': ['object', 'string', 'str'],
'datetime': ['datetime64[ns]', 'datetime', 'timestamp'],
'bool': ['bool', 'boolean']
}
for group, types in type_groups.items():
if expected.lower() in [t.lower() for t in types]:
return actual.lower() in [t.lower() for t in types]
return actual.lower() == expected.lower()
def get_summary(self) -> Dict[str, Any]:
"""Get summary of all check results."""
passed = sum(1 for r in self.results if r.status == CheckStatus.PASSED)
failed = sum(1 for r in self.results if r.status == CheckStatus.FAILED)
warnings = sum(1 for r in self.results if r.status == CheckStatus.WARNING)
return {
"total_checks": len(self.results),
"passed": passed,
"failed": failed,
"warnings": warnings,
"overall_status": "PASSED" if failed == 0 else "FAILED",
"results": [
{
"name": r.name,
"status": r.status.value,
"message": r.message
}
for r in self.results
]
}
def main():
"""Demo data quality checks."""
# Create sample data
df = pd.DataFrame({
'user_id': [1, 2, 3, 4, 5],
'email': ['a@test.com', 'b@test.com', None, 'd@test.com', 'e@test.com'],
'age': [25, 30, -5, 45, 150],
'created_at': pd.date_range('2024-01-01', periods=5)
})
print("Data Quality Check Demo")
print("=" * 50)
checker = DataQualityChecker(df)
# Run checks
checker.null_check(['user_id', 'email'], threshold=0.0)
checker.uniqueness_check(['user_id'])
checker.range_check('age', min_val=0, max_val=120)
checker.row_count_check(min_rows=1, max_rows=1000)
checker.schema_check({
'user_id': 'int',
'email': 'string',
'age': 'int',
'created_at': 'datetime'
})
# Print summary
summary = checker.get_summary()
print(f"\nOverall Status: {summary['overall_status']}")
print(f"Passed: {summary['passed']}/{summary['total_checks']}")
for result in summary['results']:
status_icon = "✓" if result['status'] == 'passed' else "✗"
print(f" {status_icon} {result['name']}: {result['message']}")
if __name__ == '__main__':
main()
Related skills
FAQ
What does data-engineering do?
data-engineering is a Claude Code skill for ai & agent building.
When should I use data-engineering?
When you need to helps with ai & agent building tasks., or when data-engineering is a claude code skill for ai & agent building.
What are the main capabilities?
data-engineering; AI & Agent Building; AI-coding skill.