A curated collection of Agent Skills for working with dbt, to help AI agents understand and execute dbt workflows more effectively.
65
82%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Risky
Do not use without reviewing
Synthesized from the dbt Semantic Layer best practices guide.
order not order_id) with expr for the column referenceLegacy spec (dbt Core 1.6-1.11):
expr: 1 with agg: sum for counting recordsLatest spec (dbt Core 1.12+ / Fusion):
expr: 1 with agg: count or agg: sum for counting recordsEvery metric needs: name, description, label, and type
orders__location)# Refresh manifest after changes
dbt parse
# List available dimensions for a metric
dbt sl list dimensions --metrics <metric_name> # dbt Cloud CLI / Fusion CLI when using the dbt platform
mf list dimensions --metrics <metric_name> # MetricFlow CLI
# Test metric queries
dbt sl query --metrics <metric_name> --group-by <dimension>
mf query --metrics <metric_name> --group-by <dimension>| Anti-pattern | Better approach |
|---|---|
| Building full semantic models on dimension-only tables | Pure dimensional tables only need a primary entity defined |
| Refactoring production code directly | Build in parallel, deprecate gradually |
| Pre-computing rollups in dbt models | Define calculations in metrics |
| Creating multiple time dimension buckets | Set minimum granularity, let MetricFlow handle the rest |
| Mixing legacy and latest spec syntax in the same project | Pick one spec and use it consistently |
Use intermediate marts strategically for:
Build semantic models on staging when source data is already well-structured.
evals
skills
adding-dbt-unit-test
references
answering-natural-language-questions-with-dbt
building-dbt-semantic-layer
configuring-dbt-mcp-server
fetching-dbt-docs
scripts
migrating-dbt-core-to-fusion
running-dbt-commands
troubleshooting-dbt-job-errors
using-dbt-for-analytics-engineering