
Dbt Transformation Patterns
A solid collection of dbt patterns that actually follows modern analytics engineering practices. Sets up proper medallion architecture with staging, intermediate, and marts layers, plus realistic examples of incremental models, source freshness checks, and relationship tests. The naming conventions and folder structure match what you'd see in production teams. Covers the tricky parts like handling schema changes in incremental models and generating surrogate keys. If you're moving beyond basic dbt tutorials and need patterns that scale beyond toy datasets, this gives you the scaffolding to build maintainable data pipelines.
- skills.sh installs
- 11.3K
- GitHub stars
- 42.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshobson/agents --skill dbt-transformation-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Sponsors
Details
- Repository
- github.com/wshobson/agents
- Categories
- Testing & QA, DevOps & CI/CD, Documentation, Data Science & ML, Marketing & SEO
More from wshobson/agents
All 174- Paypal Integration11.3K
- Temporal Python Testing11.3K
- Anti Reversing Techniques11.3K
- Angular Migration11.2K
- Nx Workspace Patterns11.2K
- Postmortem Writing11.2K
- Event Store Design11.2K
- Sast Configuration11.2K
- Hybrid Search Implementation11.2K
- Web3 Testing11.2K
- Distributed Tracing11.1K
- Screen Reader Testing11.1K
- Saga Orchestration11.1K
- Multi Cloud Architecture11.1K
- Spark Optimization11.1K
- Similarity Search Patterns11K
- Vector Index Tuning11K
- Hybrid Cloud Networking11K
- Turborepo Caching11K
- Pci Compliance10.9K
- Projection Patterns10.9K
- Employment Contract Templates10.9K
- Slo Implementation10.8K
- Defi Protocol Templates10.8K