review-database

Review PostgreSQL and MySQL migrations, queries, and schema designs.

9|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/paultyng/skill-issue --skill review-database-paultyng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-database
Source: https://github.com/paultyng/skill-issue/tree/main/skills/review-database
Command: npx skills add https://github.com/paultyng/skill-issue --skill review-database-paultyng

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about review-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review PostgreSQL and MySQL migration files for unsafe operations before deployment?

Database migration review identifies unsafe PostgreSQL and MySQL operations that cause downtime, running automated squawk linting on migration files to flag table locks and data loss risks before they hit production.

What causes slow queries and performance degradation in sharded database deployments?

Slow query performance in sharded databases often stems from scatter queries, cross-shard transactions, and poor sharding key selection, which database review detects by analyzing application query code and schema definitions.

Does database schema review work with horizontally sharded databases like Vitess, Citus, or Spanner?

Database schema review includes specialized checks for horizontally sharded databases using Vitess, Citus, or Spanner, catching scatter queries, cross-shard transactions, and poor sharding key selection that cause performance degradation.

Can I detect missing indexes and flawed schema design in PostgreSQL or MySQL codebases?

Query and schema analysis detects missing indexes, improper connection and transaction handling, and flawed schema design for both PostgreSQL and MySQL environments by scanning application query code and schema definitions.

When do I need to run a pre-deployment database safety validation?

Pre-deployment database safety validation is needed when preparing to deploy new database migrations, scanning migration files and related application code to catch operations that would lock tables and cause production outages during rollout.