dbt Model Generator

IntermediadataContexto mínimo: 16K

Generates and refactors dbt models for analytics engineering. Writes staging, intermediate, and mart models following layered conventions, adds schema.yml tests and descriptions, applies incremental and materialization strategies, and structures sources and refs correctly. Produces SQL plus YAML that fits dbt best practices and is ready to run.

Casos de uso

  • Scaffolding staging, intermediate, and mart models
  • Adding schema.yml tests and column descriptions
  • Converting ad-hoc SQL into layered dbt models
  • Applying incremental materialization to large tables

Prompt de ejemplo

Generate dbt models for an orders pipeline.

Sources: raw.orders, raw.customers (Snowflake)
Goal: a fct_orders mart with customer attributes and daily order metrics.

Deliver:
1. stg_orders and stg_customers staging models with light cleaning
2. An int_ model joining them if needed
3. fct_orders mart (consider incremental materialization; explain the choice)
4. schema.yml with not_null/unique/relationships tests and descriptions
Follow standard dbt layering and use ref()/source() correctly.

Modelos recomendados

Herramientas compatibles

claude-codecursorkiroany

Modalidades

Entrada: text, code
Salida: text, code

Skills relacionadas

Autor

OpenModels Community

@openmodelsrun