dbt-transformation-patterns

Organize dbt projects into staging, intermediate, and marts layers with tests and documentation.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill dbt-transformation-patterns-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dbt-transformation-patterns
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/dbt-transformation-patterns
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill dbt-transformation-patterns-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps analytics teams implement robust, scalable dbt transformation patterns by providing a structured approach to project organization, testing, and documentation.

Core Features & Use Cases

  • Establish robust dbt project structure with medallion layers (staging, intermediate, marts) and naming conventions.
  • Define sources and models using patterns, incremental strategies, testing, and documentation.
  • DRY code via macros and best practices to reduce duplication and promote reusability.

Quick Start

Create a dbt project structure following the medallion-layer patterns and run dbt to build and test the models.

Frequently Asked Questions about dbt-transformation-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure dbt models into staging, intermediate, and marts layers?

To structure dbt models, organize transformations into staging, intermediate, and marts layers. This medallion architecture establishes a scalable project structure by separating raw data cleaning from complex business logic, ensuring clear lineage and maintainable analytics engineering workflows.

What is the best way to reduce code duplication in dbt transformations?

The best way to reduce code duplication in dbt transformations is using macros. Macros enable DRY (Don't Repeat Yourself) coding practices by abstracting repeated SQL logic into reusable components, promoting consistency across your dbt models and simplifying maintenance.

How do I implement incremental strategies in dbt?

Implement incremental strategies in dbt by defining incremental models within your project structure. This pattern processes only new or updated rows rather than the entire dataset, optimizing performance and reducing compute costs for scalable data transformations.

How do I add tests and documentation to a dbt project?

Add tests and documentation to a dbt project by defining them directly within your model YAML files. This approach applies testing patterns to validate data integrity and generates documentation repositories to visualize lineage and describe model schemas.

Can I use dbt patterns for analytics engineering at scale?

Yes, you can use dbt patterns for analytics engineering at scale. Applying structured model layering, incremental strategies, and consistent naming conventions ensures your dbt project remains robust, organized, and performant as data volume and team size grow.

Why do I need naming conventions in my dbt project?

You need naming conventions in a dbt project to maintain clarity across staging, intermediate, and marts layers. Consistent naming patterns make it easier to trace data lineage, debug transformation logic, and enforce structural organization as the analytics project scales.