Skip to content
Development
Skill

/dbt-transformation-patterns

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

From plugin
agents
42k185 skills137 agents93 commands

Claude Code

$ npx -y skills add wshobson/agents --skill dbt-transformation-patterns --agent claude-code

SKILL.md

dbt-transformation-patterns.SKILL.md
name: dbt-transformation-patterns
description: Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

dbt Transformation Patterns

Production-ready patterns for dbt (data build tool) including model organization, testing strategies, documentation, and incremental processing.

When to Use This Skill

  • Building data transformation pipelines with dbt
  • Organizing models into staging, intermediate, and marts layers
  • Implementing data quality tests
  • Creating incremental models for large datasets
  • Documenting data models and lineage
  • Setting up dbt project structure

Core Concepts

1. Model Layers (Medallion Architecture)

sources/          Raw data definitions
    โ†“
staging/          1:1 with source, light cleaning
    โ†“
intermediate/     Business logic, joins, aggregations
    โ†“
marts/            Final analytics tables

2. Naming Conventions

| Layer | Prefix | Example | | ------------ | -------------- | ----------------------------- | | Staging | `stg_` | `stg_stripe__payments` | | Intermediate | `int_` | `int_payments_pivoted` | | Marts | `dim_`, `fct_` | `dim_customers`, `fct_orders` |

Quick Start

# dbt_project.yml
name: "analytics"
version: "1.0.0"
profile: "analytics"

model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]

vars:
  start_date: "2020-01-01"

models:
  analytics:
    staging:
      +materialized: view
      +schema: staging
    intermediate:
      +materialized: ephemeral
    marts:
      +materialized: table
      +schema: analytics
# Project structure
models/
โ”œโ”€โ”€ staging/
โ”‚   โ”œโ”€โ”€ stripe/
โ”‚   โ”‚   โ”œโ”€โ”€ _stripe__sources.yml
โ”‚   โ”‚   โ”œโ”€โ”€ _stripe__models.yml
โ”‚   โ”‚   โ”œโ”€โ”€ stg_stripe__customers.sql
โ”‚   โ”‚   โ””โ”€โ”€ stg_stripe__payments.sql
โ”‚   โ””โ”€โ”€ shopify/
โ”‚       โ”œโ”€โ”€ _shopify__sources.yml
โ”‚       โ””โ”€โ”€ stg_shopify__orders.sql
โ”œโ”€โ”€ intermediate/
โ”‚   โ””โ”€โ”€ finance/
โ”‚       โ””โ”€โ”€ int_payments_pivoted.sql
โ””โ”€โ”€ marts/
    โ”œโ”€โ”€ core/
    โ”‚   โ”œโ”€โ”€ _core__models.yml
    โ”‚   โ”œโ”€โ”€ dim_customers.sql
    โ”‚   โ””โ”€โ”€ fct_orders.sql
    โ””โ”€โ”€ finance/
        โ””โ”€โ”€ fct_revenue.sql

Detailed patterns and worked examples

Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.

Best Practices

Do's

  • **Use staging layer** - Clean data once, use everywhere
  • **Test aggressively** - Not null, unique, relationships
  • **Document everything** - Column descriptions, model descriptions
  • **Use incremental** - For tables > 1M rows
  • **Version control** - dbt project in Git

Don'ts

  • **Don't skip staging** - Raw โ†’ mart is tech debt
  • **Don't hardcode dates** - Use `{{ var('start_date') }}`
  • **Don't repeat logic** - Extract to macros
  • **Don't test in prod** - Use dev target
  • **Don't ignore freshness** - Monitor source data
Read more
@wshobson
Ships withagents

Use one collection of plugins, agents, skills, and commands across Claude Code, OpenAI Codex CLI, Cursor, OpenCode, Antigravity CLI, GitHub Copilot, and Pi. A harness is the coding tool that loads and runs the components.

42k185 skills137 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
42.4k
Star history of wshobson/agents on GitHub, a chart by star-history.com

Other skills on agents.

screen-reader-testing

screen-reader-testing

Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility,โ€ฆ

@wshobson@wshobsonInstall Skill
wcag-audit-patterns

wcag-audit-patterns

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditingโ€ฆ

@wshobson@wshobsonInstall Skill
multi-reviewer-patterns

multi-reviewer-patternโ€ฆ

Coordinate parallel code reviews across multiple quality dimensions with finding deduplication, severity calibration, andโ€ฆ

@wshobson@wshobsonInstall Skill
parallel-debugging

parallel-debugging

Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Useโ€ฆ

@wshobson@wshobsonInstall Skill
parallel-feature-development

parallel-feature-develโ€ฆ

Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns forโ€ฆ

@wshobson@wshobsonInstall Skill
task-coordination-strategies

task-coordination-straโ€ฆ

Decompose complex tasks, design dependency graphs, and coordinate multi-agent work with proper task descriptions and workloadโ€ฆ

@wshobson@wshobsonInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, orโ€ฆ

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android โ€” semantic ARIA roles and labels,โ€ฆ

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commitsโ€ฆ

react3d252k
@facebook@facebookInstall Skill

Questions about dbt-transformation-patterns.

Which coding agents can use dbt-transformation-patterns?
dbt-transformation-patterns installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.