/ai-and-data:data-engineeringfrom ai-and-data
Production data engineering reference covering ELT/ETL patterns, dbt, orchestration (Airflow/Dagster/Prefect), Python data stack, cloud warehouses, lakehouse formats, CDC, SCD2, data quality, and ML productionization.
Ships in ai-and-data. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ELT is the production default on modern cloud warehouses (Snowflake, BigQuery, Databricks). Load raw data first, transform in-warehouse with dbt. Storage/compute decoupling makes this cheaper and operationally simpler than a separate transformation tier.
ETL still wins when:
ELT advantages: preserves raw data for reprocessing when business logic changes; no transformation infrastructure to manage; one pipeline to operate.
Watermark-based incremental: pull rows where updated_at > last_watermark. Store the watermark in the target DB audit table.
Debezium (dominant open-source CDC):
Use effective_from / effective_to / is_current columns.
Reliable cross-platform pattern (two steps):
effective_to, is_current = 0)A single MERGE cannot do both UPDATE and INSERT from one source row without the nested INSERT-over-MERGE-OUTPUT trick.
Options:
Query patterns:
WHERE is_current = 1WHERE order_date BETWEEN effective_from AND effective_toThree-layer architecture:
| Layer | Description | Materialization | Rules |
|---|---|---|---|
| Staging | 1:1 with sources; rename/cast/basic categorization | Views | No joins; prefix stg_ |
| Intermediate | Business logic, joins, re-graining | Ephemeral | Referenced by only one downstream (if more, make it a macro) |
| Marts | Wide/denormalized entities | Tables | ≤4–6 joins; prefix by domain |
Materialization progression: view → table (when query is slow) → incremental (only when table builds are too slow).
Anti-patterns to avoid:
finance_orders vs marketing_orders — build one source of truth insteaddbt tests: not_null, unique, accepted_values, relationships on every model. Using thresholds/severities to suppress failing tests hides anomalies and erodes audit trust.
| Tool | Best for | Weakness |
|---|---|---|
| Airflow | Enterprise, 100+ pipelines, 1,000+ providers (MWAA/Cloud Composer/Astronomer) | Steeper learning curve; needs running instance to test DAGs |
| Dagster | Greenfield/dbt-centric platforms; software-defined assets, local testing (swap Snowflake for DuckDB) | ~1/4 of Airflow's integrations |
| Prefect | Python-native, fastest laptop-to-production | Serverless cold starts 5–15s; near-real-time workloads feel this |
Migration rule: 50+ working Airflow DAGs → stay and adopt TaskFlow incrementally; Dagster migration runs ~10–20 DAGs/month via dagster-airflow.
Most mature teams combine dbt tests (model layer) + Great Expectations or Soda Core (distribution/profiling checks dbt can't express).
chunksize), Arrow-backed dtypes (pandas 2.x)apply/iterrows — vectorizeZero-copy columnar IPC — the lingua franca between Polars, DuckDB, pandas 2.x, and Spark.
Pandera: tabular validation (DataFrameSchema or class-based DataFrameModel); use for DataFrame-level checks.
Pydantic V2: record/object validation; core rewritten in Rust as pydantic-core — "about 17× faster than V1." Use for API/record validation.
Integration: Pandera uses Pydantic for coercion; embed Pydantic models row-wise only for very small (~100-row) frames.
| Need | Recommendation |
|---|---|
| Sub-second latency, business acts on it (fraud, dynamic pricing) | True streaming (Flink or Kafka + consumer) |
| Seconds of latency acceptable | Micro-batch (Spark Structured Streaming) |
| Minutes/hours acceptable | Batch ELT |
Flink: true event-at-a-time, p99 latencies <100ms; more resource-efficient for low-latency. Spark Streaming: ~2–5s; wins when you share resources across batch and streaming or already run Databricks/Delta.
Cost lever: BigQuery streaming costs $0.01/200MB; micro-batch loading is free — a major difference at scale.
ROW_NUMBER (unique sequential), RANK (gaps on ties), DENSE_RANK (no gaps)LAG/LEAD (prior/next row), FIRST_VALUE/LAST_VALUEROWS vs RANGE frames — RANGE includes all peer rows with equal ordering values; the default RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW can produce surprising results with tiesDISTINCT to paper over join fan-out (fix the join grain instead)SELECT * on columnar stores (BigQuery bills full column scan regardless of LIMIT)AUTO_SUSPEND=0), over-provisioned dev XL warehouses, excessive Time Travel retention on truncate-reload tables, runaway reclustering on high-churn tablesSELECT * on 10TB = $62.50; LIMIT does not reduce costINFORMATION_SCHEMA.JOBS / JOBS_TIMELINE for cost attribution| Format | Best for | Notes |
|---|---|---|
| Iceberg | Interoperability standard; partition evolution as metadata operation | Databricks acquired Tabular (Iceberg creators); AWS S3 Tables, Snowflake Polaris catalog |
| Delta | Largest installed base; Microsoft Fabric default | Most large enterprises; Databricks default |
| Hudi | Streaming/CDC upserts (Merge-on-Read first-class) | Vendor (Onehouse) benchmarks favor it for upserts — run your own TPC-DS |
OPTIMIZE: compacts small files (~1GB target)ZORDER BY: co-locates data for high-cardinality filter columnsVACUUM: removes unreferenced files (default 7-day retention via delta.deletedFileRetentionDuration)CLUSTER BY, GA DBR 15.2+): redefine clustering keys without rewriting dataCLUSTER BY AUTO, DBR 15.4+) + predictive optimization: Unity Catalog auto-selects keys and runs OPTIMIZE/VACUUM/ANALYZE on serverless computeSolve: training-serving skew, online/offline consistency, feature reuse.
| Store | Type | Best for |
|---|---|---|
| Feast (Linux Foundation) | Open-source, bring-your-own-infra | Cost/flexibility/no lock-in; you own pipeline and writes to online store |
| Tecton (ex-Uber Michelangelo team) | Managed; includes transformation/compute | Mission-critical real-time; eliminates skew "by construction"; sub-10ms p99 online serving |
Offline store: BigQuery/Snowflake/S3 for point-in-time-correct training sets. Online store: Redis/DynamoDB for low-latency inference.
Use Feast for flexibility; Tecton for managed SLAs on real-time use cases.
Four components: Tracking (log params/metrics/artifacts per run), Projects (reproducible packaging), Models (flavors for deployment), Model Registry (versioning + lineage + lifecycle).
Modern champion/challenger pattern (MLflow 2.9.0+):
Staging/Production/Archived) are deprecatedchampion/challengermodels:/MyModel@championProduction deployment patterns:
Pipeline + ColumnTransformer: canonical leakage guard — preprocessing fit only on training foldsAll three are competitive; no significant differences under Wilcoxon–Holm analysis (arXiv 2407.00956):
| Library | Strength | Weakness |
|---|---|---|
| LightGBM | Fastest (~7× vs XGBoost); best for very large datasets | Leaf-wise growth overfits small data |
| CatBoost | Best with many categorical features (native handling); strong defaults | |
| XGBoost | Slight accuracy/generalization edge in some benchmarks; Kaggle workhorse | Slowest grid search on large data |
Tuning sequence: benchmark all three with defaults → tune the frontrunner: lower learning_rate + more estimators with early stopping, reduce max_depth/num_leaves, raise L1/L2, subsample.
Incremental product mindset (in order):
The "full mesh topology" without a self-serve platform fails — domain teams default to ad-hoc pipelines. The self-serve platform is the most underinvested principle.
Stage 1 (weeks 0–8): ELT on cloud warehouse + dbt (staging/intermediate/marts). Enable cost guardrails: Snowflake auto-suspend 60s + Economy; BigQuery partitioning/clustering; Databricks Unity Catalog + predictive optimization. Add dbt tests on every model.
Stage 2 (months 2–4): Layer Great Expectations or Soda Core for distribution/profiling checks. Data contracts (ODCS + Data Contract CLI) for datasets two+ teams depend on. Deploy orchestrator matched to team. SCD2 via dbt snapshots or two-step MERGE.
Stage 3 (months 4–8): Replace pandas bottlenecks with Polars/DuckDB before reaching for Spark — only adopt Spark when data genuinely exceeds single-node memory. CDC via Debezium with incremental snapshots. Streaming only where sub-second latency drives business action.
Stage 4 (months 6–12): scikit-learn Pipeline + ColumnTransformer to prevent leakage; time-series/group CV; MLflow Registry aliases (champion/challenger). Gradient boosting (benchmark LightGBM/CatBoost/XGBoost). Feature store only when reuse and training-serving skew are real pain points.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
data-pipelines, elt-etl, dbt, orchestration, data-quality, mlops
Other plugins' skills for the same job
npx claudepluginhub theviziusgroup/vibe-engineering-skills --plugin ai-and-data4 skills in this plugin
/ai-ml-landscapeComprehensive practitioner reference for the 2025–2026 AI/ML landscape covering frontier model selection and routing, open-weight vs hosted API trade-offs, reasoning models and test-time compute, RAG and agent production patterns, classical ML for tabular data, deep learning foundations (transformers, attention, MoE, SSMs), LLM training and post-training (DPO/GRPO/LoRA/QLoRA), inference serving (vLLM/SGLang), evaluation benchmark skepticism, safety/alignment, EU AI Act governance, and hardware selection. Use when advising on model selection, AI architecture decisions, LLM deployment, fine-tuning strategy, benchmark interpretation, or AI governance compliance./llm-cost-optimizationProduction reference for LLM token economics, cost optimization, and prompt engineering on Azure. Covers tokenization and pricing asymmetry, prompt caching (Azure/Anthropic/Google), model routing and cascades, PTU vs PAYG break-even, Azure APIM AI gateway, semantic caching, context window engineering, prompt/context compression (LLMLingua, LongLLMLingua, RECOMP, Selective Context, extractive compression), caveman/telegraphic prompting, token-lean serialization formats (TOON/Markdown/YAML vs JSON/XML), output control (Concise CoT, Chain-of-Draft), fine-tuning for cost, Batch API, structured outputs, conversation history management, and Azure-specific deployment patterns. Use when optimizing LLM spend, compressing prompts or context, choosing a compression library, picking token-lean formats, reducing output verbosity, designing cost-efficient AI architectures, troubleshooting token costs, engineering prompts for performance, or sizing Azure OpenAI deployments./rag-and-agentsProduction reference for RAG (Retrieval-Augmented Generation) and AI agent development covering document parsing, chunking strategies (parent-child, contextual retrieval), embedding models, vector databases, hybrid search with reranking, GraphRAG, RAGAS evaluation, agent frameworks (LangGraph, CrewAI, Microsoft Agent Framework, Foundry Agent Service), MCP, multi-agent patterns, computer use, and Azure-native RAG (Azure AI Search, Foundry IQ). Use when designing or debugging RAG pipelines, choosing vector databases, building agent systems, evaluating retrieval quality, or architecting Azure AI Search solutions.2 plugins ship this exact skill · first indexed Aug 12, 2026