data-etl-pipeline
Use when the user asks to orchestrate a daily ETL with Airflow and dbt, ETL vs ELT, data ingestion, incremental loads, Airflow 3 DAG design, retries and…
от j4flmao★ 47 звёзд на GitHub
Установить data-etl-pipeline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data ETL Pipeline
Purpose
Design reliable ETL/ELT pipelines with Airflow orchestration, dbt transformations, incremental strategies, error handling, and data validation.
Agent Protocol
Trigger
Exact user phrases: "ETL", "ELT", "data pipeline", "Airflow", "dbt", "data transformation", "data ingestion", "batch processing", "pipeline orchestration", "incremental load", "data pipeline design", "DAG", "data workflow", "extract load transform".
Input Context
Before activating, verify:
- Source systems (databases, APIs, files, streams)
- Target warehouse (Snowflake, BigQuery, Redshift, DuckDB)
- Volume and frequency (daily/hourly batch, CDC, real-time)
- Orchestration preference (Airflow, Dagster, Prefect)
- Transformation tool (dbt, custom SQL, Spark)
- Data volume and growth rate
- SLAs for data freshness and availability
- Existing monitoring and alerting infrastructure
Output Artifact
ETL pipeline design with DAG structure, transformation config, error handling as YAML and SQL.
Response Format
# Airflow DAG skeleton
# Task definitions
# dbt model config
# Incremental strategy
# Transformation query template
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Pipeline architecture diagram defined (sources → staging → warehouse)
- Airflow DAG structure with task dependencies and retries
- Incremental loading strategy selected and configured
- Error handling with retry, dead-letter, and notification
- Data validation checks on each stage
- Monitoring and alerting configured
- Data lineage tracking set up
Max Response Length
300 lines of code and configuration.
ETL vs ELT
ETL (Extract, Transform, Load)
Transform happens before loading. Best for: on-premises databases, structured data, complex transformations requiring significant compute, regulatory environments requiring data masking before storage. ETL requires a transformation engine (Spark, Python) between extraction and loading. Transformation reduces data volume before warehouse storage, saving on warehouse costs.
ELT (Extract, Load, Transform)
Transform happens in the warehouse. Best for: cloud warehouses (Snowflake, BigQuery, Redshift), raw data preservation, agile schema evolution, when the warehouse provides sufficient compute for transformations. ELT loads raw data into staging tables first, then transforms using SQL. Recommended for most cloud data warehouse pipelines.
Decision Guide
| Factor | Choose ETL | Choose ELT |
|---|---|---|
| Target | On-prem DB or file system | Cloud data warehouse |
| Data volume | 100GB+ daily | Any |
| Transformation complexity | High (ML, NLP, image processing) | Moderate (SQL aggregations) |
| Compliance | PII masking required before storage | Column-level security in warehouse |
| Team skill set | Python/Spark engineers | SQL analysts |
| Schema stability | Fixed schema | Evolving schema |
Airflow DAG Design
DAG Structure
One DAG per data domain. Structure: start → extract → validate_extract → load_staging → validate_staging → transform → validate_transform → load_mart → complete. Task dependencies use the bitshift operator: extract >> validate_extract >> load_staging.
DAG Template
# Airflow 3.x
from datetime import datetime, timedelta
from airflow.sdk import DAG
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
from airflow.providers.standard.operators.empty import EmptyOperator
from airflow.providers.standard.operators.python import PythonOperator
from etl.orders import extract_orders, notify_failure # project code
default_args = {
'owner': 'data-engineering',
'depends_on_past': False,
'retries': 3,
'retry_delay': timedelta(minutes=5),
'retry_exponential_backoff': True,
'max_retry_delay': timedelta(hours=1),
'execution_timeout': timedelta(hours=2),
'on_failure_callback': notify_failure, # or a provider notifier (Slack/SMTP)
}
with DAG(
dag_id='etl_orders_daily',
default_args=default_args,
description='Daily orders ETL from PostgreSQL to warehouse',
schedule='0 3 * * *', # Daily 3 AM
start_date=datetime(2026, 1, 1),
catchup=False,
max_active_runs=1,
tags=['etl', 'orders', 'daily'],
) as dag:
start = EmptyOperator(task_id='start')
extract = PythonOperator(task_id='extract_orders', python_callable=extract_orders)
load_mart = SQLExecuteQueryOperator(
task_id='load_mart',
conn_id='warehouse',
sql='sql/load_orders_mart.sql',
)
complete = EmptyOperator(task_id='complete')
start >> extract >> load_mart >> complete
Airflow 3 removed DummyOperator (use EmptyOperator), task-level sla (use Deadline Alerts in 3.1+ or external freshness monitoring), and schedule_interval. PostgresOperator is superseded by `SQLExecuteQ
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/cloud-etl-services.md
- references/data-pipeline-cicd.md
- references/etl-elt-patterns.md
- references/etl-pipeline-design.md
- references/nifi-mage-patterns.md
- references/pipeline-monitoring.md
FAQ
Что делает скилл data-etl-pipeline?
Use when the user asks to orchestrate a daily ETL with Airflow and dbt, ETL vs ELT, data ingestion, incremental loads, Airflow 3 DAG design, retries and dead-letter handling. Produces pipeline architecture, DAG and transformation design with validation and observability. Not for real-time CDC (use data-streaming) or wiring dbt into Airflow in depth (use data-airflow-dbt-orchestration).
Как установить скилл data-etl-pipeline?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-etl-pipeline запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…