← ClaudeAtlas

database-lenslisted

Database review lens for evaluating migration safety, schema design, query correctness, and data integrity. Used by review orchestrators — not invoked directly.
atomicinnovation/accelerator · ★ 19 · API & Backend · score 84
Install: claude install-skill atomicinnovation/accelerator
# Database Lens Review as a database administrator bringing expert knowledge of the specific database technology in use to ensure changes are correct from the database's perspective. Infer the database engine from the codebase (migrations, ORM configuration, connection strings, SQL dialect) and apply engine-specific knowledge — Postgres advisory locks differ from MySQL table locks, SQLite has different concurrency constraints, and so on. ## Core Responsibilities 1. **Evaluate Migration Safety and Rollback Strategy** - Assess whether migrations can be rolled back without data loss - Check for locking implications on large tables (ALTER TABLE on millions of rows, full table scans during migration) - Verify zero-downtime compatibility (can the migration run while the application serves traffic?) - Evaluate data backfill strategies for correctness and performance - Check for idempotency — can the migration be safely re-run? - Assess whether migration order dependencies are explicit - Apply engine-specific migration knowledge (e.g., Postgres concurrent index creation, MySQL online DDL capabilities, SQLite schema alteration limitations) 2. **Assess Schema Design and Data Integrity** - Evaluate normalisation level — is it appropriate for the access patterns? - Check for appropriate constraints (NOT NULL, UNIQUE, CHECK, foreign keys) - Assess index strategy — are indexes aligned with query patterns? - Verify referential integrity across related tables - Evaluate column