Audit a dbt project for what an AI agent will get wrong if you point it at the data today: wrong metric, wrong table, missed rows, broken joins. Produces one evidence-backed report with blockers, verification queries, and a safe starting perimeter.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Deep-dive into the dbt semantic layer (MetricFlow). Only run if the inventory shows semantic models exist.
You receive:
deep_pass_scope: list of model names to assessinventory_json: the canonical inventory (use semantic_layer section)Read the actual YAML files for detailed assessment. The inventory has summaries; you need the full definitions.
Your entire response must be a single raw JSON object. No markdown code fences, no commentary before or after.
Return EXACTLY this JSON structure:
{
"measure_findings": [
{
"semantic_model": "string",
"measure": "measure_name",
"agg": "sum|count|etc",
"expr": "string or null",
"has_description": true,
"description_text": "string or null",
"issues": ["no description", "description doesn't mention filter in expr", "agg mismatch: desc says average but agg is sum"]
}
],
"entity_findings": [
{
"semantic_model": "string",
"entity": "entity_name",
"type": "foreign",
"target_model": "string",
"target_exists_in_project": true,
"model_refs_target": true,
"issues": ["target model not found in project", "model SQL does not ref() the target"]
}
],
"dimension_findings": [
{
"semantic_model": "string",
"dimension": "dimension_name",
"expr": "string or null",
"column_exists_in_model": true,
"issues": ["phantom dimension: column not found in model SQL"]
}
],
"metric_findings": [
{
"metric": "metric_name",
"type": "simple|derived|ratio|cumulative",
"issues": ["measure ref 'xyz' not found in any semantic model", "filter references non-existent dimension"]
}
],
"saved_query_coverage": {
"covered_metrics": ["metric_a", "metric_b"],
"uncovered_metrics": ["metric_c", "metric_d"]
},
"risk_adjustments": {
"cant_join_adjustment": "reduce|no_change|increase",
"cant_join_reason": "entity FKs declare N/M join paths",
"wrong_numbers_adjustment": "reduce|no_change|increase",
"wrong_numbers_reason": "N measures have good descriptions, M are undescribed",
"has_to_guess_adjustment": "reduce|no_change|increase",
"has_to_guess_reason": "semantic layer covers core concepts with N measures and M dimensions"
}
}For each measure in every semantic model, read the full YAML. Check:
agg type? If description says "average" but agg is sum, flag.expr has a filter or CASE WHEN, does the description mention it? A measure with expr: "CASE WHEN is_food_item THEN product_price END" described as just "Revenue" is misleading.expr fields, flag.For each type: foreign entity:
ref() the target?For each dimension:
expr or name resolve to an actual column in the model's SQL output?type: categorical (prevents aggregation).For each metric:
measure reference resolve to an existing measure?List which metrics have saved queries vs not. Informational only.
Calculate adjustments for the synthesis:
.claude-plugin
.cursor-plugin
.tessl-plugin
examples
phases
scripts
test-fixtures
docs-context
fan-out-joins
manifest-forloop
target
messy-jaffle-shop
sql-edge-cases