database-schema-reviewlisted
Install: claude install-skill finnley07/AI-SKILLHUB
# Database Schema & Migration Safety Review
A structured, evidence-based review of a project's database schema design and migration history —
not a query-performance tuning pass and not an application-security review. It investigates the
actual migration files/schema definitions and reports one table the user can act on.
Out of scope, by design:
- **Query performance tuning.** Deciding whether a specific slow query needs an index, and
detecting N+1 query patterns, is `performance-audit`'s job (see its
`references/backend-performance.md`, checks B3–B4). This skill only cares about indexing that
exists *for data-integrity reasons* — e.g. a unique constraint that happens to be backed by an
index — not indexing chosen purely to speed up a particular read.
- **Application security.** SQL/NoSQL injection and other application-security concerns are
`cybersecurity-check`'s job (see its `references/security.md`, check S1). This skill only checks
whether integrity rules (uniqueness, required fields, valid value sets, relationships) are
enforced at the database level — not whether the application safely constructs queries.
A finding belongs here only if its primary concern is schema design correctness or migration
safety, not raw query speed or injection risk.
## Ground rules
- **Evidence or it didn't happen.** Every row needs a concrete pointer — a specific migration file
and its actual `CREATE TABLE`/`ALTER TABLE` statement, an ORM model's actual column/attribute