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
Common failures and fixes. If you hit something not listed here, file an issue with the inventory output (or the error).
The inventory script needs PyYAML to parse schema files deterministically. Without it, the skill falls back to LLM-based inventory, which is much slower, less accurate, and produces no concept index or review queue.
Fix:
pip install pyyaml
# or: pip3 install pyyaml
# or (macOS): brew install libyaml && pip install pyyamlRe-run the audit.
The skill looks for dbt_project.yml at the target path. If you pointed it at a subdirectory (e.g., models/) or a monorepo root, it can't locate the project config.
Fix: Point the skill at the directory containing dbt_project.yml:
audit /path/to/my_project ✓
audit /path/to/my_project/models ✗Every phantom-column row in the report is high-confidence: the YAML declares a column that the SQL demonstrably doesn't emit. If you see a row that looks wrong, the most common cause is a macro (dbt_utils.star, SELECT *, or a Jinja for-loop) that the static analyzer couldn't resolve.
Fix: run dbt compile in the project root, then re-run the audit. The skill will read target/manifest.json and resolve the macros.
cd /path/to/my_project
dbt compile
# then re-run the skillWhen no manifest is available and macros are involved, the skill suppresses phantom findings on those models (they move to catalogs.phantom_columns_suppressed_no_manifest) and emits one "run dbt compile" notice instead of per-model noise.
A subagent returned invalid JSON or timed out. The skill proceeds with the data it has rather than retrying.
Fix: re-run the audit. If it happens repeatedly:
The skill checkpoints before spawning subagents on projects >100 models and asks for confirmation. For >500 models, consider:
python3 scripts/inventory.py /path/to/project) to see the scale.model-paths in dbt_project.yml.dbt compile so manifest-based column resolution is fast.Estimated wall time:
If many columns exist in SQL but not in YAML, the inventory flags them as missing descriptions (not phantom columns, which are the reverse: YAML declares what SQL doesn't emit).
This is expected for staging-only layers or "hidden: true" models. If a core/mart model has <50% column coverage, that's a description gap the audit will flag.
If your dbt_project.yml uses a Jinja expression like +severity: "{{ env_var('CI_SEVERITY', 'warn') }}", the inventory extracts the 'warn' default argument. If your actual CI runs with CI_SEVERITY=error, the audit will note "inferred from env_var default" but won't know about the override.
The severity field is one line in Hygiene, not a Blocker, so a mis-reading isn't load-bearing.
The Blockers + Safe perimeter + Remediation backlog + Coverage snapshot should fit in ~100 lines. The Hygiene section and appendix can be much longer.
If the top-of-report narrative is dominated by appendix material, you have too many Blockers being emitted. The synthesis rules in SKILL.md Step 5b cap at 6 Blockers. If more are arriving, cluster aggressively or re-run.
The audit is evidence-based: if no code-level issues are detected, it won't manufacture findings. Check:
Run the inventory script alone to see the raw data:
python3 scripts/inventory.py /path/to/project | python3 -m json.tool | lessThe skill writes to {project_path}/dbt-agent-readiness.md and cleans up temp inventory JSONs. To fully reset:
rm /path/to/project/dbt-agent-readiness.md
rm -f /tmp/inventory-*.jsonThen re-run.
Open an issue at https://github.com/GetCassis/dbt-agent-readiness/issues with:
find . -name '*.sql' -not -path '*/dbt_packages/*' -not -path '*/target/*' | wc -l)CHANGELOG.md or the latest git tag).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