/data-engineering-skills:building-dbt-modelsfrom data-engineering-skills
Guides building well-structured dbt models with staging/intermediate/marts layers, ref()/source() references, materialization choices, and incremental model strategies. Use when creating or refactoring dbt models.
Ships in data-engineering-skills. 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.
Read when SKILL.md points to them.
.sql models in a dbt project.testing-dbt-projects) or run failures
(use debugging-dbt-runs).- [ ] Place the model in the right layer (staging/intermediate/marts)
- [ ] Reference upstream only via ref()/source() — never hard-coded names
- [ ] Choose materialization by size and refresh needs
- [ ] For incremental, set unique_key + is_incremental() filter
- [ ] Add a schema.yml entry with tests
staging/ = one model per source table, light renaming/typing,
materialized as views. intermediate/ = reusable business logic. marts/ =
final dimensional models consumed by BI, materialized as tables.{{ ref('stg_orders') }} and
{{ source('shop', 'orders') }} so dbt builds the DAG and manages
environments. Never write raw schema.table.Staging model — one per source, thin and consistent:
-- models/staging/shop/stg_orders.sql
with source as (select * from {{ source('shop', 'orders') }})
select
order_id,
customer_id,
cast(order_ts as timestamp) as ordered_at,
round(amount_cents / 100.0, 2) as amount
from source
Incremental model — filter to new rows and set an idempotent merge key:
{{ config(materialized='incremental', unique_key='order_id',
incremental_strategy='merge') }}
select * from {{ ref('stg_orders') }}
{% if is_incremental() %}
-- only rows newer than what we already loaded, with a lookback for late data
where ordered_at >= (select coalesce(max(ordered_at), '1900-01-01') from {{ this }})
- interval '3 days'
{% endif %}
The unique_key + merge makes re-runs idempotent; the lookback catches
late-arriving rows. On BigQuery/Spark, prefer insert_overwrite on a date
partition.
ref()/source() — breaks the DAG,
lineage, and environment switching.unique_key — re-runs append duplicates.max(id) incremental filter with no lookback — silently drops late data.table — wastes warehouse time; use views for
small/cheap models and incremental for large ones.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
36 skills in this plugin
/authoring-airflow-dagsWrite production-grade Apache Airflow DAGs using the TaskFlow API — idempotent tasks, correct scheduling and catchup, retries/SLAs, connections/variables, and avoiding top-level code. Use when creating or reviewing Airflow DAGs, scheduling pipelines, wiring task dependencies, configuring retries/backfills, or fixing non-idempotent tasks./building-dagster-assetsBuild Dagster pipelines using software-defined assets — asset dependencies, partitions, resources and IO managers, asset checks, and schedules/sensors. Use when creating Dagster assets or jobs, modeling data as assets, adding partitions or backfills, wiring resources/IO managers, or migrating from task-based orchestration to assets./building-feature-pipelinesBuild ML feature pipelines and feature stores — point-in-time-correct joins to avoid label leakage, offline/online parity, feature freshness and backfills, and materialization with tools like Feast. Use when engineering features for ML, preventing train/serve skew or data leakage, building a feature store, or backfilling historical features for training./building-iceberg-tablesDesign and operate Apache Iceberg tables — partitioning and hidden partitioning, partition/schema evolution, snapshots and time travel, compaction and small-file cleanup, and MERGE/upsert for lakehouse tables on Spark, Flink, Trino, or Snowflake. Use when creating or maintaining Iceberg tables, choosing partitioning, evolving schema/partitions, or fixing small-file and metadata bloat./building-ingestion-pipelinesBuild batch and incremental data ingestion (extract-load) pipelines — full vs incremental extraction, change data capture (CDC), watermarks and high-water marks, API pagination and rate limits, and choosing managed EL tools (Fivetran, Airbyte) vs custom code. Use when ingesting data from databases, APIs, files, or SaaS into a warehouse/lake, or designing incremental extraction and CDC./building-kafka-consumersBuild reliable Apache Kafka consumers and producers — consumer groups and partition assignment, offset commit strategy, at-least-once vs exactly-once, idempotent/transactional producers, rebalancing, and dead-letter handling. Use when writing Kafka consumers/producers, configuring offset commits or consumer groups, tuning throughput, or handling rebalances and poison messages.npx claudepluginhub unknown-333/awesome-data-engineering-skills --plugin data-engineering-skillsOther plugins' skills for the same job