database-lens

Solid

Database review lens for evaluating migration safety, schema design, query correctness, and data integrity. Used by review orchestrators — not invoked directly.

API & Backend 31 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ...

Details

Author
atomicinnovation
Repository
atomicinnovation/accelerator
Created
6 months ago
Last Updated
today
Language
HTML
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

database-schema-review

Runs a structured review of a project's database schema design and migration safety, then reports the results as one table (check, area, status, evidence, recommendation). Covers normalization and data modeling (under-normalized vs. unjustified over-normalization, schema matching actual business entities), data types and constraints (appropriate column types, NOT NULL usage, CHECK constraints/enums for fixed value sets), referential integrity (foreign keys declared at the DB level, ON DELETE/ON UPDATE cascade behavior, orphan-record risk), uniqueness and identity (unique constraints vs. check-then-insert races, primary key/surrogate-key/UUID choice), migration safety (backward-compatible rolling deploys, expand/contract pattern, reversibility, DDL transactions, lock/downtime impact of large-table migrations), schema-vs-application drift, auditability/soft-delete conventions, and multi-tenancy data isolation at the schema level. This is a schema-design and migration-safety review, not a query-performance-tunin

0 Updated 4 days ago
finnley07
Code & Development Listed

db

Database & migration safety audit of changed code: destructive/non-reversible migrations, data-loss transformations, missing indexes, constraint correctness, query correctness, transaction boundaries. Use for migration review, DB safety, index or query-correctness audit of a diff.

4 Updated 2 days ago
tufantunc
Data & Documents Solid

documentation-lens

Documentation review lens for evaluating documentation completeness, accuracy, and audience-appropriateness. Used by review orchestrators — not invoked directly.

31 Updated today
atomicinnovation