database-review
Design or review relational database schemas and queries. Use when changing tables, indexes, migrations, transactions, access policies, or query performance.
Files1
View on GitHubSKILL.mdskills/database-review/SKILL.md
GitHubDatabase Review
Start from data integrity and observed query patterns, not from speculative indexing.
- Inspect schema, constraints, data volume assumptions, migration history, and real query plans where available.
- Check keys, nullability, uniqueness, foreign keys, normalization/denormalization trade-offs, and ownership of derived data.
- Review indexes against query predicates, joins, ordering, cardinality, and write overhead.
- Examine transactions, isolation, lock duration, retry safety, and concurrent updates.
- Check authorization at the data boundary, including row-level policies where used; do not assume application checks are sufficient.
- Plan migrations for existing data, rollback limits, backfills, and mixed-version deployments.
- Validate changes with representative queries, tests, and
EXPLAIN/query-plan evidence when possible.
Never run destructive migrations or queries against production without explicit authorization and a verified backup/rollback plan. Do not invent database statistics or performance improvements.