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
Assess description quality and grain declarations for models in the deep pass scope. This is judgment-based work: could an agent use each column correctly based only on its description?
You receive:
deep_pass_scope: list of model names to assessinventory_json: the canonical inventory from the inventory phaseUse the inventory to find file paths. Read YAML and SQL files directly for detailed assessment.
Your entire response must be a single raw JSON object. No markdown code fences, no commentary before or after.
Return EXACTLY this JSON structure:
{
"model_summaries": [
{
"model": "model_name",
"total_columns_assessed": 12,
"agent_ready_count": 8,
"not_agent_ready_count": 4
}
],
"description_findings": [
{
"model": "model_name",
"column": "column_name",
"column_type": "measure|categorical|fk|date",
"current_description": "string or null",
"agent_ready": false,
"gap": "what specifically is missing, e.g. 'doesn't specify whether refunds are deducted'"
}
],
"grain_findings": [
{
"model": "model_name",
"grain_declared": true,
"grain_statement": "One row per order",
"grain_source": "models: description|semantic_model description|doc() block|not found",
"likely_grain_from_sql": "string or null (only if grain_declared is false)",
"enforced_by_test": true,
"risk": "high|medium|low"
}
],
"fan_out_risks": [
{
"model": "model_name",
"join_column": "column_name",
"joined_model": "model_name",
"unique_test_exists": false,
"description": "what would go wrong"
}
]
}For each model in scope, read its YAML (and doc blocks if descriptions use {{ doc() }}). Assess each column by type:
Measures (columns with amount, count, sum, total, rate, revenue, cost, price, quantity, average in name):
Categorical columns (named status, type, category, tier, method, mode, state, level, kind):
Foreign keys (_id columns that appear in other models per the inventory):
Date/time columns in fact/core models (columns with _at, _date, _timestamp suffixes):
Calibration: Only flag descriptions where missing info could lead to a wrong answer. "Total revenue from completed orders" is agent-ready even without currency. "The total amount" is not.
Enumeration rule: For each model in scope that has a YAML entry, enumerate every column assessed in the description_findings array with its agent_ready verdict. The synthesis step needs per-column data to compute exact counts (e.g., "47/118 key columns agent-ready"). Never use approximate counts (~40%). Every number must be derivable from the array.
Scope control for large projects: If the deep pass scope has >30 models, enumerate all columns for the top 15 models by importance score. For the remaining models, enumerate only columns that are NOT agent-ready (skip agent-ready columns to save tokens). Always include a summary count per model: {"model": "model_name", "total_assessed": 12, "agent_ready": 8, "not_agent_ready": 4}.
For every model in scope:
unique or unique_combination_of_columns testRisk assessment:
For models in scope, use inventory data to detect fan-out risk (no SQL reading needed):
outbound_refs. For each referenced model, check inventory: does it have has_pk_test: true?.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