SQL Business Logic Reviewer

•
7
•

Analyzes SQL queries for semantic correctness and business logic alignment to prevent reporting errors and data drift.

This skill empowers Claude to perform deep semantic audits of SQL queries, moving beyond basic syntax checking to identify subtle business logic errors that often go unnoticed. It specializes in detecting 'silent failures' where queries run successfully but produce incorrect results due to grain mismatches, improper join behavior, or flawed aggregation logic. By establishing the intended data grain and scanning for high-risk patterns like duplicate rows or incorrect null handling, it provides actionable validation checks and risk summaries, making it indispensable for maintaining data integrity in financial reporting, product metrics, and complex data transformations.

主な機能

01Detects silent semantic drift in complex SQL transformations
02Analyzes window functions and date logic for edge-case accuracy
037 GitHub stars
04Identifies grain mismatches and duplicate row risks in joins
05Generates concrete SQL validation checks for before/after comparisons
06Flags high-risk filters that inadvertently alter population definitions

ユースケース

01Reviewing SQL changes that impact downstream financial or product dashboards
02Ensuring complex data transformations maintain a consistent data grain during refactoring
03Troubleshooting unexpected shifts in metrics after query modifications