sqlx-query-validator
Reviews changed Rust code for SQLx query correctness, enforcing compile-time macros, refreshing the offline query cache, and checking queries for performance and security issues.
What it does
Inspect Rust changes for SQLx queries. Use after modifying Rust code that adds or changes SQLx queries to ensure compile-time SQLx macros are used, run `just prepare_db` for offline query cache, and review queries for security issues. Writing a query and measuring its plan is the query-writing skill; reviewing a diff's query cost is query-review.
Quality judgment
The document provides thorough, well-structured guidance for validating SQLx queries after Rust changes. It covers scope identification, macro preference, cache refresh, performance handoff, and security review. The checklist is comprehensive and the examples are clear. The only deduction is that trigger quality is slightly lower since the tool requires explicit VCS interaction rather than being fully automatic.