What problem does it solve? Data warehouse queries with anti-patterns like SELECT *, Cartesian joins, and non-sargable predicates silently inflate cloud bills and slow down dashboards. This Skill statically audits SQL files, scores query health from 0-100, and produces a prioritized cost-reduction plan before queries reach production. ## Core Features & Use Cases - 20-Rule Static Analysis: Detects SELECT *, full-table scans, Cartesian joins, the NOT IN NULL trap, non-sargable predicates, and 15 more anti-patterns across BigQuery, Snowflake, Redshift, and Postgres. - Health Scoring & Prioritized Plan: Scores each script 0-100 (grades A-F) weighted by severity and returns findings ordered by impact, each with a why, a concrete fix, and estimated savings. - Use Case: Before merging a dbt model or dashboard query, run the audit to catch a comma-join that could turn a $0.02 query into a $200 query, and get the exact rewrite needed. ## Quick Start Ask the assistant to audit your SQL file with sql-sentinel and return the health score plus the prioritized list of cost-saving fixes.