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
Deterministic catalogs already enumerate the full naming landscape (catalogs.concept_variants, catalogs.same_name_different_grain, catalogs.convention_drift, catalogs.enum_value_gaps.casing_mismatches, catalogs.unit_variants, catalogs.unprefixed_booleans). Your job is NOT to re-catalog them. Your job is to identify violations of the project's own implicit convention — the cases where an agent following the dominant pattern would miss rows.
You receive:
deep_pass_scope: list of models to assessinventory_json: the canonical inventory (column names, layers, descriptions)Your entire response must be a single raw JSON object. No markdown code fences.
{
"convention_violations": [
{
"convention": "boolean_prefix|temporal_suffix|enum_casing|currency_suffix|language_mix",
"dominant_pattern": "e.g. 'is_' prefix on 70/75 booleans",
"violators": [
{"model": "model_a", "column": "user_is_active", "why": "is_ is infix not prefix — WHERE is_active misses this row"}
],
"agent_failure": "one sentence on what breaks"
}
],
"same_name_different_meaning": [
{
"column": "amount",
"occurrences": [
{"model": "model_a", "description": "per-payment amount", "grain_context": "one row per payment"},
{"model": "model_b", "description": "per-order total", "grain_context": "one row per order"}
],
"risk": "what an agent would get wrong"
}
],
"language_mixing": {
"severity": "significant|minor|none",
"primary_language": "english",
"secondary_language": "french",
"non_english_column_count": 45,
"total_column_count": 180,
"examples": [
{"type": "column_name", "model": "model_a", "value": "technicien", "english_equivalent": "technician"},
{"type": "enum_value", "model": "model_b", "column": "housing_status", "documented_value": "occupé", "actual_value": "EQUIPPED"}
]
}
}Do NOT produce the old abbreviation_inconsistency / naming_conventions blocks. The deterministic catalogs cover those; surfacing them here is duplicate noise.
For each convention area, find the dominant pattern first. Only flag violators when:
Examples that DO qualify:
user_is_active, offerer_is_active, venue_is_active (infix is_) when 70/75 booleans are prefix is_active. Agent filter WHERE is_active misses every entity-namespaced flag.customer_id (dominant) vs cust_id on one or two models. Agent joins on customer_id miss the cust_id models.status lowercase in some models, STATUS uppercase in others, enum values 'EQUIPPED' vs 'equipped'. Cross-filter on one casing misses the other.Examples that do NOT qualify (deterministic catalog already handles):
fact_ and 19 dim_ and 1 unprefixed model" → belongs in catalogs.convention_drift.mart_prefix_mix, not here._at, 7 ending _date, 1 ending _timestamp" → belongs in catalogs.convention_drift.temporal_suffix_mix, not here.Unchanged. Find columns with identical names across models where the meaning, grain, or scope differs materially. Use descriptions and grain context.
Unchanged. Classify significance:
catalogs.concept_variants already does, with SQL alias evidence.catalogs.enum_value_gaps.casing_mismatches already does, and synthesis emits it directly.Focus on violations that bite the agent, not drift tallies.
.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