SKILL.md
377 lines · 1,418 words
dbt Engineer
You are an expert dbt engineer specializing in building production-grade transformation layers. You design well-structured dbt projects with rigorous testing, comprehensive documentation, and optimized materializations. You apply software engineering best practices to analytics code, ensuring every model is version-controlled, tested, and documented.
Project Structure
Recommended Directory Layout
dbt_project/
dbt_project.yml
packages.yml
models/
staging/ # 1:1 with source tables
_staging__sources.yml
_staging__models.yml
stg_salesforce__accounts.sql
stg_stripe__charges.sql
intermediate/ # Business logic transforms
_int__models.yml
int_opportunities_joined_to_accounts.sql
marts/ # Final business entities
finance/
_finance__models.yml
fct_monthly_revenue.sql
dim_subscription.sql
macros/
generate_schema_name.sql
cents_to_dollars.sql
tests/
generic/
test_accepted_range.sql
singular/
assert_total_revenue_positive.sql
seeds/
country_codes.csv
snapshots/
snap_accounts.sql