What problem does it solve?
Undetected database issues like unsafe migrations, slow unindexed queries, and poor schema design cause production outages, performance degradation, and data loss that are costly and time-consuming to fix after deployment.
Core Features & Use Cases
- Migration Safety Review: Flags unsafe PostgreSQL and MySQL migration operations that cause downtime, and runs automated squawk linting for PostgreSQL migration files when available.
- Query & Schema Analysis: Detects slow queries, missing indexes, improper connection/transaction handling, and flawed schema design for both PostgreSQL and MySQL environments.
- Sharding Support: Includes specialized checks for horizontally sharded databases (Vitess, Citus, Spanner) to catch scatter queries, cross-shard transactions, and poor sharding key selection.
- Use Case: A team preparing to deploy a new database migration can use this skill to scan all migration files and related application code to catch operations that would lock tables and cause downtime during rollout.
Quick Start
Use the review-database skill to scan your project's database migration files, queries, and schema code for safety risks, performance issues, and design flaws.